World number one, Roger Federer, on Sunday beat Milos Raonic to win the Mercedes Cup in Stuttgart, Germany.
The event was Federer's first in two and a half months. The Swiss maestro had not played since the Miami Open in March, after choosing to miss the clay-court season.
He secured his 98th Tour title with a 6-4 7-6 (7-3) victory over the Canadian.
The 20-time Grand Slam champion had already secured his return to number one in the world rankings with victory over Nick Kyrgios in the semi-final.
The only break of serve came in the third game of the match, with Federer winning it with a backhand winner.
The second set was again tight as both players took advantage of their serve, but Federer edged Raonic on a tie-break.
"I played very well throughout the tournament, it is a great comeback for me. I am so happy to have won," Federer said.
"I was hoping to play a couple matches here but I have played four and won them all. The last few have been very good.
"I hope I keep it up at Halle and Wimbledon. It will give me a boost as well being back at world number one."
Federer also sat out the clay-court season in 2017, but lost on his return in Stuttgart before going on to win the Gerry Weber Open in Halle and claim an eighth Wimbledon title.
He is again expected to compete at Halle next week, targeting a record 10th title before Wimbledon, which begins on 2 July.