LONDON — Roger Federer surpassed Pete Sampras on Monday to set the record for the most weeks at No. 1 in the ATP rankings.
After winning Wimbledon a week ago, Federer returned to the top for the first time since June 2010. Monday marked his 287th week at No. 1, one more than Sampras.
The 17-time Grand Slam champion also tied Sampras' record of seven Wimbledon titles. Federer first became No. 1 in 2004 and said it was an "amazing feeling" to be back at the top.
"I had set a goal with my team to try and get back to the top of the rankings, but I never thought with the depth in the game this year that I would have been able to get it back so quickly," Federer said. "I am extremely proud and honored to have beaten Pete's record as he was my childhood hero and I have always looked up to him."
The Swiss star will enter the Olympics next week as the world's top-ranked player following his four-set win over Briton Andy Murray in the final at Wimbledon, which also will host the Olympic tennis competition.
Federer spent 237 consecutive weeks at No. 1 between February 2004 and August 2008 and overtook Novak Djokovic atop the rankings with his win at Wimbledon – his 75th career ATP title.
"Great effort," said Sampras. "The hardest thing to do in sports is the ability to stay on top. Roger has been able to do so by great play and durability."
Earlier on HuffPost:

Federer vs. Murray
Federer vs. Murray
Roger Federer reacts during the men's final match against Andy Murray at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
David Beckham, left, and Victoria Beckham watch Roger Federer of Switzerland face Andy Murray of Britain during the men's final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer reacts during the men's singles final match against Andy Murray at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray reacts during the men's final match against Roger Federer at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer reacts during the men's singles final match against Andy Murray at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray reacts during the men's singles final match against Roger Federer at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray reacts during the men's final match against Roger Federer at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer celebrates winning the men's singles final against Andy Murray at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland celebrates winning the men's singles final against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland celebrates winning the men's singles final against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland celebrates winning the men's singles final against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain reacts during the men's singles final match against Roger Federer of Switzerland at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain falls during the men's singles final match against Roger Federer of Switzerland at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain reacts during the men's final match against Roger Federer of Switzerland at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland, foreground, serves to Andy Murray of Britain during the men's singles final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland plays a shot to Andy Murray of Britain during the men's singles final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland reacts during the men's final match against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain, front, takes a fall during the men's singles final match against Roger Federer of Switzerland at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland plays a shot to Andy Murray of Britain during the men's final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland reacts during the men's final match against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland plays a return to Andy Murray of Britain during the men's final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain plays a shot to Roger Federer of Switzerland during the men's final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland celebrates with the trophy after winning the men's singles final against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain, left, reacts after his defeat to Roger Federer of Switzerland following the men's singles final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland, center right, celebrates with the trophy after winning the men's singles final against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012. (AP Photo/Clive Rose, Pool)
Federer vs. Murray
Spectators watch Andy Murray of Britain play Roger Federer of Switzerland during the men's singles final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain, right, congratulates Roger Federer of Switzerland, as he poses with his trophy following the men's singles final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland reacts after winning the men's singles final against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland, foreground right, reacts as he wins the men's singles final match against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland, left, reacts after winning the men's singles final match against Andy Murray of Britain, right, at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain, foreground, reacts after his defeat to Roger Federer of Switzerland during the men's singles final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland reacts as he wins the men's singles final against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain, right, congratulates Roger Federer of Switzerland, as he poses with his trophy following the men's singles final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland celebrates with the trophy after winning the men's singles final against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain poses with the runner up trophy after his defeat to Roger Federer of Switzerland in the men's singles final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland reacts as he wins the men's singles final against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland celebrates winning the men's singles final against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain reacts as he speaks to spectators after his defeat to Roger Federer of Switzerland in the men's singles final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland reacts as he wins the men's singles final against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain, left, congratulates Roger Federer of Switzerland after he won the men's singles final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland, center right, embraces Andy Murray of Britain, center left, after winning the men's singles final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland celebrates winning the men's singles final against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland celebrates winning the men's singles final against Andy Murray of Britain at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
David Beckham, left, and Victoria Beckham watch Roger Federer of Switzerland face Andy Murray of Britain during the men's final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain reacts during the men's final match against Roger Federer of Switzerland at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Roger Federer of Switzerland plays a shot to Andy Murray of Britain during the men's singles final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain plays a shot to Roger Federer of Switzerland during the men's final match at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain reacts during the men's singles final match against Roger Federer of Switzerland at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain reacts during the men's singles final match against Roger Federer of Switzerland at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.
Federer vs. Murray
Andy Murray of Britain reacts during the men's singles final match against Roger Federer of Switzerland at the All England Lawn Tennis Championships at Wimbledon, England, Sunday, July 8, 2012.


07/16/12 02:04 PM ET