Germany had to battle all the way into extra time to beat Algeria 2-1 in their World Cup second-round clash on Monday, crushing the North Africans' dream of revenge and setting up a quarterfinal duel against fellow former champion France.

The Germans were pushed hard by an inspired Algeria before goals from Andre Schuerrle and Mesut Ozil sealed victory in a tense game marked by swift Algerian counterattacks and a second-half German barrage of the Desert Foxes' goal mouth.

The North African outsiders, representing the hopes of the Arab world, played with energy and confidence to regularly expose a static German defense but the European team's power and fitness counted in the end.