Roger Federer ended a career that spanned 24 years and saw him become one of the greatest players of all time.
The Swiss has won 20 Grand Slam singles titles and 103 titles on the ATP Tour, while attracting legions of fans around the world.
BBC Sport reviewed 10 iconic moments from his career, then asked readers to choose their favourite.
Two stood out from the rest – the 2008 Wimbledon Classic final against Rafael Nadal came top with 38% of the vote, just ahead of his 2017 Australian Open victory over the Spaniard, who was selected by 36% .
Wimbledon 2001 – beating Sampras at 19
Pete Sampras was the top dog at Wimbledon. In 2001, he was the four-time defending champion, world number one and heavy favorite for the title.
Then, on the fourth lap, he ran into a ponytailed 19-year-old who was starting to climb the ranks himself.
Federer, the boys’ champion at Wimbledon in 1998, went 7-6 (9-7) 5-7 6-4 6-7 (2-7) 7-5 in three hours and 41 minutes to end the dominance from Sampras to Wimbledon. .
It would be the first of many stunning results on center court for the Swiss great.
Wimbledon 2003 – first Grand Slam title

It was fitting for Federer to win his first Grand Slam at Wimbledon, which he has often described as his favorite tournament.
Having failed to go beyond the quarter-finals in his previous major tournament outings, Federer dropped just one set on his way to the final, where he beat Australian Mark Philippoussis. 7-6 (7-5) 6-2 7-6 (7-3).
An emotional Federer dedicated his victory to former coach Peter Carter, who died in a car accident the previous year.
“Peter was one of the most important people in my career,” he said. “I hope he saw it from somewhere.”
The victory marked the start of a period of dominance, with the Swiss winning 11 of his major tournaments between 2004 and 2007.
Wimbledon 2008 – Epic final against Nadal

Federer may have lost, but the final between him and Rafael Nadal in 2008 is widely regarded as one of the greatest matches of all time.
Federer was aiming for a sixth consecutive singles title, but Nadal had beaten him in the French Open final a few months before and held an 11-6 winning record against the Swiss.
Played for over seven hours due to rain delays, Federer lost the first two sets, saved two championship points in the fourth and forced a fifth before Nadal secured a stunning victory in near darkness.
It ended Federer’s 65 match unbeaten streak on grass and was arguably the peak of a thrilling rivalry that lasted until Federer’s retirement.
Beijing 2008 – Olympic gold in doubles

Federer arrived at the Beijing Olympics just a month after losing to Nadal at Wimbledon and set to lose his world number one ranking to the Spaniard after 236 weeks at the top.
After losing in the singles quarterfinals, he and Stan Wawrinka teamed up for the men’s doubles and took a big win over the Bryan Brothers of the United States in the semifinals.
They then beat Sweden’s Simon Aspelin and Thomas Johansson 6-3 6-4 6-7 (4-7) 6-3 to give Switzerland its first Olympic tennis medal since 1988.
It would be the only Olympic gold medal of Federer’s career.
French Open 2009 – Complete the Career Grand Slam

In 2009, the only thing that eluded Federer was the Roland-Garros title. He had reached the final in Paris for the past three years but had lost each to Nadal.
Federer had only picked up his second victory over Nadal on clay in the build-up to Roland Garros, but Nadal was once again the heavy favorite to lift the trophy.
However, Nadal’s shock loss to Robin Soderling in the fourth round put things in motion for Federer.
Federer seized his opportunity, eventually beating Soderling 6-1 7-6 (7-1) 6-4 in the final to become the sixth man to win all four Grand Slam singles titles.
Wimbledon 2009 – record 15th Grand Slam title

Federer avenged his heartbreaking loss to Nadal the previous year by winning Wimbledon in 2009 – but the final was just as grueling.
Federer beat Andy Roddick 5-7 7-6 (8-6) 7-6 (7-5) 3-6 16-14 in four hours and 17 minutes, with the fifth set alone lasting 95 minutes.
It was Federer’s sixth Wimbledon title and his 15th major trophy, taking it past Sampras’ all-time record as the American watched from the Royal Box.
The win also sent Federer back to the top of the world rankings.
Wimbledon 2012 – Beat Murray in the final

Federer arrived at his favorite tournament having not won a Grand Slam title since January 2010 and having exited in the quarter-finals in his last two SW19 appearances.
He went through a five-set match in the third round before ousting defending champion and top seed Novak Djokovic in the semi-finals.
Andy Murray was waiting in the final to become the first Briton since 1936 to win a major singles trophy.
But Federer ruined the home party with a 4-6 7-5 6-3 6-4 win, equaling Sampras’ Open-era record of seven men’s singles titles at Wimbledon and reclaiming world No. .
Murray would get his revenge a few weeks later on the same court as he defeated Federer to win Olympic gold.
Davis Cup 2014 – Triumph with Switzerland

Federer had helped Switzerland reach their first Davis Cup final in 22 years but suffered from a back injury which led to him withdrawing from the ATP World Tour final just weeks before the Lille’s flagship event.
Against France, Federer lost his first singles rubber to Gaël Monfils, leaving the game tied at 1-1.
He and Wawrinka teamed up for the doubles and won and Federer was chosen to face Richard Gasquet, knowing victory would secure the trophy for the Swiss.
Federer beat Gasquet in straight sets, setting off jubilant scenes and leading an emotional Federer to dedicate the trophy to the “boys”.
Australian Open 2017 – Major title surprise after injury

Federer arrived in Australia after spending six months with a knee injury and many said he would not win a major title again.
It wasn’t easy for Federer – he beat two top-10 players in Kei Nishikori and Tomas Berdych and ousted Wawrinka in five sets on his way to the final, where longtime rival Nadal awaited him.
In another epic that almost inevitably came down to five sets, Federer won 6-4 3-6 6-1 3-6 6-3 to win an 18th Grand Slam title and his first in five years.
It was the first time Federer, now 35, had beaten Nadal in a major tournament since the Wimbledon final in 2007.
Dubai 2019 – 100th ATP title
Federer became the second man after Jimmy Connors to win 100 ATP titles with his victory at the Dubai Tennis Championships in March 2019.
He beat Greece’s Stefanos Tsitsipas – who had ended his Australian Open title defense a few months earlier – 6-4 6-4 to lift the trophy.
The victory came 6,600 days after his first career title in Milan, which he won aged 19.
Federer would go on to win three more trophies, with his last title coming at the Swiss Indoors in 2019.
And now vote for your favorite
If you are viewing this page on the BBC News app, please Click here vote.