Jesus Navas climbed off the bench to rescue a 2-2 draw for Spain against Chile in Geneva on Tuesday.
The Manchester City winger salvaged a scarcely deserved draw in Vicente del Bosque's 80th game in charge, sliding home the leveller from close range in injury time.
Eduardo Vargas twice gave Chile the lead, sandwiching Roberto Soldado's close-range header in a first half dominated by the South Americans.
The performance underlined the threat that Jorge Sampaoli's men could carry at the 2014 FIFA World Cup, which they are on the brink of qualifying for following their 3-0 victory over Venezuela on Saturday.
But they really should have claimed the win, having controlled large parts of the contest.
Del Bosque made a host of changes from the side that beat Finland 2-0 in a World Cup qualifier on Friday.
He was without Isco (ankle) and David Silva (thigh), while Victor Valdes was given the nod in goal ahead of Iker Casillas, who earned his 150th cap in Helsinki.
Nacho Monreal, Santi Cazorla and Soldado were also brought in to the starting line-up.
Chile named all three goalscorers from the Venezuela match as Vargas, Marcos Gonzalez and Arturo Vidal lined up in a strong starting XI.
The visitors seized the early initiative when Vargas latched onto Mauricio Isla's flicked pass before slotting the ball past Valdes from 12 yards.
Spain were exposed at the back again midway through the half, when Valdes had to scramble Alexis Sanchez's cross-cum-shot behind for a corner.
Claudio Bravo almost cost his side at the other end when the goalkeeper allowed a tame backpass to roll under his foot and out for a corner, from which Spain failed to threaten.
Despite struggling to find their rhythm, Spain did manage to conjure a leveller nine minutes before the break.
Tottenham striker Soldado was the beneficiary of Alvaro Arbeloa's pinpoint delivery, heading home from six yards for a barely deserved equaliser.
But after Cesc Fabregas' cross hit the post, Spain were cut open again on the stroke of half-time.
Vargas turned Raul Albiol and finished into the bottom corner to send Sampaoli's men into the break with the lead.
Andres Iniesta and Navas were brought on for Fabregas and Xavi as Spain looked to turn things around, having looked nothing like the side that had managed five clean sheets in their past six matches.
They began to grow into the game, enjoying long spells of possession as Chile seemed content to try to contain them.
Cazorla fed Pedro down the down the left but his cross deflected off Gary Medel, giving Soldado no chance to capitalise.
Valdes was replaced around the hour mark, making way for Pepe Reina, who was called into action when Isla raced through and the Napoli loanee had to sprint out to deny him.
Del Bosque introduced Alvaro Negredo to the action in place of Soldado and the Spaniards pressed again, winning a free-kick on the edge of the box as Cazorla was sent tumbling, resulting in a yellow card for Vidal.
But Iniesta's strike was straight at the wall and when Navas could only sting Bravo's palms with a close-range strike, Spain's frustration was evident.
With their illustrious opponents failing to fire on all cylinders, Chile looked set to record their first win over Spain, but Navas had other ideas, poking Pedro's cross home from close range to ensure that the world and European champions have lost only one of their last 30 matches.
|Coach: Del Bosque|
for Fàbregas 46'
for Xavi 46'
for Sergio Ramos 59'
for Víctor Valdés 59'
for Soldado 66'
for Javi García 79'
|Berlusconi ready to relinquish power at AC Milan|
|Busquets agrees new five-year Barcelona contract|
|Euro 2016 not under threat from strike action - Braillard|
|Real Madrid v Atletico Madrid: San Siro the stage for Champions League final re-run|
|Vela staying with Sociedad - agent|
|Red Devils enter Faustian pact as Manchester United hire Mourinho|
|A poke in the eye & ´the f****** master´: Five of the best Mourinho v Guardiola battles|
|Star striker top of Mourinho´s United shopping list|
|An attacking mastermind even more fearsome than Ferguson - Jose Mourinho in numbers|
|Manchester United appoint Mourinho as manager|
|Italy not among Euro 2016 favourites - Ancelotti|
|Win or lose in Milan, it is time for Perez to back Zidane|
|Ronaldo wants Morata back at Madrid|
|England v Australia preview: All eyes on Rashford debut|
|Weigl, Kimmich grateful to Tuchel and Guardiola|
|Benitez: I´m ready for Championship challenge|
|Colombia v Haiti: Bacca ready for responsibility|
|Karembeu hails Zidane ahead of Champions League final|
|Panama v Brazil: Lucas Lima ready to prove himself|
|Kaka replaces Douglas Costa in Brazil´s Copa America squad|
|Mascherano opens up on Juventus rumours|
|Allen unclear over Liverpool future|
|Hodgson praises scrapped cup replays|
|Deschamps to take legal action against Cantona|
|Kuyt signs new Feyenoord deal|
|Messi set for court appearance on June 2|
|Juninho tips Atletico for Champions League glory|
|Galatasaray 1 Fenerbahce 0: Podolski header settles Turkish Cup final|
|Skrtel set for Liverpool exit|
|Rashford set for England debut|
|Xavi: It is Atletico Madrid´s time to win the Champions League|
|Manchester United will be hard to beat with Mourinho - Courtois|
|Signing ´animal´ Ibrahimovic a no-brainer for Man Utd, says Henry|
|FA Cup quarter-final replays scrapped|
|Cantona suggests Deschamps dropped Ben Arfa and Benzema over race|
|Depay ´p***** off´ at lack of football|
|Ferdinand welcomes Mourinho to Manchester United|
|Delph placed on England standby list|
|Wales talisman Bale shrugs off Euro pressure|
|Ronaldo open to working under Mourinho again|
|Ronaldo values Champions League over Barcelona´s double|
|Switzerland v Belgium: Shaqiri eyes Euro glory|
|Willian: Manchester United stronger with Mourinho|
|Liverpool and Dortmund in for Guerreiro|
|Real Madrid will attack Atletico again, says Ancelotti|
|Ramirez set for Southampton exit|
|Bale calls for cool Madrid heads|
|´Mourinho can take United back to the top´ - Ibrahimovic hints at Old Trafford switch|
|Hull City v Sheffield Wednesday: Promotion windfall the prize on offer|
|Lahm eyes Champions League glory with Ancelotti|
|Juventus chief hints at Dani Alves deal|
|Gotze warned he will not be first choice under Ancelotti|
|Courtois: If nothing strange happens, I will continue at Chelsea|
|Vermaelen ´disappointed´ by Barca struggles|
|Higuain and Lamela dream of lifting the Copa America|
|Reborn Torres returns to Milan to complete Atletico´s greatest tale|
|Lukaku offers Everton ultimatum: I want to win trophies!|
|United States v Bolivia: Copa America hosts to fine-tune preparations|
|Zidane has united Real Madrid again - Ramos|
|Mexico v Paraguay: Marquez ready to make the most of ´great opportunity´|
|Republic of Ireland v Netherlands Preview: O'Neill wants confident display|
|Coyle leaves Houston Dynamo|
|McLaren could end Mercedes dominance - Alonso|
|Orlando City 2 Philadelphia Union 2: Tribbett rescues point in controversial contest|
|United States 1 Ecuador 0: Last-gasp Nagbe goal lifts hosts in Copa America warm-up|
|Djourou compares Xhaka to Pirlo|
|Gallas ´very proud´ of former boss Ranieri´s title glory|
|Copa America to use goal-line technology|
|Smith likens Postecoglou to Klopp|
|Hart backs Sterling to shine at Euro 2016|
|Giovinco happy in MLS despite Euro 2016 snub|
|Balotelli set for Liverpool return, confirms Berlusconi|
|Atletico must win Champions League - Cerezo|
|Arbeloa: Mourinho didn´t get enough recognition at Madrid|
|Mijatovic: Bale can save Madrid´s season in Champions League final|
|Gallas expects Conte to revive Chelsea|
|Deschamps ´annoyed, but not worried´ by Varane´s absence|
|´Impossible´ to see MSN leaving Barcelona - Bartomeu|
|Thiago pledges future to Bayern|
|Uruguay v Trinidad and Tobago: Sanchez skips final to help Suarez-less La Celeste|
|AFC Champions League Review: Urawa pay the penalty as Seoul advance|
|Uruguay v Trinidad and Tobago: Sanchez skips final to help Suarez-less La Celeste|
|Benitez ´convinced´ he can win trophies at Newcastle|
|Nigeria v Mali: Moses among many absentees for hosts|
|Chile - Jamaica Preview: Copa plans crystallize in Vina del Mar|
|Nigeria v Mali: Moses among many absentees for Super Eagles|
|Benitez to stay at Newcastle|
|Kramaric leaves Leicester for Hoffenheim permanently|
|Neustadter gets green light for Russia Euro 2016 selection|
|Chile v Jamaica: Copa plans crystallize in Vina del Mar|
|Ledley making progress in bid to prove Euro 2016 fitness|
|Gotze returns to Germany training|
|Ronaldo: Madrid would be smart to give me a new deal|
|Northern Ireland v Belarus: Last chance to impress as O'Neill prepares to trim squad|
|Varane disappointed by Euros absence|
|Republic of Ireland v Netherlands: O´Neill wants confident display|
|Ronaldo shakes off injury in Real Madrid training|
|Atletico star Griezmann ´listening to different clubs´|
|United States - Ecuador Preview: Klinsmann pins hopes on Yedlin as Copa preparations continue|
|Gold tells Middlesbrough to ´dream on´ over Antonio|
|Schweinsteiger wants Mourinho to spice up Manchester derby|
|England v Australia: All eyes on Rashford debut|
|Aggressive Premier League better for me - Xhaka|
|Schweinsteiger ´right on schedule´ for Euro 2016|
|Darmian relishing Euros after return from injury|
|Northern Ireland v Belarus: Last chance to impress as O´Neill prepares to trim squad|
|Ventura leaves Torino amid Italy talk, Mihajlovic appointed|
|Sevilla confident of keeping Emery|
|Godin wants Atletico to use 2014 defeat as inspiration|
|Xhaka agrees Arsenal move|
|Idolisation of Ibrahimovic warranted Sweden captaincy - Hamren|
|Scholes hopes Mourinho keeps Giggs at Manchester United|
|Gotze snubbing Liverpool will boost Germany - Bierhoff|
|Bosz honoured by Ajax appointment|
|Ramos highlights Griezmann threat|
|Record-chasing Ronaldo and taming the Wolves - Real Madrid´s route to the Champions League final|
|Donnarumma dreams of being Milan captain|
|Koke: History, not revenge motivating Atletico|
|Costa Rica v Venezuela: Hosts ramp up preparations for maiden Copa America tilt|
|Argentina v Honduras: Messi and co warm up for Copa America|
|USA will win a World Cup, says Donovan|
|Pumas UNAM 2 Independiente del Valle 1 (3-3 agg, 3-5 on penalties): Hosts suffer shoot-out heartbrea|
|Gracia leaves Malaga as Rubin Kazan loom|
|Messi: Argentina deserve to be Copa America champions|
|Dybala included in Argentina´s preliminary Olympics squad|
|Mourinho and United a ´good wedding´ - Ancelotti|
|Klinsmann: Copa America better than Euros|
|Messi: Joining Barcelona not an easy decision|
|Carrico receives four-game ban for homophobic slur|
|Dani Alves wants Atletico to win Champions League|
|McNair out to impress ´world-class´ Mourinho|
|Ranieri: Premier League survival is Leicester´s priority next season|