Spain's Alvaro Morata came off the bench to strike a late winner as they qualified for next year's World Cup finals in Qatar by beating stubborn visitors Sweden 1-0 in a tense clash on Sunday.
Morata struck in the 86th minute when he cleverly lifted the ball over Sweden's Robin Olsen after Dani Olmo's fierce drive was pushed onto the post by the keeper and fell into his path.
Spain, who won the 2010 World Cup in South Africa, finished top of Group B with 19 points, four ahead of the second-placed Swedes who could still qualify through the playoffs in March.
"I felt more pressure now then in the Euros," said Spain manager Luis Enrique, whose side lost to eventual winners Italy on penalties in this year's European Championship semi-finals.
"We tried to work a lot on the mental side, always trying to keep it positive and the players responded well. I'm so proud of them and how they responded."
Spain, playing in front of 52,000 fans in the sold-out La Cartuja stadium, had never lost a home game in World Cup qualifiers and kept their record intact in Seville.
They had only ever lost four of 52 games in the city.
"We knew it was a life and death situation and we wanted to qualify at any cost. Nobody said it was going to be easy and I'm happy for our people," Sergio Busquets told reporters. It will be Spain's 16th appearance, and 12th in a row, in 22 World Cups. The last time they failed to qualify was in 1974.