Leonardo Mayer, the man who lost in the final round of qualifying before gaining the main draw as a “lucky loser,” defeated namesake Florian Mayer 6-4, 4-6, 6-3 in the Sunday final of the German Tennis Championships on clay in Hamburg.

“It’s amazing to win in Hamburg again,” said the Argentine champion. “It’s like home here and I feel very comfortable. I like the city and I always play well here. It’s something special about this sport. I lost in qualifying and then beat the No. 1 seed Albert Ramos-Vinolas in the first round. It also happened last week in Umag with Rublev. Now I took the opportunity.”

It was his first title since 2014 when he won his first career title in Hamburg.

Mayer snuck into the main draw after losing to 16-year-old Rudolf Molleker in the final round of qualifying when Martin Klizan withdrew from the main draw due to a calf injury.

The No. 138-ranked Mayer improved to 2-2 in career finals. The 33-year-old runner-up Mayer, ranked No. 101 entering the event, dropped to 2-5 in finals.

“I’m very happy with my performance this week, especially to be in the final of a 500 tournament,” Florian Mayer said. “It was a big match and a big fight. A very nice week for me. Maybe I got a little tired at the end and Leo played incredibly well. He deserved to win.”