Troy Parrott produced the performance of his life in Budapest, scoring a dramatic hat-trick – including a winner deep into stoppage time – as the Republic of Ireland overturned Hungary to secure a World Cup play-off place.
Ireland, who revived their qualifying hopes with a stunning 2-0 victory over Portugal on Thursday, knew only a win would keep their campaign alive.
Their task grew harder almost immediately when Daniel Lukacs headed Hungary in front inside four minutes.
Parrott hauled Ireland level from the penalty spot after Chiedozie Ogbene was brought down, but the hosts restored their lead before half-time when Barnabas Varga unleashed a superb left-footed strike.
The second half was tense and nervy, with Ireland pushing relentlessly despite clear signs of fatigue.
Their persistence paid off when Parrott slipped in behind the defence and guided a clever finish past Denes Dibusz with 10 minutes remaining.
Substitute Johnny Kenny almost grabbed the winner moments later, only to be denied by Dibusz.
But in the 96th minute, the breakthrough came: Liam Scales flicked on a long ball, and Parrott reacted quickest, stabbing in from close range to complete his hat-trick and trigger wild celebrations among the travelling Irish support.
The dramatic victory ends Hungary’s hopes of reaching a first World Cup finals since 1986.
Dominik Szoboszlai’s side, who had looked set for a historic qualification, were left stunned.
Portugal cruised to a 9-1 win over Armenia in the group’s other fixture to finish top and book their spot at next year’s tournament in North America.
Ireland’s qualification path looked dead and buried earlier in the campaign after collecting just one point from their opening three matches, including a damaging defeat to Armenia.
But back-to-back home wins against Armenia and Portugal reignited belief.
Even so, their start in Budapest was shaky, echoing their September meeting with Hungary when they also conceded early.
Lukacs’ opener stood after a VAR check, forcing Ireland to respond quickly.
Parrott’s penalty settled nerves, but Varga’s thunderous strike restored Hungary’s advantage and put Ireland on the brink.
From there, Heimir Hallgrimsson’s players had to dig deep, with Adam Idah seeing a goal ruled out for offside as they pushed for a way back.
The turning point came through Parrott, who timed his run perfectly for his second goal before sealing a famous win in the dying moments.
He becomes the first Irish player since Robbie Keane in 2014 to score a competitive hat-trick – and he did it when his country needed it most.
Caoimhin Kelleher also deserves huge praise.
The Brentford goalkeeper, Ireland’s standout performer throughout the campaign, made crucial stops to deny Roland Sallai twice and keep the game within reach before Parrott completed the comeback.
For Ireland, it is one of the most dramatic nights in their recent history – and a play-off berth that once seemed impossible is now secured.
Troy Parrott, speaking to RTE: "I said against Portugal that this is what dreams are made of, but I think tonight, I will never have a better night in my whole life.
"It is a fairytale. You can't even dream about something like that.
"I have no words to describe the emotions right now."
Heimir Hallgrimsson, speaking to RTE: "It was a strange game.
"We seemed to be nervous at the beginning, struggling with movements and defending too late and not aggressive enough.
"We put in everything and threw in three strikers in the end.
"The guys deserved what happened and congratulations to the Irish nation for having the guys."