Arnor Ingvi Traustason scored on the last play of the match as tiny Iceland beat Austria 2-1 and earned themselves a last 16 date with England at Euro 2016 on Wednesday.
Traustason, who had come on shortly before, tapped in at the far left post on the counter. Jon Dadi Bodvarsson scored the first for Iceland in the first half before Aleksadar Dragovic hit the left post from the spot for Austria.
Substitute Alessandro Schopf levelled with Austria's first goal of the tournament on the hour but they failed to get the win they needed to advance from group F on a sticky afternoon in the Stade de France filled with 65,714 fans, and fell for good from Traustason's strike four minutes into stoppage time.
Iceland are in the last 16 on their debut with five points, placed second on goal difference behind Hungary, with Portugal third and also through with three points while Austria are out with one point.
The Iceland camp celebrated for a long time at the end with their fans and now play England on Monday in Nice.
"It is fantastic, I can't describe it. To do this with your best friends. We are a tightly-knit group," man-of-the-match Kari Arnason said.
"It's amazing, and of course with all these supporters, 10,000 fans from Iceland is incredible. It is like a family. I know 50 per cent of the crowd or recognise them. This is extra sweet for us."
Co-coach Heimir Hallgrimsson said "I guess we will change the national holiday which normally on June 17 by a few days. That is what this means to us.
"We sacrificed everything for the win. We were lucky at occasions but we showed fantastic mentality. We had tired legs in the end but we are really proud of our squad."
Looking at the England date, he added: "We are all English football crazy. We dont have to analyse them much. There is a lot of talent in the England team ... I am not afraid of the England match. The players know how much fun it is to win. "
Hallgrimsson and Lars Lagerback made no changes from the 1-1 against Hungary while for Austria the key centre back Dragovic returned from suspension, with forward Martin Harnik left out after modest showings and Marcel Sabitzer moving up front in their must-win game.
However, Iceland had the brighter start with Johann Gudmundsson smashing against the bar from long range.
That did nothing for Austria's confidence as they struggled to string a few passes together and reach the Iceland penalty area.
They almost stole the lead though when Stoke's Marco Aranautovic nicked the ball from Iceland keeper Hannes Halldorsson, but then slipped in front of an open goal which allowed Halldorsson to recover and save Arnautovic's effort in the 16th.
The goal came on the other end just two minutes later. Aron Gunnarsson's long throw-in was headed on by Arnason to Bodvarsson who made no mistake by wrong-footing Austria keeper Robert Almer with his shot into the bottom far left corner.
Austria took a while to recover before Aranutovic headed high unmarked. It should have then been 1-1 in the 37th but Dragovic's penalty went wide off the outside left post after Ari Skulason pulled David Alaba.
Austria coach Marcel Koller brought on fresh players Schoepf and Marc Janko for the second half, and Alaba's shot was blocked shortly before the goalline by Arnason.
Austria dominated and Schoepf finally put the Austrians on the scorebaord on the hour, running past two defenders firing into the bottom right corner past the diving Haldorsson.
Sabitzer fired inches right, and Schoepf was denied from short range by Halldorsson who also tipped Alaba's 80th-minute free-kick over the bar as Austria fought in vain for the win.
Iceland then wrapped matters deep in stoppage time when Traustason tapped in a cross from Elmar Bjarnason to eliminate the world number 10 Austrians who had won nine of their 10 unbeaten qualifiers.
"Of course it is a disappointment for all Austrians that we could not advance. We showed a good game and a lot of pressure in the second half but we lacked the decisive goal," Koller said.
Wednesday, June 22, 2016 - 23:23