Substitute Andre Schuerrle and Mesut Ozil scored in extra time Monday to lead Germany over an aggressive Algeria 2-1 and into the World Cup quarterfinals.
Thomas Mueller provided a cross from the left flank that was slightly behind Schuerrle. The Germany forward dragged his leg and backheeled the ball into the far corner in the 92nd minute, leaving goalkeeper Rais Mbolhi with no chance.
Ozil added the second in the 120th, and Abdelmoumene Djabou pulled one back in injury time for Algeria.
Germany will next face France on Friday at the Maracana Stadium in Rio de Janeiro.