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'
|De Jong: I haven´t retired from Netherlands duty|
|Palace complete £13m Townsend signing|
|Pato, Falcao and Amelia leave Chelsea|
|Barzagli, Bonucci and Chiellini - the latest Italy wall looking to deny Germany|
|Nolito´s Manchester City move confirmed|
|Coleman heaps praise on Williams|
|Sanchez reveals gruesome update of ankle injury|
|Ronaldo: We all feel abandoned by retiring Messi|
|Ibrahimovic arrival makes Manchester the ´capital of football´ - Vieira|
|Del Bosque: I sent a message to the whole squad, except Casillas|
|USA to play first friendly against Cuba since 1947|
|Poland boss praises Lewandowski after Euro 2016 exit|
|Fonte: United will regret missing out on Sanches|
|Santos: Portugal should have had a penalty|
|Ranieri: English football is not in crisis|
|Ronaldo dreaming of Euro 2016 glory|
|Santos: Goalless Ronaldo was immense for Portugal|
|Nawalka: Poland should be proud of Euro 2016 exploits|
|No player out of reach for Chinese Super League - chief|
|Fearless Sanches had no nerves in dramatic shootout|
|Portugal through despite Ronaldo off-night|
|´Very happy´ Neymar drops contract hint|
|Poland 1 Portugal 1 (aet, 3-5 pens): Heartbreak for Blaszczykowski as Santos´ men sneak into the sem|
|Del Bosque to resign from Spain role|
|Giggs can be a manager in his own right, insists Round|
|Euro 2016 Diary: Wails for Bale, a grumpy water carrier and the inevitable return of Will Grigg|
|Manchester United agree Galatasaray friendly|
|Hazard must bloom into bona-fide superstar as Eden project comes full circle|
|Hazard excited by ´world class´ Ibrahimovic in the Premier League|
|Hazard determined to make his mark on Lille return|
|Special One and Zlatan: United´s match made in heaven or gamble from hell?|
|Vertonghen to miss rest of Euro 2016 due to torn ankle ligaments|
|Conte has helped me a lot, admits grateful De Sciglio|
|Juve pay tribute to departing Caceres|
|Williams banking on ´band of brothers´ to stop Hazard|
|No lack of desire with England - Lampard|
|Germany v Italy: Kroos calls on Khedira knowledge for Azzurri test|
|Coleman welcomes pressure of ´biggest game since 1958´|
|Ibrahimovic claims he will join Manchester United|
|Sevilla receive ´big offer´ for Krychowiak|
|Bartra seeks to justify Dortmund´s trust|
|Montella vows to bring the good times back to AC Milan|
|Bournemouth bring in striker Mousset|
|Barca confirm Umtiti fee agreed|
|Puel takes charge at Southampton|
|Hulk completes €55.8m Shanghai SIPG switch|
|Bruce focused on Hull and pursuing transfer targets|
|Sinclair agrees Watford move|
|Janssen wants AZ to accept Spurs offer|
|Bartomeu claims five-year Neymar deal imminent|
|Reluctant father figure Evra defends Pogba|
|Boateng declares himself fit to face Italy|
|73 goals, 44 assists: The stats that show why Man Utd want Ibrahimovic and Mkhitaryan|
|Conte has made Italy proud again – Vieri|
|Evra pledges to respect Iceland after England shock|
|Vrba leaves Czech Republic for Anzhi|
|Bernstein backs Allardyce for England job|
|Rodgers rejects England talk|
|Klose lauds ´unbelievable´ Italy|
|Muller confident Italy´s defence can be breached|
|´Lineker does not know what he is talking about´ - Raiola defends Pogba|
|Morrison opts to stay with West Brom|
|Kempes expects Messi to return to international football|
|´Leave Messi alone!´ - Maradona|
|Evra suffers training injury|
|Iceland´s Viking chant terrified England - Shilton|
|Ballack doubts Italy can repeat Spain performance|
|Caparros hoping Del Bosque continues as Spain coach|
|Falcao targeting Ligue 1 top scorer award|
|Maradona: England continue to be over-hyped|
|Santos: You talk about Ronaldo because he is great|
|James Rodriguez is an ´average player´ - Stoichkov|
|Mooy moves from Melbourne to Manchester City|
|Copa America champions Chile set to face Euro 2016 winner|
|Guardiola ´relaxed´ ahead of renewing Mourinho rivalry|
|Simeone on post-Champions League final comments: I spoke heatedly|
|Skrtel pins blame on friend after Klopp ´d***´ slur|
|Euro 2016 Diary: Medals for Irish fans and Blaszczykowski inspires Wimbledon triumph|
|Bale is slightly better than Hazard, admits Lukaku|
|Argentina make Simeone approach, jokes Atleti president|
|Mamelodi Sundowns 2 Enyimba 1: Arendse nets winner in Group B clash|
|Wilmots confirms Batshuayi medical ahead of expected Chelsea switch|
|Santos insists no favourite in Portugal-Poland tie despite Ronaldo presence|
|Celtic is the best place for me to be, insists Dembele|
|Lagerback: I don´t think I will take a job like England|
|Umtiti has ´exclusive agreement´ to join Barcelona|
|Milik putting Ronaldo worship to one side for 90 minutes|
|Only losers make excuses, insists Florenzi|
|Nawalka: We must not focus solely on Ronaldo|
|Hamsik: Bayern offer reports are nonsense|
|Injured De Rossi a major doubt to face Germany|
|Wales will not be a stepping stone for Belgium - Bale|
|Lyon add Nkoulou as Barcelona close in on Umtiti|
|Neymar, Rafinha and Douglas Costa named in Brazil´s Olympics squad|
|Goalless Lewandowski should look to Ronaldo for inspiration|
|Mane has cost Liverpool far too much - Thompson|
|Bilic not interested in England job, says Gold|
|Hummels hopes Gomez can break through impressive Italy defence|
|Gerrard: England gripped by a ´culture of fear´|
|Bournemouth sign Chelsea´s Ake on season-long loan|
|Iceland emulating Leicester City would delight Hallgrimsson|
|Chelsea could still sign Pato permanently, says agent|
|Wales v Belgium: Wilmots will not man-mark Bale in quarter-final clash|
|Genoa seal Ocampos capture|
|Fuchs retires from Austria duty|
|Bundesliga fixtures: Bayern begin title defence against Werder Bremen|
|Bordeaux complete Toulalan signing|
|Suarez confident Messi will return for Argentina|
|´England players did not know what to do´ - Lineker critical of Hodgson|
|Dybala turned down ´€80m Barcelona move´|
|Emery a big loss for Sevilla, says Baptista|
|Valencia: ICC derby more than a friendly|
|Defoe: Allardyce ready for England|
|Wales defend celebrations after England´s Euro 2016 elimination|
|Rooney: Next England manager doesn´t have to be English|
|Mascherano set for Barca stay|
|Carragher suggests Klinsmann as England boss, dismisses Shearer|
|Glik confirms Monaco move|
|Australia to face Japan in Melbourne|
|Galliani: Montella gives Milan a fresh start|
|We must take care of Messi - Argentina president|
|England players ´babies´ and soft - Carragher|
|Higuain unlikely to renew Napoli contract - agent|
|Hart: Tough job for next England boss|
|Nani to join Valencia, confirms Fener president|
|Glenn: Man, woman or caretaker for England|
|Skrtel´s Fenerbahce move ´almost done´|
|Al Ahly 1 ASEC Mimosas 2: Jol´s men beaten again|