Germany 2, Algeria 1

PORTO ALEGRE, Brazil (AP) — Substitute Andre Schuerrle and Mesut Ozil scored in extra time and Germany survived Algeria's aggressive play with a 2-1 win to reach the World Cup quarterfinals for the ninth consecutive time.

All three goals came in extra time after Algeria dominated for long stretches during the opening 90 minutes.

"It was a victory of will power," Germany coach Joachim Loew said. "We had major problems in the first half to organize the way we played. We made simple mistakes, which invited the opponents to start counter attacks."

Germany finally took the lead when Thomas Müller provided a cross from the left flank that was slightly behind Schuerrle. The Germany forward dragged his left 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 substitute Abdelmoumene Djabou pulled one back in injury time for Algeria.

Three-time champion Germany will next face 1998 winner France on Friday at the Maracana Stadium in Rio de Janeiro.

Algeria was playing in the second round of the World Cup for the first time.

France 2, Nigera 0

BRASILIA, Brazil — Paul Pogba scored with a late header to finally break Nigeria's stubborn resistance and Joseph Yobo added an own-goal as France won 2-0 to reach the World Cup quarterfinals on Monday.

Four years ago, France crashed out of the group stage, shamed a nation by going on strike and was jeered by its own fans and lambasted by politicians in the fallout from an embarrassing tournament.

"I'm proud of my players because we're coming back from very far. I think we've given a lot of pleasure back to our fans," France coach Didier Deschamps said. "I think there were 5,000 here and millions back home who will feel proud."

"I'm very happy and proud to be among the last eight teams left," France coach Didier Deschamps said. "We have four days left to prepare for another battle."

Yobo, who announced his international retirement after the game, turned the ball into his own net in stoppage time under pressure from France substitute Antoine Griezmann.

At the final whistle, France's relieved players danced in front of their fans as dreams of a repeat run to the final — just like in 2006 — moved a step closer.

"We had the whole country behind us. It's one of the proudest moments of my life," Pogba said. "We know we're capable of playing our best match and playing the worst, but today we were good. We stuck together and I'm very happy."