Spain became the sixth team to qualify for next year's European championships after Rodrigo Moreno's late equaliser against Sweden in Stockholm.
The Spaniards join Ukraine, Belgium, Russia, Poland and Italy in the tournament which will be played throughout Europe.
"Qualification is a must for a team like Spain but achieving it still has value," said Spain boss Robert Moreno. "It releases the pressure and gives us time to work."
Spain needed only a point but they appeared to have fluffed their lines after Marcus Berg gave the hosts the lead early in the first-half.
Rodrigo's 92nd-minute tap-in sparked celebrations on the touchline and provided a dramatic conclusion to an otherwise fairly smooth campaign for Robert Moreno, who took over in June following the resignation of Luis Enrique.
New look
With two matches remaining, Spain are top of Group F on 20 points, five ahead of Sweden and six above Romania, who missed the chance to take second spot following a 1-1 draw against Norway in Bucharest.
Suspensions for Sergio Ramos and Sergio Busquets meant there were no players who featured in the European championship triumps nor the World Cup victory in South Africa in 2010.
Moreno is attempting to refreshen the roster for impendin major tournaments. Villarreal's Gerard Moreno made his debut up front while Rodri and Inigo Martinez came in for the banned Ramos and Busquets in defence and midfield.
The top two from each of the 10 groups advance to the championships. The other four places will be decided via play-offs.


Plane drops mashed potatoes and 'independence' leaflets over Havana
Meta removes 1.8 mn 'sextortion' accounts from Nigeria, I.Coast
Ex-Trump adviser John Bolton sentenced to six months in prison over classified d...
Nigeria's Obasanjo urges president Tinubu not to seek re-election
Hezbollah vows to 'cut off the hand' of anyone targeting its weapons during anti...
Mahama challenges Ghana to regain rice self-sufficiency, cut food imports
Government targets shift from subsistence farming to commercial agriculture thro...
24H+ Secretariat to invest $270m in poultry sector, create 12,000 jobs
Pwalugu Dam expected to produce 25,000 tonnes of fish annually under $1bn invest...
We Need More People Like You In Ghana- Kwame Pianim Hails Julius Debrah
