Spain booked their place at Euro 2024 with a win in Norway on Sunday, also helping Scotland qualify from Group A.
Barcelona midfielder Gavi scored early in the second half to help the 2008 and 2012 European champions progress with two games to spare.
Erling Haaland's Norway, who last appeared at a major tournament in Euro 2000, can now only potentially qualify through play-offs.
They are now relying on their Nations League rankings to make it.
Spain barely allowed Manchester City striker Haaland a sniff all night long on a frustrating night for Norway, who sit five points behind their opponents and Scotland with only one match remaining.
La Roja thought they had taken the lead after 20 minutes when Stefan Strandberg diverted the ball towards his own net and Alvaro Morata hammered home from almost on the goal line.
The goal was ruled out for offside against Morata. Dani Carvajal's lofted ball forward was aimed at Brighton winger Ansu Fati before Strandberg's intervention, and Morata had left the ball it would have been an own goal.
Gavi eventually fired Spain ahead in the 49th minute after a hectic scramble in Norway's area, pouncing when Mikel Oyarzabal's shot was deflected into his path.
It was the 19-year-old's fifth goal for his country in 25 appearances.
Arsenal captain Martin Odegaard sliced an effort wide at the other end as the hosts made a rare foray forward, and Spain goalkeeper Unai Simon saved comfortably from bright teenager Antonio Nusa.
A flat Norway could not muster danger during eight minutes of added time, apparently resigned to their fate, while Spain broke into celebrations at the final whistle.
Latest Stories
-
We have a bad technical team; Otto Addo and his team should go – Ernest Thompson
45 mins -
Hindsight: Why Accra Lions’ present problems do not define them
1 hour -
10-year-old Lisa Laryea arrives at Wits Donald Gordon Hospital in South Africa for bone marrow transplant
2 hours -
23 ambassadors inducted to take on 2025 GSTEP Challenge in three regions
2 hours -
Ghana Shea Workers Union inaugurated
2 hours -
I trust Bawumia; he has never lied to me – Akufo-Addo
2 hours -
Bawumia is hardworking; offers the youth platform to share ideas – Kow Essuman
2 hours -
IGP, Police commanders worship with churches in Ghana as part of security arrangements for 2024 elections
3 hours -
Mahama is a failed president; give Bawumia a chance – Akufo-Addo to Ghanaians
3 hours -
‘No child left behind in Free SHS’ – Akufo-Addo declares
3 hours -
MMDAs tasked to pay more attention to TB cases
3 hours -
2024/25 GPL: Defending champions Samartex suffer second consecutive loss as Basake Holy Stars wins 1-0
3 hours -
Government stands firm in Galamsey fight, says Akufo-Addo
3 hours -
National Peace Council assures public of violent free elections
3 hours -
Agenda 111 to be discontinued if NDC comes to power – Akufo-Addo
3 hours