(CNN) -

Extra-time goals from Mesut Ozil and Andre Schurrle spared Germany's blushes against Algeria in the World Cup last 16 tie at Porto Alegre, Brazil, on Monday.

A breathless 90 minutes ended 0-0 with Algeria going close to scoring several times in the first half before Germany came back into the contest in the second period.

The deadlock was broken two minutes into the first period of extra time when Thomas Muller squared the ball for Schurrle to cleverly back heal the ball past goalkeeper Rais Mbolhi.

Ozil made it 2-0 in the final minute of extra time before Abdelmoumene Djabou pulled one back for Algeria in the dying moments of the match.

Germany will now face France in the quarterfinals at the Maracana on Friday.

More to follow...