England will face Germany in the last 16 of Euro 2020 next Tuesday.
The huge Wembley clash, which will kick off at 5pm, was set up after a dramatic night in Group F.
Germany needed a late goal to salvage a 2-2 draw with Hungary - saving their place in the tournament.
And it was enough to seal second place for Joachim Low's team - and a second round date with Gareth Southgate's Three Lions.
The Germans were pushed all the way by Hungary in Munich.
The underdogs led at half-time through Adam Szalai's goal before Kai Havertz levelled on 66 minutes.
An Andras Schafer goal two minutes later then seemed to put Hungary on course for qualification - and Germany at risk of going out.
But Leon Goretzka struck six minutes from time for Low's side, sending Hungary out as bottom side in the group.
It will mean a first meeting between England and Germany at a major tournament since the 2010 World Cup, when Germany won 4-1.
Their last meeting in the Euros came in 2000, when Alan Shearer's header gave England a 1-0 win.
Before that they famously met in the Euro 1996 semi-finals, Germany winning on penalties after Southgate's shoot-out kick was saved.
In the other Group F game, Portugal and France also drew 2-2, Cristiano Ronaldo's two penalties coming either side of a Karim Benzama brace, also including one penalty.
The full last 16 fixtures are:
Wales v Denmark
Italy v Austria
Netherlands v Czech Republic
Belgium v Portugal
Croatia v Spain
France v Switzerland
England v Germany
Sweden v Ukraine
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules here