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.
|Hero Rivers feared he had cost Chargers in KC|
|Williams would welcome Llorente back to Athletic Bilbao|
|Liverpool v Manchester United: Minding the gap|
|Milan elimination unjust, fumes Leonardo|
|Paul hails ´sick´ Harden after record-breaking display|
|Liverpool v Manchester United: Salah, Mane and Firmino v Rashford, Martial and Lukaku in Opta number|
|Canelo open to GGG trilogy as he chases place in Mexican history|
|The big Friday Premier League quiz|
|Harden posts record fourth 50-point triple-double in win over Lakers|
|Barcelona squad happy with Dembele, says Alba|
|Chargers rally past Chiefs to clinch playoff spot|
|WATCH: Chargers top Chiefs on dramatic two-point conversion in final seconds|
|Suns owner Sarver committed to keeping team in Phoenix|
|Chargers WR Allen leaves with injury after near-spectacular catch|
|Socceroos not giving up on Mooy for Asian Cup|
|Cooper says Raiders owner wanted to trade him to Cowboys|
|Pochettino jokes Levy is ´worried´ about losing him|
|Barcelona would welcome Morata – Alba|
|Toure not a priority for West Ham – Pellegrini|
|Koscielny no certainty to face Southampton, says Emery|
|We gifted the game – AC Milan boss Gattuso furious after Europa League exit|
|My season starts now, says Koscielny|
|Cipriani ´at peace´ with latest England snub|
|Laporte: Deschamps must have personal reasons for France snub|
|Morata injury not too serious, claims Chelsea boss Sarri|
|Hansen to leave: All Blacks coach returning focus to World Cup defence|
|I want to fight the champion! - Joshua reiterates Wilder in April ambition|
|Gundogan glad to leave Christmas holidays behind|
|I know how it feels and it hurts - Gundogan on Sterling abuse|
|Celtic 1 Red Bull Salzburg 2: Scottish champions through despite defeat|
|Olympiacos 3 AC Milan 1: Rossoneri crash out of Europa League|
|Arsenal 1 Qarabag 0: Lacazette on target as Saka shines|
|Hansen to leave: All Blacks will take time to name replacement|
|Chelsea condemn alleged anti-Semitic chanting from fans|
|Hansen to leave: The best Opta facts from New Zealand coach´s tenure|
|Hansen to leave: Five contenders to be the next All Blacks coach|
|Hansen to leave: Highs and highs of his All Blacks reign|
|Hansen to leave All Blacks after World Cup|
|Rapid Vienna 1 Rangers 0: Late Ljubicic winner sends Gerrard´s men out|
|Beckham continues to miss Giants practice with quad injury|
|Vidi 2 Chelsea 2: Giroud spares Sarri´s side in lacklustre draw|
|Paris Saint-Germain and Marseille fixtures among latest Ligue 1 cancellations|
|Santos turn to ex-Argentina boss Sampaoli|
|Muller could miss Champions League last 16 after Tagliafico kick|
|Home hope Bekker out in front at Alfred Dunhill Championship|
|Van Bommel in touch with Robben over PSV reunion|
|Pinarello chief confident over Team Sky future|
|Stade make Ospreys tickets free in tribute to teenager|
|WRC great Loeb seals Hyundai switch|
|Madrid rumours better than sack talk, says Pochettino|
|Nadal to join Federer at 2019 Laver Cup|
|Prigoda smashes world record, Hosszu dethroned in Hangzhou|
|Former Juve CEO Marotta takes over at Inter|
|Glenn to stand down as FA boss next year|
|Muller apologises to Tagliafico for kick to the head|
|Pereira pleads for more Manchester United chances|
|Griffin hails ´phenomenal´ Lowry after Warriors demolition|
|I´ve played with Zidane and Henry, but Messi is something else – Pires|
|Dragons forward Jack de Belin charged with sexual assault|
|Durant: Raptors are the real deal|
|Cocu bids farewell to Fenerbahce after ´mutual agreement´ is made over October sacking|
|Australia unchanged for historic Perth Test|
|Champions League draw: The possible last-16 ties|
|Southee happy to be back on home soil|
|I wouldn´t swap Dembele for Neymar – Pires|
|Canelo ready to risk heavy weather against Fielding|
|Raptors upstage Warriors, Davis leads Pelicans with 44 points|
|India skipper Kohli excited by green Perth wicket|
|PSG? I haven´t decided my future yet – De Jong|
|Marcelo: Real Madrid don´t have attitude problem|