HALLE, Germany — Defending champion Roger Federer overcame two match points against Benoit Paire to reach the quarterfinals of the Gerry Weber Open with a 6-3, 3-6, 7-6 (7) win on Thursday.

Paire rallied after losing the first set to take the second, and the Frenchman defended two match points at 6-5 in the decider to force a tiebreaker. Eight minutes later, it was a match point for the 48th-ranked Paire, and again when a mistake from Federer left it 7-6 in Paire's favour.

But the top-ranked Swiss took the next three points to close the match in just under two hours at the grass-court tournament.

Federer extended his grass-court winning streak to 18 matches, including his titles in Stuttgart last week and at Halle and Wimbledon last year.

Federer skipped the entire clay-court season for the second year in a row and is now just four wins away from matching Jimmy Connors' all-time record of 174 victories on grass.

Federer next faces Matthew Ebden of Australia, who upset former champion Philipp Kohlschreiber 4-6, 6-1, 6-2.

Also Thursday, Borna Coric defeated Nikoloz Basilashvili 6-4, 6-2. He next faces Andreas Seppi after the Italian beat Florian Mayer 6-2, 6-4.