Barcelona midfielder Cesc Fabregas netted twice as world champions Spain battled back from 2-0 down to defeat Chile in a pulsating friendly in Switzerland on Friday.
Chile had looked on course to record a shock win over Spain after they struck twice in the opening 20 minutes through Mauricio Isla and Eduardo Vargas.
Vincente Del Bosque introduced Andres Iniesta at half-time and the Barcelona midfielder was instrumental in Spain's comeback, scoring the first and setting up Fabregas to level the scores with 20 minutes remaining.
The former Arsenal captain then scored an injury-time winner, slotting in the rebound after goalkeeper Claudio Bravo saved his penalty.
Spain, without several key players ahead of their Euro 2012 qualifier against Liechtenstein on Tuesday, have experienced mixed results in friendlies since winning the World Cup in South Africa last summer. Del Bosque's side have won all five of their Euro 2012 qualifying matches but suffered heavy defeats against Argentina and Chile, while being held to a draw against Mexico.