A stoppage-time header from Niclas Fuellkrug rescued a 1-1 draw for Germany against Switzerland on Sunday in Frankfurt, ensuring the Euro hosts finish top of Group A.
The Swiss hit the lead early, Dan Ndoye booting in from close range after 28 minutes to stun the home side.
Germany took a series of risks late in the hope of an equaliser and veteran striker Fuellkrug delivered, heading home in the second minute of stoppage time.
The result means Switzerland, rather than Germany, face a tougher last 16 assignment, setting up a potential meeting with holders Italy or 2018 World Cup finalists Croatia.
READ ALSO: Edo Monarch Celebrates Return Artefacts Found In Germany
The Germans look set to face second place in England’s Group C, which is currently Denmark.
Meanwhile, Kevin Csoboth scored in the 10th minute of added time as Hungary snatched a 1-0 win over Scotland to send Scotland out of Euro 2024.
It was a bitter end to Scotland’s bid to reach the knockout phase of a major tournament for the first time as they were caught out pressing for a goal of their own right at the death.
Scotland came last with just a point as their wait for a first European Championship win since 1996 goes on.
Coach Steve Clarke made one enforced change for Scotland as Scott McKenna replaced Kieran Tierney, who was stretchered off with a hamstring injury in the 1-1 draw with Switzerland.
English-born Callum Styles got the nod in Hungary’s midfield, coming in after shaking off an injury, with Endre Botka also making his first appearance of the tournament on the right side of a back three.
READ ALSO: Edo Monarch Celebrates Return Artefacts Found In Germany
John McGinn revealed the team skipped their pre-match nap as thousands of Scotland supporters gathered outside the hotel, belting out songs in anticipation of what they hoped was a historic night.