The former world number one looked in trouble after dropping the opener, but he responded positively to run out a 3-6 7-6 6-4 6-4 victor.
Read below to see how the match unfolded on Centre Court.
3.51pmHello, and welcome to Sports Mole's live coverage of the Wimbledon quarter-final between Stanislas Wawrinka and Roger Federer.
3.54pmYou all as disappointed as I am? Thought so. Dimitrov was far too good for Murray today, though. Anyway, let's move on to the all-Swiss affair between Wawrinka and Federer, which is just getting underway on Centre Court.
Wawrinka 1-0* FedererFederer has an early opening at 15-30, but three points in a row from Wawrinka help him power through the first game.
Wawrinka *1-1 FedererFederer has been in superb form behind his first serve in this tournament, and he storms through to a routine hold.
Wawrinka 2-1* FedererIt's important that Wawrinka establishes a rhythm behind his serve, and a couple of timely first serves help him ease through the game. Wawrinka is finding his first serve at just 36% though. That will need to improve.
Wawrinka *3-1 FedererBREAK! Wawrinka creates a break point at 30-40, but fails to capitalise, but another mistake from Federer allows Wawrinka a second opportunity. The pair become embroiled in a lengthy baseline exchange, but Wawrinka takes his chance when Federer goes long.
Wawrinka 4-1* FedererWawrinka's hitting has been phenomenal so far, and a crushing cross-court backhand is followed by a big first serve out wide.
Wawrinka *4-2 FedererFederer races to a love hold but he needs to find a way to break his younger countryman.
Wawrinka 5-2* FedererWawrinka has been excellent off the ground but a couple of errors on his forehand side allow Federer to bring up a break point. However, Wawrinka is superb on the defensive and finishes off the point with a drop volley, before two big serves force Federer to go long.
Wawrinka *5-3 FedererFederer eases into a 30-0 advantage, but Wawrinka keeps him honest by swatting a forehand winner cross court. The seven-time winner gets to two game point, but a ferocious backhand winner sees Wawrinka remain in the game. It's only momentarily, though, as Federer delivers an accurate first serve.
Wawrinka 6-3* FedererSET! Federer tries to respond to his opponent's aggression with some of his own, but at the moment, Wawrinka is playing like he has the ball on a piece of string and three set points are created after a smash from inside the court. Federer saves the first, but a blistering one-two off serve sees Wawrinka take the set.
Wawrinka *6-3 0-1 FedererWawrinka has the opportunity to take the first point, but he allows Federer to direct a backhand down the line, and the 32-year-old takes the next with a sharp volley at the net. A first serve out wide sees Federer create three game points, and he's on the board after his opponent fires a shot into the net.
Wawrinka 6-3 1-1* FedererWawrinka is playing at such a high level at the moment. A love hold is completed with a forehand winner down the line. I can't see how Federer can win this match if Wawrinka continues like this.
Wawrinka *6-3 1-2 FedererA cross-court return winner spells danger for Federer, but three points in a row see him regain control. A miscued forehand keeps Wawrinka competitive but Federer responds by bringing the error out of his opponent.
Wawrinka 6-3 2-2* FedererA double fault and a wayward shot off the ground see Wawrinka fall to 0-30, but Federer misses his chance for three break points when sending a backhand into the net. However, he secures two opportunities with a backhand down the line, but he can't convert as Wawrinka fights back. Big hold for the Australian Open champion.
Wawrinka *6-3 2-3 FedererFederer holds comfortably to love as he continues to retain serve in this set. The former world number one has played solidly apart from that one game where he dropped serve. He won't be panicking too much at the moment.
Wawrinka 6-3 3-3* FedererA lazy Federer return and an ace out wide from Wawrinka sees the younger of the two Swiss get to 40-15, and he seals the game with one of the best backhand winners that you will ever see.
Wawrinka *6-3 3-4 FedererAn efficient game from Federer sees him hold to 15. The concluding point was a joy to behold, with Federer finishing it off with a forehand scoop at the net that caught the line.
Wawrinka 6-3 4-4* FedererThe Wawrinka backhand must be one of the most easy-on-the-eye shots in tennis. It's beautifully brutal. He connects perfectly on a couple of occasions to send the ball flashing into the corner on the way to a hold to 15.
Wawrinka *6-3 4-5 FedererThere was a possibility that Federer might become intimidated by the heavy-hitting of his compatriot, but he hasn't wilted whatsoever. A hold to love and Wawrinka must serve to remain in the set.
Wawrinka 6-3 5-5* FedererA serve-and-volley gets Wawrinka on his way, but a couple of errors are beginning to creep into his game and Federer gets to deuce. Wawrinka powers through, but he has called for the doctor at the end of this set.
Wawrinka *6-3 5-6 FedererFederer just misses the baseline with a backhand to give Wawrinka to early advantage, but three points in a row see him earn 40-15. The game is his when his opponent can't return a second serve, and his compatriot must serve once again to remain in the set.
Wawrinka 6-3 6-6* FedererWawrinka may have called for the doctor but he breezes into a 40-0 advantage before an ace seals a love hold. We head into a tie-break.
Wawrinka *6-3 6-6 (3-3) FedererA smash from Federer earns him the opening point, but Wawrinka responds with a accurate first serve. However, a couple of mistakes from Wawrinka give Federer a 3-1 lead but Federer gifts him the mini-break back with a miscued forehand. It's 3-3 at the change of ends after an ace out wide.
Wawrinka *6-3 6-7 (5-7)* FedererSET! Wawrinka concedes the mini-break for the second time in the tie-break when he flashes a forehand long of the baseline, and Federer extends his lead with a super volley at the net. It's three set points for the former world number when Wawrinka nets, but Wawrinka hangs in there with a forehand winner. A second set point is wasted when Federer sends a volley wide, but the second set is won when he serves-and-volleys behind a second serve.
5.14pmWawrinka looks to be complaining of a stomach upset during the break between sets. We will have to see if that hampers him during this third set.
Wawrinka 6-3 6-7 1-0* FedererFederer attempts to pile the pressure on his compatriot at the start of the game, but Wawrinka comes through with flying colours to hold to 15.
Wawrinka *6-3 6-7 1-1 FedererA smash from Federer earns him the opening point, before two winners and a unreturned first serve help him hold to love.
Wawrinka 6-3 6-7 2-1* FedererWawrinka edges ahead, but two mistakes off the ground give Federer an opportunity at 15-30. Wawrinka then slices long to concede two break points to the seven-time winner, but both are saved with supreme touch and skill. A second deuce transpires, but Wawrinka eventually holds.
Wawrinka *6-3 6-7 2-2 FedererWawrinka smashes the ball at Federer at the net, but the more experience competitor of the two remains composed to hold to 15 with an ace out wide.
Wawrinka 6-3 6-7 3-2* FedererIf Wawrinka is suffering the effects of a stomach upset, he certainly isn't showing it. An ace and a serve-and-volley see him hold to love.
Wawrinka *6-3 6-7 3-3 FedererAn outrageous forehand return from Wawrinka sees him move to 15-30, but he can't keep a first-serve return in court on the next point. Wawrinka looks like he has deuce with another crunching backhand but it misses the line by no more than an inch and Federer levels up.
Wawrinka 6-3 6-7 3-4* FedererBREAK! Is that the turning point in the match? Federer capitalises on a couple of errors from Wawrinka to bring up two break points, and after establishing himself in the next rally, Federer strikes with a forehand down the line.
Wawrinka *6-3 6-7 3-5 FedererFederer has a spring in his step now. He shows no hesitation in converting a smash for a 30-0 lead and that quickly becomes game when Wawrinka dumps two returns into the net.
Wawrinka 6-3 6-7 4-5* FedererThere are signs that Wawrinka is beginning to tire, but he fires a backhand winner and an ace to get to 40-15. He finishes the game with a forehand down the line, but he doesn't look in the greatest of shapes as they sit down at the change of ends.
Wawrinka *6-3 6-7 4-6 FedererSET! Wawrinka has started to go all-out attack, and although he finds the corner with one backhand, he finds himself facing two set points. Federer takes it on the first with a wonderful smash on the run, and the seven-time winner is one set away from the semi-finals.
Wawrinka 6-3 6-7 4-6 1-0* FedererFederer would have been keen to test Wawrinka in his opening service game, but the younger of the two Swiss holds to love.
Wawrinka *6-3 6-7 4-6 1-1 FedererFederer responds with a love hold of his own. The highlight of the game is a fine one-handed catch from one of the ball-boys at the net. The Centre Court crowd were very impressed.
Wawrinka 6-3 6-7 4-6 1-2* FedererBREAK! How has Wawrinka made that? He executes the flattest of forehands from corner to corner. However, two shots into the net give Federer 15-30, and that soon becomes 15-40 when Wawrinka flashes a forehand into the tramlines. Federer earns the break on the first point when Wawrinka goes long. Could that be the killer blow?
Wawrinka *6-3 6-7 4-6 1-3 FedererA routine forehand winner sees Federer ease to 30-0, and another unforced error from Wawrinka helps his compatriot secure three game points. Wawrinka fights back to 40-30, but a wayward forehand sees Federer consolidate the break.
Wawrinka 6-3 6-7 4-6 2-3* FedererWawrinka looks on the brink at 15-30, but two positive points behind his first serve take him to game point. A drop shot looks like winning him the game, but Federer makes up the ground to flick the ball into the court. Wawrinka gets his second game on the board in this set, but it looks a tough ask for him to get back into this.
Wawrinka *6-3 6-7 4-6 2-4 FedererFederer has been immaculate at the net today, and he strolls in behind his first serve to put away another volley to reach 40-0. Wawrinka crushes a backhand winner into the corner, but Federer restores his two-game advantage when Wawrinka goes wide.
Wawrinka 6-3 6-7 4-6 3-4* FedererThere were indications that Federer might run away with this match, but to Wawrinka's credit, he is fighting hard to remain in this tournament. He holds to 15, but he must break serve in one of Federer's next two service games.
Wawrinka *6-3 6-7 4-6 3-5 FedererWawrinka is fortunate to see a miscued forehand return go over the net for the first point, but it fails to derail the Fed Express who draws two mistakes out of his opponent. Wawrinka fights back to deuce, but two accurate serves help the former world number one move to the brink of the last four.
Wawrinka 6-3 6-7 4-6 4-5* FedererAn outstanding forehand winner gets Wawrinka on the way to three game points, but Federer catches him coming in on the next point to remain in the game. However, Wawrinka takes the game and Federer will serve for the match after the change of ends.
Wawrinka *6-3 6-7 4-6 4-5 FedererWhat has Wawrinka got left in the tank? Plenty by the looks of it. He makes a return winner on the first point, but is so unfortunate when a net cord benefits Federer on the next. The former champion has a golden opportunity to create two match points, but he blazes a forehand wide. Drama! However, Wawrinka follows his compatriot in misfiring off the ground to give Federer a match point. Stunning defence from Wawrinka! It keeps him in the match, but for how long? Maybe for a while yet - he has a break point after Federer miscues a backhand. Federer survives with a smash and we are back at deuce and for a second time, it's match point for Federer after Wawrinka goes wide. Can he take this one? NO! What a return from Wawrinka. This is incredible stuff. Federer creates a third opportunity with a backhand volley but the fight from Wawrinka is outrageous as he drills a forehand winner into the corner. It's a fourth chance for Federer after Wawrinka nets a return, but again, it's wasted. We are onto the fifth deuce...
Wawrinka *6-3 6-7 4-6 4-6 FedererMATCH! That's the end of it though! Two quick points from Federer see him progress through to the last four.
6.29pmHe made a bit of a meal out of the final game, but on his fifth match point, Roger Federer finally gets the better of Stanislas Wawrinka in four sets. It was a fine effort from the Australian Open champion, who was hampered by a stomach upset, but he could do nothing to stop his compatriot booking a place in the semi-finals.
6.30pmFederer will now play the winner of the match between Milos Raonic and Nick Kyrgios on Friday.
6.32pmThat will be all from Sports Mole's coverage of this match. Goodbye for now.