Switzerland's Roger Federer waves to supporters after his match against Austria's Dominic Thiem during the ATP Tennis Open tournament at the Foro Italico, on May 12, 2016 in Rome. / AFP / TIZIANA FABI (Photo credit should read TIZIANA FABI/AFP/Getty Images)

Former world No.1 and 17-time Grand Slam champion Roger Federer has withdrawn from Roland Garros due to injury.

It ends an amazing streak of 65 consecutive Grand Slams for the 34-year-old.

The last time Federer missed a Slam was the 1999 US Open.

“I regret to announce that I have made the decision not to play in this year's French Open,” Federer announced on his Facebook page.

“I have been making steady progress with my overall fitness, but I am still not 100% and feel I might be taking an unnecessary risk by playing in this event before I am really ready.

"This decision was not easy to make, but I took it to ensure I could play the remainder of the season and help to extend the rest of my career. I remain as motivated and excited as ever and my plan is to achieve the highest level of fitness before returning to the ATP World Tour for the upcoming grass court season."

Federer had surgery on his knee after the Australian Open, before returning to the court in April.

He then missed the Madrid Masters due to a back injury, which flared up again during a straight sets loss to youngster Dominic Thiem in Rome.

“I am sorry for my fans in Paris but I very much look forward to returning to Roland Garros in 2017.”