Dominik Szoboszlai's superb strike completed a remarkable late turnaround as Hungary secured their spot at Euro 2020 with a stunning 2-1 win over Iceland.
Having defended brilliantly amid a Hungary onslaught, Iceland looked to be heading to their second European Championship thanks to Gylfi Sigurdsson's 11th-minute opener, which came courtesy of Peter Gulacsi's howler.
Yet after substitute Albert Gudmundsson missed a glorious chance to wrap up the win in the 87th minute, Hungary struck twice to book their place at next year's finals.
Loic Nego had prodded in from close range, before star man Szoboszlai stole victory, thumping in off the upright to thwart Iceland in the most dramatic fashion.
Gulacsi had work to do in the fourth minute, holding onto Victor Palsson's header, yet Hungary's goalkeeper was left embarrassed soon after.
Sigurdsson's free-kick curled straight into Gulacsi's arms, only for the RB Leipzig man to fumble it over the line.
Willi Orban and Birkir Bjarnason exchanged chances as Hungary looked to hit back, but the hosts did not truly test Hannes Halldorsson until he kept out Szoboszlai's deflected free-kick in the 45th minute, before Gulacsi denied Sigurdsson a second at the other end.
Hungary wanted a penalty when Adam Szalai went down under pressure from Sigurdsson after the restart, but the referee dismissed their appeals.
Iceland's stubborn rearguard looked set to be enough, and the visitors seemed to have the win in their grasp when Gudmundsson latched onto Jon Dadi Bodvarsson's cross, only to slice wide of a gaping goal.
Hungary capitalised on that miss, with Nego on hand to poke in after Kari Arnason inadvertently played the ball into his path.
Iceland pressed for a winner, yet this was Hungary's night and, after a rapid counter, Szoboszlai slotted in from the edge of the area to spark jubilant celebrations at an empty Puskas Arena.