Scotland secured a place at the men's World Cup for the first time since 1998 as stoppage-time goals by Kieran Tierney and Kenny McLean secured a thrilling 4-2 win over Denmark at Hampden Park.
Scott McTominay's spectacular third-minute bicycle kick had given the hosts a half-time lead.
Rasmus Hojlund equalised for the Danes in the 57th minute shortly before Rasmus Kristensen was sent off, but Lawrence Shankland restored Scotland's advantage.
When Patrick Dorgu brought Denmark level for the second time with nine minutes remaining, it seemed they would claim the point needed to top the group and book their place at next year's tournament in the US, Canada and Mexico.
However, Tierney fired an unstoppable shot past Kasper Schmeichel in the third minute of stoppage time and then, with the Denmark goalkeeper up in attack at the other end of the pitch, McLean unleashed a long-range effort from his own half to spark delirious scenes.
The victory saw Scotland top Group C and secure automatic qualification for the 2026 World Cup.
Scotland captain Andy Robertson dedicated the victory to his former Liverpool teammate Diogo Jota, who died earlier this year in a car accident.
He told BBC Sport: "We certainly put the country through it, but I'm sure it will be worth it.
"I knew the age I'm at this would be my last chance to get to the World Cup.
"I couldn't get my mate Diogo Jota out of my head today. We spoke so much together about the World Cup. When he missed out in Qatar through injury and I missed out when Scotland never went.
"We always discussed what it would be like going to this World Cup. I know he'll be somewhere smiling over me tonight."
The draw for the 2026 World Cup will take place in Washington on 5 December.
(c) Sky News 2025: Scotland secure men's World Cup spot for first time since 1998 after beating Denmark
Man, 33, admits selling substance online to assist with suicides
Princess of Wales calls on businesses to value 'time and tenderness' in rare speech
Man who stabbed Glasgow neighbour in parking space row jailed
Fresh police appeal over disappearance of teenager in Stornoway
Anna Maxwell Martin: Actor says primary school tests 'devastating' for children with special educational needs and disabilities