Kieran Tierney and Kenny McLean struck two stoppage-time goals as Scotland beat Denmark 4-2 to clinch top spot in Group C and qualify for the World Cup for the first time since 1998.
The result ended a 27-year wait for Scotland to return to the tournament, securing automatic qualification with their most significant victory of a generation.
McLean’s stunning goal from the halfway line in the 99th minute started the celebrations, the midfielder lifting a precise finish over Kasper Schmeichel as Denmark pushed bodies forward and chased a third equaliser.
It followed Tierney’s pinpoint strike in the 93rd minute on a night defined by stunning goals and constant swings in momentum.
The match began with Scott McTominay’s outrageous overhead kick, before Denmark levelled through Rasmus Hojlund and Lawrence Shankland restored the advantage.
Patrick Dorgu equalised again, only for Tierney and McLean to settle it late as Hampden erupted.
The Tartan Army will be making their first appearance at a World Cup for 27 years come next June
Kenny McLean’s wonder strike from the halfway line sealed Scotland’s qualification for the World Cup
Steve Clarke’s men came into the match needing to win to leapfrog Denmark at the top of Group C
The win sealed Scotland’s return to the World Cup for the first time since France 98 and continues the progress seen under Clarke, who has already led his side to back-to-back European Championships.
Scotland captain Andy Robertson, who conceded the penalty that led to Denmark’s first equaliser, described the occasion as one of the ‘craziest’ he has been involved in.
‘We are going to the World Cup, I can’t believe it,’ he told the BBC’s Kelly Cates, daughter of Celtic, Liverpool and Scotland legend Kenny Dalglish. ‘This could be the last chance I have of getting to the World Cup.
‘I can’t wait to get back to Liverpool and share a red wine with your dad!
‘It’s amazing. The manager’s speech before the game was unbelievable. He went through the big moments down the years, like Serbia and Ukraine.
‘Then he said, “let’s make it another one”. The lads were quite emotional. To do it for him, the staff and our families…one of the greatest nights of my life.’
Scotland entered the final Group C fixture knowing only a win would secure qualification, having been handed an unexpected lifeline at the weekend.
Scott McTominay opened the scoring with an incredible acrobatic effort dispatched into the bottom corner
McTominay’s Napoli team-mate Rasmus Hojlund levelled things up for the visitors from the spot after the break
Hearts captain Lawrence Shankland thought he had sealed Scotland’s qualification when he touched home from close range in the 78th minute
Their 3-2 defeat to Greece in Piraeus appeared to end their hopes, but Belarus’s shock draw in Copenhagen kept the group alive and shifted everything to Hampden.
McTominay opened the scoring after three minutes with a spectacular overhead kick from Ben Gannon-Doak’s cross, before the winger was forced off injured in tears just after the 20-minute mark.
Denmark levelled early in the second half when Hojlund converted from the spot after Robertson conceded a penalty.
The visitors were then reduced to ten men on 61 minutes when Rasmus Kristensen received a soft second yellow card for a foul on John McGinn, a decision that left Denmark angered and shifted momentum back towards the hosts.
Scotland would have been forgiven for thinking it was mission accomplished when substitute Shankland restored the lead in the 78th minute, turning in Lewis Ferguson’s corner.
But just four minutes later, United defender Dorgu grabbed the Dane’s second equaliser with a calm finish into the near corner past Craig Gordon.
However, in the 93rd minute, Kierney added his entry to the evening’s unofficial ‘goal of the night contest’, stroking home the ball from the edge of the area.
Minutes later, McLean settled it with a stunning effort from the halfway line as Denmark pushed forward.
Manchester United defender Patrick Dorgu quickly restored parity with a neat finish
Kieran Tierney’s wonderfully-struck finish in the 93rd minute proved to be the goal the visitors could not recover from
McLean put the icing on the cake with a stunning strike from the halfway line to send Hampden Park wild
Scotland and Aston Villa midfielder McGinn heaped praise on his former St Mirren team-mate McLean after the final whistle and hailed the squad’s achievement.
‘I’ve played with Kenny for years at St Mirren. To see that ball hit the net, I can’t even explain,’ he told BBC Scotland. ‘I thought we were pretty rubbish to be honest, but who cares?
‘To get over the line was such an amazing feeling. The gaffer’s team talk was exceptional. It’s a privilege every time we meet up. It’s just humble guys wanting to do well for their country. We left everything out there.
‘I thought I’d blocked Dorgu’s shot. You think that’s it, glorious failure, another blow. I was thinking about the play-offs 91st minute.
‘What a hit from KT, I will never feel like that in a football stadium ever again.’
Scotland’s players and supporters will now turn their attention to the World Cup draw, which takes place on Friday, 5 December at the Kennedy Center in Washington DC at 5pm.
The tournament, staged across the United States, Mexico and Canada from 11 June to 19 July, will be the biggest in history with 48 teams involved.
Clarke’s side will be placed in Pot Three, meaning they could be drawn against some of the tournament’s elite, including Argentina, Spain, England or France.
McGinn (left) heaped praise on his former St Mirren team-mate McLean after the final whistle and hailed the squad’s achievement
Scotland’s players and supporters will now turn their attention to the World Cup draw, which takes place on Friday, 5 December
The 62-year-old told BBC Scotland post-match: ‘Really simple – what a fantastic group of players. Unbelievable.
‘I’ve said it from the very start of my time. It took me a year, maybe 18 months, to work out the best way to go forward. If I give myself a bit of credit, I chose the right way.
‘We chose more caps, more experience. When you come to a night like this, when you’re behind and struggling, and not sure it’s going to happen, I trust my players.
‘I’ve told them so many times, I trust them implicitly.’