Iceland earned a historic first UEFA European Championships victory to advance to the knock-out stage of the tournament, where they will be joined by Group F rivals Hungary and Portugal after their thrilling draw at the Parc Olympique Lyonnais.
Heading into the final group matches only Hungary were assured of reaching the last 16 and with the pressure off, attacked Portugal from the start of their match.
They were rewarded for their early efforts were veteran midfielder Zoltan Gera lashed a superb half-volley beyond goalkeeper Rui Patrício from the edge of the box, with 19 minutes played.
With a defeat sending Portugal out of the tournament, their fans were relieved when Luis Nani level the match on the stroke of half-time, as a fired into the near post of Gabor Kiraly’s net after a pass from his captain Cristiano Ronaldo.
A deflected free-kick from Balazs Dzsudzsak restored Hungary’s lead early in the second half, only from Ronaldo to superbly equalise with a backheel from a cross just three minutes later, which saw him become the first player to score at four European Championships.
The frantic start to the second half continued another deflected Dzsudzsak shot flew past the helpless Patrício in the 55th minute.
Ronaldo, who endured a torrid first two matches, rescued Portugal again by heading home his sides’ third equaliser of the match from close range to secure a 3-3 draw.
The result ensured Portugal of finishing one of the four best third place teams, with the result seeing them take on Group D winners Croatia in the last 16.
They had looked on course to finish second in the group, but Iceland were able to earn the runners-up spot after substitute Arnor Ingvi Traustason scored in the final minute of added time against Austria, to earn his side their first win at a major tournament.
Johann Gudmundsson had struck the post in the second minute for Iceland, before Jon Dadi Bodvarsson gave them a lead from after a knock-down in the box.
Austria, who needed a win to reach the knock-out stage, saw Aleksandar Dragovic strike the post from a penalty before half-time but they were given hope when substitute Alessandro Schopf drew them level in the second half.
They were unable to score a second and as Austria threw more players forward, Iceland hit them on the counter in the final seconds, with Traustason scoring the winner.
After finishing second in the group, Iceland will now face Group B runners-up England in the last 16.
There was late drama in both Group E matches, as five minutes from time, Radja Nainggolan superb long range effort gave Belgium a 1-0 victory over Sweden in their clash.
The result saw Sweden finish bottom of the group, with Belgium setting up a knock-out tie against Group F winners Hungary after ending runners-up in the standings.
Italy, who topped the group, made eight changes for their tie against the Republic of Ireland as they prepare for their meeting with defending champions Spain in the last 16.
It gave the Irish team hope of earning a upset win, which they earned when Robbie Brady headed in a Wes Hoolahan cross with five minutes to play.
The result saw the Republic of Ireland become the final team to advance as a best third place finisher, eliminating Albania and Turkey in the process, setting up a meeting with hosts France.
Their victory also meant that another third place finisher, Northern Ireland, will take on Group B winners Wales.