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.
|It is time for Neymar to decide, says Belletti|
|Norwich sign Switzerland striker Drmic|
|Dzumhur makes successful start to Antalya defence|
|Robertson: I did not tell Tierney to quit Celtic|
|Wozniacki right at home in Eastbourne, Pliskova also makes progress|
|Ajax sign Netherlands forward Promes|
|Tunisia 1 Angola 1: Eagles of Carthage denied winning AFCON start|
|Ghana v Benin: Black Stars present united front before opener|
|Neymar wishes Messi happy birthday as Barcelona return rumours grow|
|England v Australia: Morgan´s men look for response after Sri Lanka setback|
|Perfect preparation key to Shakib heroics|
|Gerrard aware of Derby speculation amid Lampard´s expected Chelsea switch|
|Stupendous Shakib torments Afghanistan|
|Ivory Coast 1 South Africa 0: Kodjia secures precious opening win|
|Boring French Grand Prix should accelerate rule changes|
|Smith, Warner have extra motivation after World Cup heckles – Finch|
|Shearer slams Newcastle ´shambles´ as players & fans hail Benitez|
|Windies replace injured Russell with Ambris|
|CAF chief Johansen calls for investigation into Cameroon after Women´s World Cup controversy|
|Cameroon v Guinea-Bissau: Seedorf´s Indomitable Lions ´serene´ despite bonus row|
|Morgan has no issue with Smith and Warner boos|
|Barty pulls out of Eastbourne with arm injury|
|Barcelona would win more if Messi was a team player - Van Gaal|
|San Siro to be ´knocked down´, claims AC Milan president|
|Missing Origin decider would be ´devastating´ for injured Cleary|
|US Open singles ´not the target´ for Murray after Queen´s triumph|
|Newcastle confirm Benitez departure|
|England´s Roy ruled out of Australia clash|
|First big hoax of the season - Napoli shut down Allan & Insigne sale rumours|
|Van Dijk excited for Liverpool´s future|
|Baghdatis to bow out after Wimbledon|
|Coutinho, Arthur want Neymar back at Barcelona|
|Folau a victim of ´continuing campaign of discrimination´ after GoFundMe page shut down|
|Messi at 32: The superstar´s 10 finest goals for club and country|
|Messi at 32: The Barcelona star´s achievements through the years|
|Now begins another Copa – Messi urges Argentina to kick on after progressing|
|Uncertain Koulibaly suspects he will stay at Napoli|
|Lonzo Ball: Trade from Lakers to Pelicans ´good news´|
|Marquinhos accepts PSG may find it difficult to keep Neymar|
|This week at the Cricket World Cup: Defending champions Australia face tough tests|
|Rumour Has It: Neymar tells Barca players he´s coming|
|Milan need to be playing Champions League – Kalac excited by Giampaolo|
|Marlins complete sweep to hand Phillies seventh consecutive loss|
|Copa America and Messi clash a great experience for Qatar, says Sanchez|
|Martinique 2 Mexico 3: Martino´s men avoid shock against minnows|
|Chris Paul addresses trade rumours, says he´s ´happy´ with Rockets|
|Folau´s GoFundMe campaign shut down for breaching terms|
|We made history – Ronaldo meets Jordan|
|Truex picks up another win at Toyota/Save Mart 350|
|Columbus Crew 0 Sporting Kansas City 1: Gutierrez header enough for visitors|
|Raptors have strong chance to re-sign Kawhi Leonard – Green|
|Alonso sets Mets´ rookie homer record 78 games into season|
|Yankees continue home-run streak, set franchise record|
|Green wins Women´s PGA Championship for maiden major title|
|Reavie ends 11-year PGA Tour win drought at Travelers Championship|
|Argentina seem to be at war – Scaloni|
|USA, China claim first World Cup titles ahead of FIBA 3x3 Olympic debut|
|Euro U21s Review: Germany through, Denmark and Austria crash out|
|Cameroon boss slams ´miscarriage of justice´|
|England and France advance as Neville fumes at Cameroon|
|Ferrari failed in bid to close on Mercedes - Vettel|
|Mallorca 3 Deportivo La Coruna 0 (3-2 agg): Extraordinary comeback seals LaLiga return|
|Sonego shocks Sousa, Troicki labours through at Antalya Open|
|Konta off to a winning start at Eastbourne|
|Algeria 2 Kenya 0: Mahrez scores in comfortable success|
|Qatar 0 Argentina 2: Aguero on target as Scaloni´s men progress|
|Colombia 1 Paraguay 0: Cuellar strike seals Copa America win for fringe stars|
|England boss Neville praises Duggan following alleged spitting incident|
|Ricciardo falls to 11th with two French GP penalties|
|I felt no pain - Murray delighted after comeback success|