Roger Federer rallied to beat home favorite Mischa Zverev 3-6, 6-4, 6-2 at the Stuttgart Open on Wednesday in his first match in nearly three months.
The Swiss great converted four of his 10 break points to end a two-match losing streak and start his grass-court season with a win.
Federer hadn't played since March, when he lost to Thanasi Kokkinakis and Juan Martin del Potro in Miami and Indian Wells, respectively. He skipped the entire clay-court season for the second year in a row.
Zverev had never won a set against Federer in their five previous meetings, but he took the first before the second-ranked Swiss upped his game and broke the German twice to force the decider.
Federer lost to another German, Tommy Haas, in his Stuttgart opener last year, but will now face Guido Pella or Prajnesh Gunneswaran in the quarterfinals.
Indian qualifier Gunneswaran upset sixth-seeded Denis Shapovalov of Canada 7-6 (6), 2-6, 6-3 in their first-round match.
There were also wins for Milos Raonic and Maximilian Marterer in the first round, while Denis Istomin defeated Florian Mayer 6-3, 6-4 in the second round.
Defending champion Lucas Pouille faced German wild-card entry Rudolf Molleker later Wednesday.
(With AP Inputs)