Debutant Brais Mendez got Spain back to winning ways with a late strike in an unconvincing 1-0 friendly victory over Bosnia-Herzegovina in Gran Canaria.
Celta Vigo midfielder Mendez came off the bench in the second half and needed just 19 minutes to find the back of the net on Sunday, his strike coming after Ibrahim Sehic could only parry Isco's low drive.
Spain's margin of victory should have been wider but Alvaro Morata's toils for La Roja continued as he skewed wide prior to Mendez's winning goal.
Victory ensures Spain finish 2018 on a positive note after successive defeats in the Nations League, England's 2-1 win over Croatia earlier in the day ending Luis Enrique's side's hopes of reaching next year's Finals.
Spain's inexperienced side survived an early scare when Edin Visca broke through in the opening minute, but the forward was denied by Kepa Arrizabalaga.
It was a rare moment in the attacking third for Bosnia as Spain dominated possession, although they were unable to turn it into clear-cut chances.
Suso, Marco Asensio and Isco all blazed over before the latter finally brought a save out of Sehic five minutes before the break, the goalkeeper comfortably holding onto the Real Madrid midfielder's low shot.
Chances continued to be at a premium until the hour when Asensio fired low towards goal and the rebound should have been put into the unguarded net by Morata but he somehow managed to fire wide.
It was his final action as Rodrigo Moreno replaced him soon afterwards, but it was another substitute who settled the clash as Mendez did what Morata could not with 12 minutes to play.
What does it mean? Still work to do for Luis Enrique
Spain made nine changes, with eight of Luis Enrique's starting line-up holding less than 10 caps, and their inexperience showed at times in what proved to be a low-key affair.
Isco leads from the front
In a team lacking senior figures it was 26-year-old Isco who led from the front with a strong display in midfield, his surging runs bringing rare moments of quality for the hosts.
Morata's problems show no sign of ending
Morata's troubles in front of goal have been well documented and his failure to score on Sunday means he has gone over a year without finding the net for Spain.
With their Nations League campaigns over, both teams will turn their attention to the draw for the 2020 European Championship qualifiers in December.
|Kuzma leads USA past Team World|
|Thiem into semis in Buenos Aires, Isner cruises in New York|
|This can´t happen at Liverpool – Kovac warns Bayern over defensive errors|
|Thomas, Scott lead Genesis Open|
|Koulibaly pleased with transfer interest, but happy at Napoli|
|Allegri: Juventus must score in Madrid|
|Kuchar addresses criticism, apologises for paying fill-in caddie $5k|
|Life is for warriors – Neymar defiant as injury recovery continues|
|Neuer: Bayern Munich must cut out defensive ´madness´|
|Kovac: Bayern had Liverpool on the mind against Augsburg|
|Wawrinka and Nishikori to meet in Rotterdam semi-finals|
|Gloucester down leaders Exeter, Wasps beat Bristol|
|McCloskey marks landmark with try in Ulster win, Munster run riot|
|Allegri hails Dybala after Juventus star ends goal drought|
|Kovac fearful over fresh Coman ankle injury|
|Mahrez incredible in training - Guardiola takes blame for star´s exile|
|Depay can be among world´s best – Rafael|
|Wood ´felt like a superhero´ in devastating match-winning spell|
|QPR 0 Watford 1: Capoue strike secures quarter-final berth|
|Kaepernick v the NFL: How we got here|
|Juventus 3 Frosinone 0: Ronaldo rounds off routine romp|
|Augsburg 2 Bayern Munich 3: Classy Coman shines in comeback win|
|Ndombele draws Pogba comparisons from Lyon coach Genesio|
|Coady and Doherty pen new deals with Wolves|
|Kaepernick and Reid reach settlement in NFL collusion case|
|Neuer back in Bayern team after thumb injury|
|Giggs, Scholes and Beckham met Ferguson´s standards because of Harrison – ´Class of ´92´ graduate Ca|
|Mertens upsets Kerber to set up Halep Doha decider|
|Valverde: Barcelona scared? We´re top of LaLiga!|
|North and South Korea want to co-host 2032 Olympics|
|Zaha appeal against ban dismissed|
|Chisora to work with Bellew´s former coach Coldwell|
|Valverde still unsure on Umtiti return date ahead of Lyon tie|
|Hudson-Odoi getting enough Chelsea chances, insists Zola|
|Sexton back in full Ireland training|
|Chelsea, Malmo facing UEFA charges|
|Magnificent Halep storms back to reach Qatar Open final|
|No nerves for Ferrari new boy Leclerc|
|Solskjaer´s Manchester United impact has been remarkable - Zola|
|Valverde delighted by extra responsibility of new Barcelona contract|
|Martial and Lingard injuries open the door to Gomes and Chong – Solskjaer|
|Semenya backed by South African government in IAAF challenge|
|Proteas collapse gives Sri Lanka hope in Durban|
|Wales star Halfpenny misses Scarlets match|
|Guardiola: Wigan a warning to Manchester City for Newport trip|
|Martial, Lingard out for up to three weeks|
|Milan will need helmets against Atalanta - Gattuso|
|Suso ´deserves Milan renewal´ amid Spurs & Arsenal links|
|Tuchel avoids touchline ban from FFF|
|Christian crushes Sixers to set up all-Melbourne final|
|Newport star Amond hopes glasses are raised after Otamendi reunion|
|Aaron Smith try snatches win over Chiefs for 14-man Highlanders|
|A-League Review: Melbourne City drop points again as Newcastle Jets close on top six|
|Pieters pegged back by late bogey in Perth|
|Stability, a thriving Messi and success despite poor recruitment – Why Barca are keeping Valverde|
|Jenkins unperturbed by Jones´ Wales dig|
|Pogba wasn´t happy – Rafael applauds Solskjaer´s impact on Man United players|
|Turn the stump mics up! - Moeen wants sledging televised|
|Valverde signs one-year extension at Barcelona|
|Klopp almost became Bayern coach – Hoeness|
|Barkley to Davis: Don´t ruin your reputation as one of the nicest guys in the world|
|Westbrook extends triple-double streak in Thunder´s loss to Pelicans|
|Llorente ´very satisfied´ at Tottenham|
|Dodgers´ Bellinger: Even when I´m not good, I´m still really good|
|Harvick, Logano win Can-Am Duels|
|Pelicans star Davis suffers shoulder injury|
|Thiem stays perfect in Buenos Aires, Ferrer exits|
|Spieth tied for lead at rain-hit Genesis Open|
|´Special´ Son is one of Premier League´s best, says Vertonghen|
|Team LeBron v Team Giannis by the numbers|