Spain planted one foot in Brazil thanks to second-half strikes from Xavi and Alvaro Negredo to win 2-1 at home to Belarus on Friday.
The world and European champions were made to work for the Group I victory, which came thanks to second-half strikes from Xavi and Alvaro Negredo; a result that leaves them on the verge of booking their place at next year's World Cup in Brazil.
Spain struggled to break down their opponents in the first half but took the lead in the 61st minute thanks to a superb Xavi strike.
Negredo, introduced as a second-half substitute for debutant Michu, then doubled Spain's lead with a terrific header, meaning Sergey Kornilenko's late effort was merely a consolation.
Vicente del Bosque's side now need just one point against Georgia in Albacete on Tuesday to confirm their place at the World Cup.
In the absence of the injured Fernando Torres and David Villa, Spain coach Del Bosque selected Swansea City's Michu from the start, while goalkeeper Iker Casillas and midfielder Andres Iniesta were named among the substitutes.
Belarus, who were without former Barcelona and Arsenal midfielder Alexander Hleb due to suspension, opted for a 3-5-2 formation as they sought to end their qualifying campaign on a good note.
Spain's top scorer in qualifying, Pedro, ran at the Belarus defence and caused problems early, while Michu failed to make the most of a David Silva ball before the latter nodded wide.
As expected, Spain controlled possession, but they struggled to create clear chances as Belarus were happy to sit back and soak up pressure.
The closest the hosts came in the first half was a curling Silva effort, but Belarus goalkeeper Aleksandr Gutor was equal to the task, while Michu headed a Nacho Monreal cross wide.
Belarus had claims for a spot kick on the verge of half-time, with Stanislav Dragun's cross appearing to strike the hand of Gerard Pique - who had already been booked - but no penalty was given as both sides entered the break goalless.
A frustrated Del Bosque replaced Monreal with Iniesta at the break, before Michu's uninspiring debut came to a close in the 57th minute.
Spain took the lead just moments later, with Pique's effort in keeping an aimless ball alive at the byline crucial.
The Barcelona defender's hooked ball back in was not cleared properly, as Yegor Filipenko's header fell perfectly to Xavi,
and the midfielder hit a bullet strike that left Gutor with no chance as Spain finally took the lead.
Negredo then added to Spain's lead with 12 minutes to play as he netted a superb diving header. Pedro's flick freed Sergio Ramos down the right, and his inch-perfect cross was powerfully nodded home by the Manchester City forward.
A late Belarus attack saw Sergei Kislyak force Victor Valdes into a rare save, while Kornilenko bagged a late left-footed strike to cap a swift counter, but Spain did just enough to post an important victory.
|Coach: Del Bosque|
for Nacho Monreal 46'
for Michu 57'
for Fàbregas 84'
|Sanchez reveals gruesome update of ankle injury|
|Ronaldo: We all feel abandoned by retiring Messi|
|Ibrahimovic arrival makes Manchester the ´capital of football´ - Vieira|
|Del Bosque: I sent a message to the whole squad, except Casillas|
|USA to play first friendly against Cuba since 1947|
|Poland boss praises Lewandowski after Euro 2016 exit|
|Fonte: United will regret missing out on Sanches|
|Santos: Portugal should have had a penalty|
|Ranieri: English football is not in crisis|
|Ronaldo dreaming of Euro 2016 glory|
|Nawalka: Poland should be proud of Euro 2016 exploits|
|Santos: Goalless Ronaldo was immense for Portugal|
|No player out of reach for Chinese Super League - chief|
|Fearless Sanches had no nerves in dramatic shootout|
|Portugal through despite Ronaldo off-night|
|´Very happy´ Neymar drops contract hint|
|Poland 1 Portugal 1 (aet, 3-5 pens): Heartbreak for Blaszczykowski as Santos´ men sneak into the sem|
|Del Bosque to resign from Spain role|
|Giggs can be a manager in his own right, insists Round|
|Euro 2016 Diary: Wails for Bale, a grumpy water carrier and the inevitable return of Will Grigg|
|Manchester United agree Galatasaray friendly|
|Hazard must bloom into bona-fide superstar as Eden project comes full circle|
|Hazard excited by ´world class´ Ibrahimovic in the Premier League|
|Hazard determined to make his mark on Lille return|
|Special One and Zlatan: United´s match made in heaven or gamble from hell?|
|Vertonghen to miss rest of Euro 2016 due to torn ankle ligaments|
|Conte has helped me a lot, admits grateful De Sciglio|
|Juve pay tribute to departing Caceres|
|Williams banking on ´band of brothers´ to stop Hazard|
|No lack of desire with England - Lampard|
|Germany v Italy: Kroos calls on Khedira knowledge for Azzurri test|
|Coleman welcomes pressure of ´biggest game since 1958´|
|Ibrahimovic claims he will join Manchester United|
|Sevilla receive ´big offer´ for Krychowiak|
|Bartra seeks to justify Dortmund´s trust|
|Montella vows to bring the good times back to AC Milan|
|Bournemouth bring in striker Mousset|
|Barca confirm Umtiti fee agreed|
|Puel takes charge at Southampton|
|Hulk completes €55.8m Shanghai SIPG switch|
|Bruce focused on Hull and pursuing transfer targets|
|Sinclair agrees Watford move|
|Janssen wants AZ to accept Spurs offer|
|Bartomeu claims five-year Neymar deal imminent|
|Reluctant father figure Evra defends Pogba|
|Boateng declares himself fit to face Italy|
|73 goals, 44 assists: The stats that show why Man Utd want Ibrahimovic and Mkhitaryan|
|Conte has made Italy proud again – Vieri|
|Evra pledges to respect Iceland after England shock|
|Vrba leaves Czech Republic for Anzhi|
|Bernstein backs Allardyce for England job|
|Rodgers rejects England talk|
|Klose lauds ´unbelievable´ Italy|
|Muller confident Italy´s defence can be breached|
|´Lineker does not know what he is talking about´ - Raiola defends Pogba|
|Morrison opts to stay with West Brom|
|Kempes expects Messi to return to international football|
|´Leave Messi alone!´ - Maradona|
|Evra suffers training injury|
|Iceland´s Viking chant terrified England - Shilton|
|Ballack doubts Italy can repeat Spain performance|
|Caparros hoping Del Bosque continues as Spain coach|
|Falcao targeting Ligue 1 top scorer award|
|Maradona: England continue to be over-hyped|
|Santos: You talk about Ronaldo because he is great|
|James Rodriguez is an ´average player´ - Stoichkov|
|Mooy moves from Melbourne to Manchester City|
|Copa America champions Chile set to face Euro 2016 winner|
|Guardiola ´relaxed´ ahead of renewing Mourinho rivalry|
|Simeone on post-Champions League final comments: I spoke heatedly|
|Skrtel pins blame on friend after Klopp ´d***´ slur|
|Euro 2016 Diary: Medals for Irish fans and Blaszczykowski inspires Wimbledon triumph|
|Bale is slightly better than Hazard, admits Lukaku|
|Argentina make Simeone approach, jokes Atleti president|
|Mamelodi Sundowns 2 Enyimba 1: Arendse nets winner in Group B clash|
|Wilmots confirms Batshuayi medical ahead of expected Chelsea switch|
|Santos insists no favourite in Portugal-Poland tie despite Ronaldo presence|
|Celtic is the best place for me to be, insists Dembele|
|Lagerback: I don´t think I will take a job like England|
|Umtiti has ´exclusive agreement´ to join Barcelona|
|Milik putting Ronaldo worship to one side for 90 minutes|
|Only losers make excuses, insists Florenzi|
|Nawalka: We must not focus solely on Ronaldo|
|Hamsik: Bayern offer reports are nonsense|
|Injured De Rossi a major doubt to face Germany|
|Wales will not be a stepping stone for Belgium - Bale|
|Lyon add Nkoulou as Barcelona close in on Umtiti|
|Neymar, Rafinha and Douglas Costa named in Brazil´s Olympics squad|
|Goalless Lewandowski should look to Ronaldo for inspiration|
|Mane has cost Liverpool far too much - Thompson|
|Bilic not interested in England job, says Gold|
|Hummels hopes Gomez can break through impressive Italy defence|
|Gerrard: England gripped by a ´culture of fear´|
|Bournemouth sign Chelsea´s Ake on season-long loan|
|Iceland emulating Leicester City would delight Hallgrimsson|
|Chelsea could still sign Pato permanently, says agent|
|Wales v Belgium: Wilmots will not man-mark Bale in quarter-final clash|
|Genoa seal Ocampos capture|
|Fuchs retires from Austria duty|
|Bundesliga fixtures: Bayern begin title defence against Werder Bremen|
|Bordeaux complete Toulalan signing|
|Suarez confident Messi will return for Argentina|
|´England players did not know what to do´ - Lineker critical of Hodgson|
|Dybala turned down ´€80m Barcelona move´|
|Emery a big loss for Sevilla, says Baptista|
|Valencia: ICC derby more than a friendly|
|Defoe: Allardyce ready for England|
|Wales defend celebrations after England´s Euro 2016 elimination|
|Rooney: Next England manager doesn´t have to be English|
|Mascherano set for Barca stay|
|Carragher suggests Klinsmann as England boss, dismisses Shearer|
|Glik confirms Monaco move|
|Australia to face Japan in Melbourne|
|Galliani: Montella gives Milan a fresh start|
|We must take care of Messi - Argentina president|
|England players ´babies´ and soft - Carragher|
|Higuain unlikely to renew Napoli contract - agent|
|Hart: Tough job for next England boss|
|Nani to join Valencia, confirms Fener president|
|Glenn: Man, woman or caretaker for England|
|Skrtel´s Fenerbahce move ´almost done´|
|Al Ahly 1 ASEC Mimosas 2: Jol´s men beaten again|