Roger Federer will miss the Rio Olympics and the remainder of the 2016 season in order to fully recover from the knee surgery he underwent earlier this year.
Federer went under the knife for the first time in his career in February, having suffered a torn meniscus in his left knee following a run to the semi-finals of the Australian Open.
He duly missed the French Open with a back problem, but reached the last four at Wimbledon earlier this month, losing a thrilling five-setter to Milos Raonic.
That defeat will now represent Federer's final outing of the campaign, as the 17-time grand slam champion seeks a return to full fitness for 2017.
In a statement on his Facebook page, the 34-year-old wrote: "I'm extremely disappointed to announce that I will not be able to represent Switzerland at the Olympic Games in Rio and that I will also miss the remainder of the season.
"Considering all options after consulting with my doctors and my team, I have made the very difficult decision to call an end to my 2016 season as I need more extensive rehabilitation following my knee surgery earlier this year.
"The doctors advised that if I want to play on the ATP World Tour injury free for another few years, as I intend to do, I must give both my knee and body the proper time to fully recover.
"It is tough to miss the rest of the year. However, the silver lining is that this experience has made me realise how lucky I have been throughout my career with very few injuries.
"The love I have for tennis, the competition, tournaments and of course you, the fans remains intact. I am as motivated as ever and plan to put all my energy towards coming back strong, healthy and in shape to play attacking tennis in 2017."