Scotland qualified for Euro 2024 with two games remaining thanks to Spain’s 1-0 win over Norway, guaranteeing Steve Clarke’s side a top-two finish in Group A.
The Scots now trail Spain on goal difference but Norway, trailing by five points with just one game remaining, cannot catch either side.
Scotland’s men have now reached back-to-back European Championships under Clarke and come through a qualifying group to reach a major final for the first time since 1997.
Scotland had the chance to secure their place in Seville on Thursday, but lost 2-0 to Spain in their first defeat in six qualifiers.
But Scotland’s five wins from their first five matches put the pressure on Norway to win their last three matches. And while the Norwegians beat Cyprus 4-0 on Thursday, they were stranded in Oslo as Spain secured their own and Scotland’s qualification.
Alvaro Morata had a first-half strike disallowed for offside before Gavi netted what proved to be the only goal of the game in the 49th minute as the visitors nullified the threat of Norway and Manchester City superstar striker Erling Haaland.
Norway, whose absence from major tournaments stretches back to Euro 2000, can now potentially qualify only through the play-offs, but must finish third and hope Serbia qualify from Group G.
Scotland have two matches remaining, away to Georgia and in Norway next month, as they look to overtake Spain as group winners and boost their chances of being top seed in the draw.
Spain finish their campaign with a trip to Cyprus after a home game against Georgia to face the bottom two.
Scotland and Spain join Portugal, France, Belgium and Turkey in reaching next summer’s final, with Germany automatically as hosts.
Scotland endured a 23-year absence from major tournaments before reaching the delayed Euro 2020 two years ago where they won a play-off through the Nations League.
After missing out on last year’s World Cup qualification, Clarke is now the first manager to guide the Scots to back-to-back European Championships.