London  -  Roger Federer was knocked out of Wimbledon by Kevin Anderson after a thrilling five-set battle that ended in a 2-6 6-7 (5) 7-5 6-4 13-11 victory for the South African.

The eighth seed Anderson did not look like causing a shock when he lost the first set 6-2 against the eight-time Wimbledon champion on Court No 1. Federer then equalled his own record of 34 consecutive sets won at Wimbledon as he went 2-0 up by holding his nerve in a high quality tie-break. The Swiss previously won 34 straight sets between the third round in 2005 and the final in 2006. However, Federer was unable to break his own record after dropping the third set as Anderson embarked on a courageous fightback. The South African saved three break points before taking the set 7-5.

When Anderson broke again in the fourth, Federer was suddenly on the ropes. The 20-time Grand Slam winner lost the set 6-4 as Anderson’s relentless, powerful serve sent the match into a fifth and deciding set. But Federer went toe to toe with his buoyant opponent in an epic fifth-set tussle until with the score 11-11 Anderson pounced. He broke to 30 and then served out for a dramatic victory.

Meanwhile, three-time champion Novak Djokovic reached his eighth Wimbledon semi-final with a 6-3, 3-6, 6-2, 6-2 win over Japan's Kei Nishikori in a stormy Centre Court clash. Djokovic, 31, will be playing in his 32nd Slam semi-final where he will face either world number one Rafael Nadal or fifth-seeded Juan Martin del Potro. It will be Djokovic's first semi-final at a major since the 2016 French Open when he completed the career Grand Slam. The 12-time major winner prevailed despite picking up two code violations and accusing umpire Carlos Ramos of "double standards".

"I think the first warning was unnecessary," said Djokovic, who was sanctioned in the second set for spearing his racquet into the court. "It didn't harm the grass. Kei did the same in the fourth set but wasn't warned.  "The umpire said he didn't see. I don't think it's fair but it is what it is." Despite his anger, Djokovic still reeled off 10 of the last 12 games of the quarter-final. "It feels great to be back in the last four of a Slam. I've been building in the last couple of weeks and my level of tennis is going up," he said. "I am peaking at the right moment."

After racing through the first set, Djokovic was handed his first code violation for unsportsmanlike conduct after bouncing his racquet into the grass in frustration at squandering three break points in the third game of the second set. "Do you think I ruined the court?" he bellowed at Ramos.

The 2011, 2014 and 2015 champion was clearly unsettled by the dispute, quickly surrendering the set. Djokovic saved three break points in the fifth game of the third and made the Japanese star pay by breaking for 4-2 and an eventual two sets to one lead. Nishikori, who had won only two matches in 15 meetings with the 12-time major winner, broke for 1-0 in the fourth but was broken straight back.

Djokovic's mood was not improved by Ramos choosing not to punish Nishikori for imitating his earlier offence of bashing a racquet into the ground. "Double standards, my friend," screamed the former world number one. Ramos then hit Djokovic with a time violation warning for taking too long to serve in the seventh game of the fourth set. But the 12th seed was not to be denied as he raced into the last four, hitting an impressive 40 winners on the way. Nishikori, playing in his first quarter-final at the All England Club, was bidding to become the first Japanese man to make the Wimbledon semi-finals in 85 years.