Three-time champions Spain qualified for Euro 2020 courtesy of Rodrigo’s injury-time strike in a draw in Sweden.
Spain needed just a point to advance to next summer’s tournament but left it until the 92nd minute as Rodrigo converted Fabian Ruiz’s cutback.
Sweden took the lead early in the second half through Marcus Berg’s header from close range.
David de Gea made a stunning save from Robin Quaison’s header, before hobbling off injured in the second half.
- Injured De Gea doubt for Liverpool game
- Euro 2020 qualifying: State of play after latest round of fixtures
The goalkeeper is a doubt for Manchester United’s Premier League game against Liverpool on Sunday with what appeared to be a hamstring injury.
Spain should have had more but Sweden goalkeeper Robin Olsen made sharp saves to deny Manchester City’s Rodri, Ruiz and Gerard Moreno.
They become the sixth team to qualify for next year’s tournament after Belgium, Italy, Russia, Poland and Ukraine.