Bayern Munich barely staved off an improbable comeback Wednesday, eliminating Arsenal from the Champions League despite a 2-0 loss at home.

The defeat by the Gunners left England without a team in the quarterfinals for the first time in 17 years.

Olivier Giroud gave Arsenal an early lead in the third minute and Laurent Koscielny added the second in the 86th. But Arsenal remained one goal away from erasing its 3-1 deficit from the first leg.

With the series level 3-3 on aggregate, Bayern advanced to the quarterfinals with more away goals.

Bayern is a four-time winner of the competition and was runner-up twice in the last three seasons.