Alvaro Morata's late goal helped Spain qualify for the 2022 World Cup and consigned Sweden to the play-offs.
Sweden goalkeeper Robin Olsen tipped Dani Olmo's shot on to the crossbar with Morata on hand to tap the ball in after 86 minutes.
Luis Enrique's side needed just a point to top Group B while Sweden needed to win to finish above their opponents.
The result means Spain have qualified for a 12th consecutive World Cup finals.
Sweden will have another chance to reach Qatar in the European play-offs in March.
Spain started the brighter with winger Pablo Sarabia curling an effort narrowly wide from 20 yards in the opening exchanges.
The visitors grew into the match and had a number of chances in the first half with forward Emil Forsberg twice going close to breaking the deadlock.
And Alexander Isak should have put Janne Andersson's side in front when through on goal midway through the second period, but the forward snatched at his chance after capitalising on some lapsed defending.
Spain held on after taking a late lead and keep up their run of reaching every World Cup since 1974.
Latest Stories
-
Don’t celebrate yet, declined T-bill yields artificial – IPPA to Finance Minister
2 hours -
Hidden epidemics in Africa and power of serosurveillance
2 hours -
Policy rate hike came at a wrong time; government must be financially disciplined – IPPA
3 hours -
Telecel CEO calls for collaboration between academia and industry for nation-building
3 hours -
Telecel Enterprise Business Director advocates strengthened support for women entrepreneurs
4 hours -
Chamber of Licensed Gold Buyers hails enactment of GoldBod Act
4 hours -
Securing Rugby’s Future: Morocco welcomes 2025 international seminar on African Rugby Development
4 hours -
UHAS commits to advancing role of sports in public health and national dev’t
5 hours -
FixTheCountry to stage May 1 protest over gov’t inaction on illegal mining
5 hours -
Some film producers wanted to end my dreams – Yvonne Nelson
5 hours -
Daily Insight for CEOs: The CEO’s guide to financial leadership
5 hours -
China-Ghana Mining Association inaugurated to deepen bilateral collaboration
5 hours -
Gov’t to equip pre-tertiary schools with tech tools to boost STEM and AI education
6 hours -
Delta Air Lines champions women’s leadership in global trade
6 hours -
Caveman CEO wins The Royal Senchi’s 1st Golf Invitational
6 hours