Germany were expected to get the better of Algeria with ease in their World Cup last-16 tie on Monday.
However, Die Mannschaft were taken all the way to extra time at the Estadio Beira-Rio in Porto Alegre.
It was only in the second minute of extra time that Germany could actually heave a sigh of relief, as half-time substitute and Chelsea forward Andre Schurrle made the breakthrough.
Mesut Ozil, who had a rather disappointing game, made the match safe for Germany with a close-range effort in the final minute of the extra-time period, although Algeria scored a consolation goal through Abdelmoumene Djabou just moments later.
Algeria pushed the Germans hard during the normal 90 minutes and made it tough for the defenders.
Arsenal centre-back Per Mertesacker, who featured for the entire match, struggled against their long balls in the first 45 minutes.
Like his teammates, the 29-year-old was clearly tired at the end of the contest and took to social networking site Twitter to state as much.
There will not be much time for Mertesacker and his Germany teammates to take rest, though, as the quarter-finals of the World Cup kick off on Friday.
Which is why the former Werder Bremen central defender has started his recovery immediately, posting the following picture on Twitter to show what he is doing to re-energize himself.
Germany will face their toughest opponents yet in Brazil, as between them and a place in the semi-finals stand a France side who have grown in confidence as the tournament has advanced.
The clash between the European giants is at the Maracana in Rio de Janeiro on July 4, and it promises to be a very entertaining one.