Roger Federer’s absence from tennis has cost him a spot in the ATP rankings.

The legendary superstar was not listed in the latest ATP rankings for the first time since 1997. He had appeared in the singles rankings every week since he made his debut at age 16 in September of that year.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Roger Federer talks with Novak Djokovic

Serbia's Novak Djokovic and Switzerland's Roger Federer speak during a 100 years of Centre Court celebration on day seven of the Wimbledon tennis championships in London, Sunday, July 3, 2022.  (AP Photo/Kirsty Wigglesworth)

He holds the record for most consecutive weeks at No. 1 with 237 and spent 310 total weeks at No. 1 during his career.

Federer has been battling injuries since making it to the Wimbledon quarterfinals a year ago. He has not played since last year’s tournament. He was ranked 97th before play began this week at the Grand Slam event but now has zero points because the rankings are based on a player’s results over the previous 52 weeks.

JOHN MCENROE SAYS NOVAK DJOKOVIC SHOULD PLAY US OPEN DESPITE COVID VAX STATUS: 'THIS IS RIDICULOUS'

Roger Federer waves to the crowd

Switzerland's Roger Federer waves during the 100 years of Centre Court celebration on day seven of the Wimbledon tennis championships in London, Sunday, July 3, 2022.  (AP Photo/Kirsty Wigglesworth)

The 40-year-old Swiss star intends to make his return in October at a tournament in his home country. He said last week he hoped he could play Wimbledon again. He took part in a ceremony honoring Wimbledon champions.

"Just tried to be successful here and represent the sport well. I hope I did that," he said. "And I hope I can come back ... one more time."

Federer has the men’s record for most wins at Wimbledon with eight. Novak Djokovic picked up his seventh with Sunday’s win over Nick Kyrgios.

Federer in December 2019

In this Sunday, Dec. 15, 2019 photo, Roger Federer talks to the Associated Press reporter during an exclusive interview in Dubai, United Arab Emirates.  (AP Photo/Kamran Jebreili)

CLICK HERE TO GET THE FOX NEWS APP

"I’ve been lucky enough to play a lot of matches on this court. Feels awkward to be here today in a different type of role," he added. "But it’s great to be here with ... all the other champions. This court has given me my biggest wins, my biggest losses."

The Associated Press contributed to this report.