Federer had been favourite to lift a ninth title but will now only be able to watch Sunday's final, where his great rival Rafael Nadal is expected to be one of the combatants.
That initial burst gave Federer 34 successive sets won at Wimbledon, equalling his own record set between 2005 and 2006.
In a stunning turnaround in an unfamiliar setting - Court No. 1 instead of Centre Court - the No. 1-seeded Federer blew a match point and, eventually, all of a big lead in a 2-6, 6-7 (5), 7-5, 6-4, 13-11 loss to No. 8 Kevin Anderson on Wednesday. 'Against Anderson he has won all four matches and never dropped a set, so I expect him to comfortably get through.
Anderson held his nerve with his relentless and powerful serve win the fourth and send the rip-roaring contest into an unlikely fifth and deciding set.
Meanwhile Novak Djokovic ended his near two-year absence from grand slam semi-finals by booking a place in the last four at Wimbledon.
"By the end I thought I did a great job not thinking about what was happening".
Ramos then hit Djokovic with a time violation warning for taking too long to serve in the seventh game of the fourth set. "It's not like I would have remembered exactly how it would have felt", Federer said.
Anderson is the first South African man to make the last four at Wimbledon since Kevin Curren in 1983.
Ex-UCLA Basketball Player Billy Knight Dead at 39
He also advises people suffering from mental illness to seek help, so they don't end up like him. "Mental illness is serious". In the video , Knight speaks about his " life of sin ", and tells the viewers that it will be his "last message on earth".
Cardi B Files $15 million Suit Against Estranged Manager
Almanzar's entertainment-related activities to an additional 25% (from the management agreement's previous 20%). Cardi B arrives for the 2018 Met Gala in a custom Moschino outfit and bedazzled headpiece.
For 20 years, football wasn't coming home for England boss Southgate
Get your waistcoats out, LADS! Another football fan flying to Croatia to watch the game is James Stephenson, from Winton. They'll have to be hugely proud of the team and they must think that they can beat us.
The women's semi-finals are set for Thursday.
"I kept telling myself to keep believing". You have to have that mindset.
After a slump following two years of nearly total domination of the men's game, Djokovic's star appears to be back on the rise and he is a clear contender to win a fourth Wimbledon title.
He said: "I just asked the chair umpire how did I deserve that warning?"
"I don't think it really mattered, to be honest". Nishikori did the same in the fourth set and he didn't get a warning.
"He claims that he didn't see what Nishikori has done, but apparently he always sees what I do".
"That was very important", he added.
"I am peaking at the right moment".