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.
|I´d rather surround myself with people I really like - Osaka explains coach split|
|We do not have to kill Real Madrid forever - Odriozola|
|Bristol City 0 Wolves 1: Cavaleiro repeats cup heroics|
|Blackburn Rovers 0 Middlesbrough 1: Assombalonga strengthens Boro´s play-off credentials|
|Coman restricted to light training ahead of Liverpool clash|
|Solari refuses to concede LaLiga title race is over|
|Courtois: Real Madrid could not control Girona|
|Weary Kvitova reflects on ´crushing´ start to 2019|
|Umtiti in Barcelona squad to face former club Lyon|
|It´s hard to take - Maxwell laments Stars´ stunning Big Bash defeat|
|Pogba: Manchester United emulating ´Class of 92´|
|Real Madrid 1 Girona 2: Stuani and Portu seal stunning comeback|
|Boult, Mahmudullah fined by ICC|
|Neymar Senior: No chance of PSG star facing Manchester United|
|Broad expects sledging to subside in 2019 Ashes|
|Aguero targets historic quadruple|
|Scholes backs Solskjaer for Man United job|
|Finch hails ´special´ Renegades comeback|
|Sydney FC 1 Central Coast Mariners 1: Le Fondre strike averts shock defeat|
|Fox soars in Perth final to win World Super 6|
|Williams delay start to pre-season testing|
|Renegades crowned BBL champions after stunning Stars collapse|
|What we learned from NBA All-Star Saturday|
|Kaepernick´s attorney tips Patriots to make move for QB|
|Tebow: I told Murray to follow his heart|
|Mourinho created unhealthy atmosphere – Sanchez|
|Santa Cruz defends belt against Rivera|
|Opelka, Isner set ATP Tour record at New York Open|
|Diallo soars over Shaq to win Slam Dunk contest|
|WATCH: Diallo dunks over Shaquille O´Neal|
|Silver: NBA trade requests should stay behind closed doors|
|´It´s more of an aspiration´ – LeBron clears up potential NBA ownership|
|Harris wins Three-Point contest ahead of Curry|
|Thomas leads rain-delayed Genesis Open|
|Tatum wins NBA Skills Challenge with stunning half-court shot|
|Robben: Anfield is the worst stadium|
|Valverde not nervous about Messi penalties after spot-kick miss|
|Sanchez ´worried´ amid Man United struggles|
|Schoeman hat-trick sees Lions past Jaguares|
|Piatek lives to score goals - Milan striker´s brilliant double pleases Gattuso|
|Lyon will punish Barca in this form, Pique warns|
|Guardiola lauds Silva´s ´incredible´ FA Cup performance|
|Clermont hit the top, Perpignan finally win|
|Schwartzman saves match point to down Thiem in Buenos Aires|
|Leinster withstand Zebre test as Connacht claim big win|
|Antonio Brown: Roethlisberger has owner mentality and you can´t call him out|
|Pizarro becomes Bundesliga´s oldest ever goalscorer|
|Wawrinka ends 20-month wait for final to book Monfils showdown|
|Barcelona 1 Real Valladolid 0: Hit and miss as Messi gets job done|
|Atalanta 1 AC Milan 3: Two-goal Piatek lands blow in fight for fourth|
|NBA, FIBA link up to start 12-team league in Africa|
|Guardiola proud of ´incredible´ City after Newport win|
|Worst pitch I´ve played on - Manchester City hero Foden unimpressed with Newport surface|
|LeBron James, Derek Jeter lead praise for retiring Yankees legend CC Sabathia|
|Durant happy for Porzingis but guarded on his own future|
|Newport County 1 Manchester City 4: Foden nets brace as upset is averted|
|Simeone plans Griezmann, Costa, Morata trident|
|Stephen Curry reveals three-point contest bet with brother Seth|
|Celtics, Lakers, Knicks on Anthony Davis´ list, along with 26 others|
|Mertens fights back to defeat Halep for her biggest WTA title|
|Championship Review: Norwich hit four as Baggies & Blades cruise|
|Sala mourned at funeral in Argentina|
|Costa thrilled to make Atletico return at old club Rayo|
|Specman´s spectacular debut double leads Bulls in Stormers thrashing|
|Sarries pounce on Chiefs slip as Saints sink sorry Sharks|
|Griezmann overtakes Torres on Atletico Madrid´s top-scorer list|
|LeBron James reacts to Kaepernick´s settlement with NFL: I´m happy he won his suit|
|Giannis to play for Greece at FIBA Basketball World Cup|
|Next question! - Russell Westbrook on All-Star Game team-mate Joel Embiid|
|Rayo Vallecano 0 Atletico Madrid 1: Griezmann downs derby rivals again|