England will face Germany at Wembley on Tuesday in the Euro 2020 last 16 while Wales take on Denmark in Amsterdam on Saturday.
Gareth Southgate’s side progressed as group winners but had to wait until the conclusion of Group F on Wednesday to find out who they would meet.
Germany twice came from behind to draw with Hungary and, with Portugal and France also drawing, that was enough for Joachim Low’s side to finish second, behind France.
Wales finished as runners-up in Group A to Italy, who stormed through with maximum points to set up a tie with Austria.
England and Wales’ last-16 games will be shown live on BBC One and BBC iPlayer.
Who plays who in the last 16?
(All times BST)
Saturday
Wales v Denmark – Amsterdam, 17:00 (BBC)
Italy v Austria – Wembley, 20:00 (BBC)
Sunday
Netherlands v Czech Republic – Budapest, 17:00 (ITV)
Belgium v Portugal – Seville, 20:00 (ITV)
Monday
Croatia v Spain – Copenhagen, 17:00 (ITV)
France v Switzerland – Bucharest, 20:00 (ITV)
Tuesday
England v Germany – Wembley, 17:00 (BBC)
Sweden v Ukraine – Glasgow, 20:00 (BBC)
BBC One and BBC iPlayer to show England and Wales last-16 games
Check out the Euro 2020 scores and fixtures
Listen to the latest Daily Euros podcast from BBC Radio 5 Live
Should England come through their last-16 clash, they would have a quarter-final against either Sweden or Ukraine to look forward to in Rome on Saturday 3 July.
And the Three Lions could potentially meet Wales in the semi-final at Wembley four days later.
Standing in Wales’ way, should they progress from the last 16, would be the winners of the Netherlands versus the Czech Republic.
On the other side of the draw, lurk Italy, Belgium, France or Spain…
Wednesdays games
Spain earned their first win at Euro 2020 in style as they thrashed Slovakia to progress as Group E runners-up and set up a last-16 tie with Croatia.
Luis Enrique’s side head into the knockout stages on the back of their best attacking display of the tournament, proving far too good for a seriously below-par Slovakia.
Aymeric Laporte, Pablo Sarabia and Ferran Torres all scored after a bizarre own goal from Newcastle’s Martin Dubravka broke the deadlock at La Cartuja Stadium in Seville.
The Slovakia goalkeeper, who earlier saved a penalty from Alvaro Morata, punched the ball into his own net after Sarabia’s effort hit the crossbar and looped into the air.
Juraj Kucka inadvertently completed the rout for Spain, bundling the ball over his own line from close range.
Spain’s meeting with Croatia will take place in Copenhagen on Monday at 17:00 BST, while Slovakia are out.
Sweden substitute Viktor Claesson scored a 93rd-minute winner as a valiant Poland fightback proved in vain and they were eliminated from Euro 2020.
In a captivating game in St Petersburg, Sweden led 2-0 at the hour mark thanks to two goals from Emil Forsberg.
But a Robert Lewandowski double put Poland within a goal of the win they needed to advance – only for Claesson to end their hopes.
Sweden will now prepare for a last-16 tie against Ukraine at Glasgow’s Hampden Park on 29 June.
The Swedes netted their first goal from open play at the tournament just 82 seconds into their final Group E game thanks to Forsberg’s composed angled finish.
The RB Leipzig midfielder doubled the lead with a first-time shot – his third goal at the tournament – before Lewandowski produced a quality arrowed finish.
The Bayern Munich striker then conjured an 84th-minute equaliser, but Claesson’s late goal was decisive.
Poland captain Lewandowski was earlier guilty of an incredible miss with Sweden leading 1-0.
After heading against the underside of the bar from a corner, his follow-up header from just two yards out struck the bar.
In an extraordinary match, Germany were minutes away from making an embarrassing early exit when midfielder Goretzka, on as a substitute, equalised in the 84th minute with a low finish from 16 yards to send Hungary out.
Few outside Hungary will have given Marco Rossi’s side any chance of advancing after losing 3-0 to holders Portugal in their opening group game.
But they followed up a gutsy 1-1 draw against world champions France with a disciplined performance to give the home fans in the Allianz Arena a scare.
They opened the scoring after Roland Sallai’s incredible long-range pass picked up his captain Szalai to beat Manuel Neuer with a diving header.
France finish top of Group F at the Euro 2020 with five points from three games followed by Germany, Portugal and Hungary
Chelsea’s Havertz equalised with a header following an error by goalkeeper Peter Gulacsi but Germany fans were still celebrating when Schafer’s brave header in front of Neuer, who had come rushing off his line, put Hungary back in front.
At that stage, Hungary were heading into the last 16 and Germany were set for an early exit before Bayern Munich’s Goretzka came to the rescue to break Hungarian hearts – and set up a mouth-watering match against England.
That match will revive memories of when the two nations met in the semi-finals of Euro 96 – Germany winning a penalty shootout at Wembley to deny the Three Lions a place in the final.
Cristiano Ronaldo equalled the men’s all-time international goalscoring record as defending champions Portugal drew with France to qualify for the last 16 of Euro 2020 as one of the best third-placed teams.
Ronaldo scored his 108th and 109th goals, both from the penalty spot, to equal Ali Daei’s record set with Iran between 1993 and 2006.
They came either side of half-time but were not enough to give Portugal victory as striker Karim Benzema broke a six-year goal drought with France to score twice and ensure Les Bleus topped the group.
On a frantic evening, the four teams in Group F changed positions frequently, with Portugal looking set to face England in the next round before Germany’s dramatic late equaliser bumped them from fourth to second and eliminated Hungary.
Ronaldo gave Portugal the lead after Hugo Lloris followed through on Danilo as he attempted to punch away a cross, before Benzema equalised on the brink of half-time after Nelson Semedo was adjudged to have blocked off Kylian Mbappe’s run in the box.
Benzema scored a second immediately after the restart following a stunning pass from Manchester United’s Paul Pogba but Ronaldo drew Portugal level when he won and converted a second penalty 13 minutes later.
The draw in Munich meant Portugal finished in third place based on a head-to-head record, while France topped the group, a point ahead of Germany.