Wales will play Northern Ireland in the last 16 of Euro 2016, while England tackle Iceland and the Republic of Ireland face France.
The Republic were minutes from going out however came third in Group E with a late 1-0 win over Italy and experience.
Wales, who topped Group B, play Michael O’Neill’s Northern Ireland in Paris on Saturday (17:00 BST) live on BBC One.
Britain, who were runners-up behind Wales, play shock Group F runners-up Iceland in Nice on Monday (20:00 BST).
Martin O’Neill’s Republic of Ireland side, who, similar to Northern Ireland, qualified as one of the four best third-put groups, tackle has France in Lyon on Sunday at 14:00 BST.
Northern Ireland and Wales had never achieved the European Championship finals the current year’s opposition, the first to highlight 24 groups, while it is the first run through the Republic have made the knockout stages at the Euros.
The last time the Republic of Ireland played France was in 2009, when Thierry Henry took care of the ball in the development to the choosing objective in a World Cup capability play-off.
With a populace of only 330,000, England’s adversaries Iceland are the littlest country ever to meet all requirements for the competition.
The Republic of Ireland were taking off before a late Robbie Brady header gave them a 1-0 win over Italy and sent them through as another of the best third-put groups.
Winger James McClean said seeing “developed men crying and finish love for our nation” was “very surprising”.
He included: “We knew it would be win or forget about it. We don’t left anything on the field. The greatest night of my life, easily.”
Goalscorer Brady said he was “totally confounded” by the outcome and depicted it as an “out of body experience”.
That sensational peak resounded scenes before on Wednesday as Iceland fixed second place in Group F by scoring a very late objective to beat Austria 2-1.
Had Iceland not won, England would have confronted Portugal in the last 16.
The Portuguese, who now play Group D victors Croatia, thumped England out of the European Championship in 2004 and the World Cup in 2006, with both recreations chose by a punishment shootout.
The Full Draw
(All times BST)
Switzerland v Poland – Saturday 14:00, BBC
Wales v Northern Ireland – Saturday, 17:00, BBC
Croatia v Portugal – Saturday, 20:00, ITV
France v Republic of Ireland – Sunday, 14:00, ITV
Germany v Slovakia – Sunday, 17:00, ITV
Hungary v Belgium – Sunday, 20:00, BBC
Italy v Spain – Monday, 17:00, BBC
Britain v Iceland – Monday, 20:00, ITV
Previous Republic of Ireland universal Kevin Kilbane on BBC Radio 5 live: “It doesn’t show signs of improvement than this. We needed this, we were edgy for this.
“It is astounding. I am so upbeat for Martin O’Neill, the staff and the supporters. They have done every one of us glad. This is extraordinary.”
The draw implies no less than one of the home countries will make the quarter-finals.
Northern Ireland director Michael O’Neill said his group will tackle Wales with the advantage of having played at the Parc des Princes.
He included: “The outcomes today evening time place us in what is seemingly the more positive side of the draw, so we are satisfied about that.”
The details you have to know
– Portugal forward Ronaldo turned into the main player to score at four Euros when he netted against Hungary.
– This year’s last is as of now ensured to highlight a country that has never won a noteworthy competition.
– England arrived at the midpoint of 60.5% ownership in the gathering – Iceland had 29.0%.
– Victory over Italy was the Republic of Ireland’s first Euros win since beating England in their first ever diversion at the finals in 1988.
– Wales and Hungary scored a greater number of objectives than some other group in the gathering stages, discovering he next six times.
– 69 objectives have been scored as such, a rate of 1.92 for each amusement, the most reduced normal for an Euros bunch stage subsequent to 1992 (1.75).
– 27.5% of the objectives originated from the 80th moment onwards (19).
– This is the first run through since 1996 that no group won each of the three gathering recreations.