Second-half substitute Cesc Fabregas scored twice as reigning European and world champions Spain fought back from two goals down to beat Chile 3-2 in a friendly here on Friday.
Vicente Del Bosque's side were punished for a slow start as Chile raced into a 2-0 lead thanks to goals from Mauricio Isla and Eduardo Vargas, but the introduction of Andres Iniesta at half-time reinvigorated the Spain midfield.
Within nine minutes the Barcelona man had pulled a goal back and it was his pass that allowed fellow substitute Fabregas to level the scores with 20 minutes remaining.
Fabregas then scored the winner in stoppage time, converting the rebound after his penalty had been saved by Claudio Bravo.
The win comes as the perfect boost to a Spain squad deprived of several key players as they prepare to host Liechtenstein in a Euro 2012 qualifier on Tuesday.
Raul Albiol and Athletic Bilbao midfielder Javi Martinez started in the heart of the defence, and the makeshift duo were given a hard time as Chile came racing out of the blocks.
Isla beat Iker Casillas with a well-hit crossed-shot and, after David Villa and David Silva had both had chances for Spain, Chile doubled their lead on 20 minutes when Alexis Sanchez supplied Vargas, who finished coolly past Casillas.
Only a fine Casillas save prevented Jean Beausejour from adding another, and Spain were lucky to be just two behind at the break.
Pepe Reina, Pedro and Iniesta all came on at the restart, and the little Barcelona midfielder sparked the fightback when he sent a measured strike into Bravo's bottom-right corner to score his tenth international goal.
Iniesta's first-time pass was then prodded home by Fabregas for the equaliser and Chile cracked as Spain turned the screw, with Pablo Contreras being shown a straight red card for a crude tackle on Santi Cazorla.
Spain then won a penalty in the last minute when Alvaro Arbeloa went down inside the area.
The contact seemed minimal and so incensed was Jorge Valdivia -- who had already been taken off -- that referee Jerome Laperriere raced across to the dugout to show him a red card for his protests.
Fabregas' penalty was touched on to the post by Bravo, but the Barcelona man touched home the rebound to hand Spain the win before a mass brawl sparked by angry Chilean players greeted the final whistle.