Tennis at the 2012 Summer Olympics – Men's singles

Great Britain's Andy Murray defeated Switzerland's Roger Federer in the final, 6–2, 6–1, 6–4 to win the gold medal in men's singles tennis at the 2012 Summer Olympics. The final was a rematch of the Wimbledon final played at the same venue four weeks prior, in which Federer prevailed. Federer was attempting to become the third man to complete the career Golden Slam in singles (after Andre Agassi and Rafael Nadal). It was Federer's third consecutive Olympics as the singles world No. 1, but his silver finish remains his only Olympic medal in singles. In the bronze medal match, Argentina's Juan Martín del Potro defeated Serbia's Novak Djokovic, 7–5, 6–4. Murray's gold was Great Britain's first medal at the event since 1908, and the nation's record fourth overall. Federer's silver was Switzerland's first medal at the event since 1992. Del Potro's bronze was Argentina's first medal at the event overall.

The tournament was held at the All England Club in Wimbledon, London from 28 July to 5 August, making it the first Olympic grass court tournament since tennis was re-introduced to the Games. The event was run and organised by the International Olympic Committee (IOC) and the International Tennis Federation (ITF), and was part of the Association of Tennis Professionals tour. Matches were the best-of-three sets, except for the final which was the best-of-five sets. Tie-breaks were in use for all sets except the fifth set of the final and the third set of all other matches. There were 64 players from 34 nations.

Rafael Nadal was the reigning gold medalist from 2008, but withdrew due to a recurring knee injury. Despite his early exit at Wimbledon the previous month, Nadal was the pre-Olympics favourite to retain his Gold Medal.

The second-round match between Jo-Wilfried Tsonga and Milos Raonic lasted 3 hours and 57 minutes and 66 games, with the third set ending at 25–23. This was (then) the longest tennis match in Olympic history, in terms of games played and in time, under the best-of-three-sets system. However, this record was quickly eclipsed by Federer and del Potro three days later in a semifinal encounter that lasted 4 hours 26 minutes, with the third set ending at 19–17. This was both the longest singles tennis match in Olympic history (played with the best-of-three-sets format) and the longest such match in the Open Era, surpassing the 4 hours 3 minutes in Nadal's victory over Djokovic at the 2009 Madrid Masters.

Background
This was the 14th (medal) appearance of the men's singles tennis event. The event has been held at every Summer Olympics where tennis has been on the program: from 1896 to 1924 and then from 1988 to the current program. Demonstration events were held in 1968 and 1984.

The number one seed was Roger Federer of Switzerland, making his fourth Olympic appearance and second as the top seed. Reigning champion Rafael Nadal of Spain was out with a knee injury, though Spain was still represented among the top-four seeds with David Ferrer. Serb Novak Djokovic and Briton Andy Murray made up the rest of the top seeds. Djokovic had taken bronze in 2008; the other two quarterfinalists from that tournament to return were Federer and Jürgen Melzer of Austria.

Bulgaria, Colombia, Kazakhstan, Slovenia, Tunisia, and Ukraine each made their debut in the event. France made its 13th appearance, most among all nations, having missed only the 1904 event.

Qualification
Qualification for the men's singles was primarily through the ATP ranking list of 11 June 2012. An additional restriction was that players had to have been available for two Davis Cup events between 2009 and 2012. Nations had been limited to four players in the event since the 2000 Games. There were 64 quota places available for men's singles. The first 56 were assigned through the world ranking. There were two Tripartite Commission invitation places and 6 final qualification places allocated by the ITF based on continental and national representation along with world rankings.

Competition format
The competition was a single-elimination tournament with a bronze medal match. Matches were in best-of-3 sets, except for the final which was in best-of-5 sets. No tiebreak was played in the final set.

Schedule
The tournament ran from 28 July and 5 August.

Seeds
• (Runner-up, silver medalist)

• (semifinals, fourth place)

•  (champion, gold medalist)

•  (third round)

•  (quarterfinals)

•  (first round)

•  (third round)

•  (semifinals, bronze medalist)

•  (second round)

•  (quarterfinals)

•  (quarterfinals)

•  (third round)

•  (second round)

•  (first round)

•  (quarterfinals)

•  (second round)

Draw

 * INV = Tripartite Invitation
 * IP = ITF place