Roger Federer is set to make his comeback at the Laver Cup in London in September, which would rule him out of this year’s majors.

His long-time rival Rafael Nadal, however, will return this week at the Madrid Open after a month out.

Federer has not played since being beaten in last year’s Wimbledon quarter-finals to Hubert Hurkacz, a straight-sets defeat that culminated in a 0-6 third set.

Watch the latest sport on Channel 7 or stream for free on 7plus >>

The 20-time grand slam winner will turn 41 in August, and has barely featured on the ATP Tour in the last two years due to knee trouble that required surgery.

News of his comeback plans were announced by the organisers of the Swiss Indoors, which takes place in October.

They said: “Ten-time singles champion and hometown hero Roger Federer has announced his comeback to the stadium at St Jakobshalle. The Swiss all-time great has confirmed his initial agenda will include the Laver Cup in London followed by the Swiss Indoors in Basel.”

Responding to the announcement, Federer posted on Instagram: “Looking forward to playing back home.”

The Laver Cup, named after Australian tennis legend Rod Laver and founded by Federer’s management company in 2017, pits Europe against the rest of the world. It will take place in London from September 23 to 25.

The Swiss Indoors runs from October 24 to 30.

Federer for a long time held the record for the most grand slam singles titles won by a man. However, he has been joined on 20 by Novak Djokovic, and Nadal moved out on his own with 21 by triumphing at the Australian Open this year.

Nadal subsequently suffered a stress fracture in his rib at Indian Wells in March.

He intends to return at this week’s ATP Masters 1000 Madrid Open, stating on Twitter: “Despite arriving just before the tournament and preparation being difficult, I really want to play at home since the opportunities are few.

“So I’m going to try to do it in the best way I can. See you in Madrid.”