Germany scraped through to the knockout stages of Euro 2020 and set up a last-16 showdown against England after Leon Goretzka's late equaliser earned them a 2-2 draw with Hungary. Adam Szalai of Mainz, who has spent most of his career in the Bundesliga, gave Hungary the lead in Munich after 11 minutes to leave Germany facing an early exit.
There was a brief reprieve when Kai Havertz scored a 66th-minute header, but just 91 seconds later Joachim Low's men were caught napping and Andras Schafer took full advantage in restoring Hungary's lead.
Goretzka rescued Germany from their first exit at this stage of the competition since 2004 and sent Hungary crashing out in the process.
Germany fell behind when Freiburg's Roland Sallai delivered a fine curling cross from the Hungary right and Szalai got in front of Mats Hummels to score into the bottom corner of the net with a diving header.
Hummels hit the crossbar with a header as the hosts sought a quick equaliser, but, as torrential rain began to fall, the Hungarian defence strengthened its resolve.
An error by Hungary goalkeeper Peter Gulacsi gifted Havertz the equaliser, the Chelsea forward nodding in from close range after Hummels was allowed to tee him up.
But straight from the restart, Hungary capitalised on hesitant Germany defending as Szalai's chip was pounced on by Schafer, who headed it beyond Manuel Neuer and into the net.
There were just seven minutes left when Goretzka, on as a second-half substitute, collected the rebound from Timo Werner's blocked shot and scored via a touch from Gulacsi's leg to spare his side's blushes.
What does it mean? Low lives to fight another day
Germany failed to make it out of groups at the European Championships in 2000 and 2004, but since then they have been runners up in 2008 and semi-finalists in 2012 and 2016.
The curtain would have fallen on Low's 15-year tenure as head coach had his side failed to progress, but his hopes of a glorious ending remain intact.
Szalai was the first player to both score and assist a goal in a single match at a major tournament for Hungary since three players – Gabor Poloskei, Jozsef Toth and Laszlo Fazekas – did so against El Salvador at the 1982 World Cup.
On a day when 18 goals were scored at the European Championship – a tournament record – Gulacsi gifted one of the softest to Havertz when he went to punch a clearance and missed completely.
Key Opta Stats: Musiala makes history
- Germany are one of only four sides to concede first in all three of their group stage games at Euro 2020, after Turkey, North Macedonia and Poland.
- Opening the scoring within 11 minutes, Szalai netted what was the quickest goal that Germany have conceded in the European Championships since 2000 v Romania (five minutes).
- Aged 18 years and 117 days, Jamal Musiala became the youngest ever player to make an appearance for the German national team at a major tournament (World Cup/Euros).
- Germany have progressed from the group stage in seven of their last eight major international tournaments (World Cup/Euros), failing only at the 2018 World Cup in this spell.
Germany face England at Wembley on Tuesday, and Hungary's next game is also against Gareth Southgate's men, in a World Cup qualifier in September.