Federer had said as recently as Wimbledon that he planned to still return to the game after a lengthy absence due to injuries. The former world No. 1 discussed a possible return during an on-court ceremony recognizing the 100-year anniversary of Wimbledon's Centre Court on July 3.

\"I hope I can come back here one more time,\" Federer told the crowd to loud cheers.

He also admitted how hard it has been for him to come back from his knee injuries, however.

\"I would have loved to be here [competing],\" he said. \"I knew walking out here last year it was going to be a tough year ahead. Maybe I didn't think it was going to take me this long to come back but the knee has been rough on me.\"

\"PHOTO:
Michael Steele/Getty Images
PHOTO: Roger Federer of Switzerland during a match at the ATP Tennis Masters, April 21, 2006, in Monte-Carlo, Monaco.
>

Federer, who turned 41 last month, has won 20 major tournaments. He was the first player to ever win 20, though he has now been passed by longtime rivals Rafael Nadal (22) and Novak Djokovic (21). His 103 titles overall is second all-time in the Open Era behind only Jimmy Connors. He won a gold medal for Switzerland in doubles alongside Stan Wawrinka at the 2008 Olympics and a silver in singles at the 2012 London Games, coming up short to hometown favorite Andy Murray.

He also has the record with 237 consecutive weeks spent at No. 1.

\"PHOTO:
Clive Brunskill/Getty Images
PHOTO: Roger Federer of Switzerland kisses the trophy after winning the Wimbledon men's tennis championship, July 16, 2017, in London.
>

\"This is a bittersweet decision, because I will miss everything the tour has given me,\" he wrote. \"But at the same time, there is so much to celebrate. I consider myself one of the most fortunate people on Earth. I was given a special talent to play tennis, and I did it ata level I never imagined, for much longer than I ever thought possible.\"

Federer's retirement comes just weeks after Serena Williams announced she was stepping away from the game. Federer said on Instagram before what became her final match -- a loss to Ajla Tomljanovic in the third round at last week's U.S. Open -- that he wished her well and congratulated her on her career.

\"PHOTO:
Tony Ashby/AFP via Getty Images
PHOTO: Serena Williams and Roger Federer take a selfie following their mixed doubles match at the Hopman Cup tennis tournament, Jan. 1, 2019, in Perth, Australia.
>

\"I wanted to congratulate you on a truly amazing career,\" he said in the video posted by the ATP and WTA. \"You know what you have achieved. I know what you have done and I know and you know it was just amazing.\"

The two greats played against each other just once in their careers. Federer and his mixed doubles partner Belinda Bencic defeated Williams and her partner, U.S. Open darling Frances Tiafoe, in a match in Australia in January 2019.

