The center back scored his second goal of the tournament to send Joachim Low's men into the last four.
Mats Hummels' header earned Germany a 1-0 win over France and a place in the FIFA World Cup semifinals for the fourth time in succession.
The Borussia Dortmund defender missed the last-16 victory over Algeria as a result of flu-like symptoms, with the bug having also affected a number of the squad in the build-up to Friday's game.
Hummels, however, showed no ill-effects of any sickness in the 12th minute, rising highest to head home Toni Kroos' free kick from the left and hand Germany victory at the Maracana.
Such consistent performers throughout World Cup history with seven final appearances, Germany once again showed the ability to grind out results in major tournaments as the team successfully stifled France, Manuel Neuer showing great athleticism to thwart Karim Benzema in stoppage time.
The second period was a surprisingly turgid affair, with France showing no real urgency to find an equalizer and get back into the quarterfinal clash until the last 15 minutes.PHOTOS: U.S. fan reactions | Beautiful people in Brazil
For Didier Deschamps' men, a competition that had promised so much after the group stage thumpings of Honduras and Switzerland ended in bitter disappointment, as France failed to gain revenge for semifinal defeats to West Germany at the 1982 and 1986 editions.
Germany made the better start, but it was France which had the first effort on goal in the seventh minute when Benzema volleyed Mathieu Valbuena's chipped pass narrowly wide.
Hummels made France pay for that miss five minutes later when he broke the deadlock with his second goal of the 2014 World Cup, the defender beating Raphael Varane to Kroos' set piece and glancing a header in off the underside of the crossbar.
Twice Germany had appeals for penalties waved away, claiming fouls by Mathieu Debuchy on Miroslav Klose and Thomas Muller, but on each occasion referee Nestor Pitana signaled for play to continue.
Neuer was finally called into action for the first time 11 minutes before the break, reacting brilliantly to keep out Valbuena's left-footed volley, before Hummels deflected Benzema's rebound over the bar.
Benzema continued to threaten as halftime approached, seeing his header blocked by the body of Hummels and then firing a strike straight at Neuer after cutting in from the left shortly afterwards.
France cautiously pressed for an equalizer after the break, but Varane's header from Valbuena's right-wing cross on the hour mark was comfortable for Neuer.
Muller almost put the result beyond doubt nine minutes later, but his shot from an angle was deflected narrowly wide by Mamadou Sakho, although the officials failed to spot the deviation and awarded a goal kick only. Andre Schurrle replaced Klose - still seeking the goal that will see him become the World Cup's all-time leading scorer outright - and tested Hugo Lloris with a low drive that the Tottenham man was equal to.
Benzema worked some space inside the area with 14 minutes to play, but once again Hummels was there to block and Neuer parried away Blaise Matuidi's effort from a tight angle.
With France forced to push men forward, the side was left vulnerable on the break and Lloris saved well from Schurrle, who ought to have done better eight minutes from time.
Neuer then palmed away Benzema's angled drive late on as Germany held on to seal yet another semifinal berth and send France crashing out.