","canonicalUrl":"https://abcnews.com/Sports/tennis-legend-roger-federer-announces-retirement/story?id=89950551","legacySlug":"/living/story/tennis-legend-roger-federer-announces-retirement-89950551","noIndexNoFollow":false},"publishTime":"14:34","publishDate":"09-15-2022","updatedTime":"11:47","updatedDate":"09-16-2022","socialImage":{"alt":"Roger Federer acknowledges spectators at the Centre Court Centenary Celebration on day seven of the Wimbledon Tennis Championships on July 3, 2022 in London.","credit":"Karwai Tang/WireImage via Getty Images, FILE","ratio":"16x9","url":"https://s.abcnews.com/images/Politics/roger-federer2-01-gty-iwb-220915_1663248647761_hpMain_16x9_1600.jpg","width":992,"height":558},"datePublished":"9/15/2022 14:34:00 GMT","video":{"live":false,"id":89950551,"headline":"Tennis legend Roger Federer announces retirement","mediaAssetTitle":"FEDERER RETIRES","description":"Federer had recently said he hoped to still return.","duration":"1:14","posterImg":{"url":"https://s.abcnews.com/images/GMA/default-img-undefined.png","width":608,"height":342},"video":{"feed":"https://service-pkgabcnews.akamaized.net/opp/hls/abcnews/2022/09/220915_vod_roger_,500,800,1200,1800,2500,3200,4500,.mp4.csmil/playlist.m3u8"},"playlist":["133144263","132956835","132488083"]},"relatedItems":[{"contentType":"video","date":"May 20, 2026","headline":"Fashion mogul’s son arrested in father’s fatal fall","section":"News","slug":"/video/133144263","id":"133144263","image":{"alt":"VIDEO: Fashion mogul’s son arrested in father’s fatal fall","credit":"ABCNews.com","ratio":"1x1","url":"https://s.abcnews.com/images/GMA/260520_gma_ally_fall3_732_hpMain_1x1_608.jpg","width":384,"height":384},"images":{"alt":"VIDEO: Fashion mogul’s son arrested in father’s fatal fall","credit":"ABCNews.com","crops":[{"16x9":{"small":"https://s.abcnews.com/images/GMA/260520_gma_ally_fall3_732_hpMain_16x9_608.jpg","medium":"https://s.abcnews.com/images/GMA/260520_gma_ally_fall3_732_hpMain_16x9_992.jpg","large":"https://s.abcnews.com/images/GMA/260520_gma_ally_fall3_732_hpMain_16x9_1600.jpg"}},{"9x16":{"small":"https://s.abcnews.com/images/GMA/260520_gma_ally_fall3_732_hpMain_9x16_608.jpg","medium":"https://s.abcnews.com/images/GMA/260520_gma_ally_fall3_732_hpMain_9x16_992.jpg","large":"https://s.abcnews.com/images/GMA/260520_gma_ally_fall3_732_hpMain_16x9_1600.jpg"}},{"1x1":{"small":"https://s.abcnews.com/images/GMA/260520_gma_ally_fall3_732_hpMain_1x1_608.jpg","medium":"https://s.abcnews.com/images/GMA/260520_gma_ally_fall3_732_hpMain_1x1_992.jpg","large":"https://s.abcnews.com/images/GMA/260520_gma_ally_fall3_732_hpMain_1x1_1600.jpg"}}]}},{"contentType":"video","date":"May 14, 2026","headline":"Trump meets Xi Jinping in high-stakes Beijing summit","section":"News","slug":"/video/132956835","id":"132956835","image":{"alt":"VIDEO: Trump meets Xi Jinping in high-stakes Beijing summit","credit":"ABCNews.com","ratio":"1x1","url":"https://s.abcnews.com/images/GMA/260514_gma_bruce_china1_hpMain_1x1_608.jpg","width":384,"height":384},"images":{"alt":"VIDEO: Trump meets Xi Jinping in high-stakes Beijing summit","credit":"ABCNews.com","crops":[{"16x9":{"small":"https://s.abcnews.com/images/GMA/260514_gma_bruce_china1_hpMain_16x9_608.jpg","medium":"https://s.abcnews.com/images/GMA/260514_gma_bruce_china1_hpMain_16x9_992.jpg","large":"https://s.abcnews.com/images/GMA/260514_gma_bruce_china1_hpMain_16x9_1600.jpg"}},{"9x16":{"small":"https://s.abcnews.com/images/GMA/260514_gma_bruce_china1_hpMain_9x16_608.jpg","medium":"https://s.abcnews.com/images/GMA/260514_gma_bruce_china1_hpMain_9x16_992.jpg","large":"https://s.abcnews.com/images/GMA/260514_gma_bruce_china1_hpMain_16x9_1600.jpg"}},{"1x1":{"small":"https://s.abcnews.com/images/GMA/260514_gma_bruce_china1_hpMain_1x1_608.jpg","medium":"https://s.abcnews.com/images/GMA/260514_gma_bruce_china1_hpMain_1x1_992.jpg","large":"https://s.abcnews.com/images/GMA/260514_gma_bruce_china1_hpMain_1x1_1600.jpg"}}]}},{"contentType":"video","date":"April 29, 2026","headline":"Grand jury indicts former FBI director over Instagram post","section":"News","slug":"/video/132488083","id":"132488083","image":{"alt":"VIDEO: Grand jury indicts former FBI director over Instagram post","credit":"ABCNews.com","ratio":"1x1","url":"https://s.abcnews.com/images/GMA/260429_gma_thomas_comey2_706_hpMain_1x1_608.jpg","width":384,"height":384},"images":{"alt":"VIDEO: Grand jury indicts former FBI director over Instagram post","credit":"ABCNews.com","crops":[{"16x9":{"small":"https://s.abcnews.com/images/GMA/260429_gma_thomas_comey2_706_hpMain_16x9_608.jpg","medium":"https://s.abcnews.com/images/GMA/260429_gma_thomas_comey2_706_hpMain_16x9_992.jpg","large":"https://s.abcnews.com/images/GMA/260429_gma_thomas_comey2_706_hpMain_16x9_1600.jpg"}},{"9x16":{"small":"https://s.abcnews.com/images/GMA/260429_gma_thomas_comey2_706_hpMain_9x16_608.jpg","medium":"https://s.abcnews.com/images/GMA/260429_gma_thomas_comey2_706_hpMain_9x16_992.jpg","large":"https://s.abcnews.com/images/GMA/260429_gma_thomas_comey2_706_hpMain_16x9_1600.jpg"}},{"1x1":{"small":"https://s.abcnews.com/images/GMA/260429_gma_thomas_comey2_706_hpMain_1x1_608.jpg","medium":"https://s.abcnews.com/images/GMA/260429_gma_thomas_comey2_706_hpMain_1x1_992.jpg","large":"https://s.abcnews.com/images/GMA/260429_gma_thomas_comey2_706_hpMain_1x1_1600.jpg"}}]}}],"relatedContentSection":"news","schemaContent":{"name":"Tennis legend Roger Federer announces retirement","description":"Federer had recently said he hoped to still return.","duration":"1:14","uploadDate":"09-15-2022","publication":"09-15-2022","images":"https://s.abcnews.com/images/GMA/default-img-undefined.png","url":"https://service-pkgabcnews.akamaized.net/opp/hls/abcnews/2022/09/220915_vod_roger_,500,800,1200,1800,2500,3200,4500,.mp4.csmil/playlist.m3u8","contentUrl":"https://service-pkgabcnews.akamaized.net/opp/hls/abcnews/2022/09/220915_vod_roger_,500,800,1200,1800,2500,3200,4500,.mp4.csmil/playlist.m3u8","link":"https://www.goodmorningamerica.com/news/story/tennis-legend-roger-federer-announces-retirement-89950551"}},"playlist":[{"id":"133390157","contentType":"story","section":"news"},{"id":"133415361","contentType":"story","section":"news"},{"id":"133414032","contentType":"story","section":"news"},{"id":"133380485","contentType":"story","section":"news"},{"id":"133358298","contentType":"story","section":"news"},{"id":"133350119","contentType":"story","section":"news"},{"id":"133307515","contentType":"story","section":"news"},{"id":"133307527","contentType":"story","section":"news"},{"id":"133282665","contentType":"story","section":"news"},{"id":"133220149","contentType":"story","section":"news"},{"id":"133179167","contentType":"story","section":"news"},{"id":"133144373","contentType":"story","section":"news"},{"id":"133144059","contentType":"story","section":"news"},{"id":"133143081","contentType":"story","section":"news"},{"id":"133075455","contentType":"story","section":"news"},{"id":"133063114","contentType":"story","section":"news"},{"id":"133063086","contentType":"story","section":"news"},{"id":"133015093","contentType":"story","section":"news"},{"id":"132998564","contentType":"story","section":"news"},{"id":"132998072","contentType":"story","section":"news"}],"kvps":{"pgtyp":"article","lang":"en","sp":"goodmorningamerica","programmatic":"true","bundleId":"com.abcnews"}},"analytics":{"accountID":"wdgnewwdgnewgmaweb","ns":"gma","pageName":"gma:news:video","pageType":"video","globalSpecVersion":"v1.08","siteDifferentiator":"gma:site","tagID":"g_page01","userABCookie":"0","section":"news","title":"Tennis legend Roger Federer announces retirement","pubTime":"10:34","pubDate":"09-15-2022","modTime":"07:47","modDate":"09-16-2022","taxonomyTags":"none","id":89950551,"editorialOtherSubjects":"","wordCount":"none","columns":"none","authors":"","authorsUnit":"none","authorsBureau":"none","subBrand":"Good Morning America","provider":"Good Morning America","videoName":"Tennis legend Roger Federer announces retirement","mediaAssetTitle":"FEDERER RETIRES","videoId":89950551,"mediaOnPage":"video","legacySlug":"/living/story/tennis-legend-roger-federer-announces-retirement-89950551"},"taboola":{}},"request":{"headers":{},"httpVersion":"1.1","method":"GET","url":"/video/89950551","vary":{"host":"www.goodmorningamerica.com","cached":true,"path":"/video/89950551","forwarded-proto":"https","device":"desktop","userab":"0"}},"viewport":{"width":1260,"height":0},"user":{}};