Spain held their nerve to edge past Italy on penalties and book a final showdown against Brazil in the FIFA Confederations Cup.
The world champions were given a stern examination in Fortaleza on Thursday but they stood up to the test and extended their record-breaking unbeaten run in all competitions to 29 matches.
Both sides had chances to win the tie in normal time and in the 30 minutes of extra time that followed but it came down to spot-kicks and after six successful attempts each, it was Leonardo Bonucci who blinked first and substitute Jesus Navas capitalised to plunder the winning penalty.
In a game that saw the two sides meet for the first time since Spain won 4-0 in the final of Euro 2012, Vicente del Bosque kept faith with the competition's top scorer Fernando Torres up front.
Italy, however, were forced into a change in attack due to an injury suffered by Mario Balotelli, with the Milan striker having flown home with a thigh injury. Alberto Gilardino was the man to replace him.
Manager Cesare Prandelli was able to call on the services of midfielder Andrea Pirlo, who missed the 4-2 defeat to Brazil after suffering a calf injury.
Italy started much the brighter and had the first chance of the match, with Christian Maggio heading narrowly over from a corner after seven minutes. The full-back then forced the first save of the game from Iker Casillas following a quick break shortly after.
The pressure continued as Daniele De Rossi glanced a header just wide from a Pirlo cross, but Del Bosque's men soon began to show some composure and calm the game down.
Still it was the Italians who should have led heading into the break as Maggio directed a close-range header straight at Casillas 10 minutes before the interval.
The game slowed down in the second half, with the first effort coming after 57 minutes when Navas forced a good save from Gianluigi Buffon.
Gerard Pique spurned a good opportunity to break the deadlock late on as he fired a shot over the bar, before good link-up play between Torres and Navas saw the new Manchester City signing sting the palms of Buffon with a powerful strike.
Spain continued to pile on the pressure right into stoppage time at the end of the second half but to no avail.
It took until the third minute of extra time for the best chance of the match arrive as Italy substitute Sebastian Giovinco crashed an effort off the post with Casillas stranded.
With both Torres and Gilardino now substituted, both sides were playing without a recognised striker and the goal drought continued, although Juan Mata went close with a curling effort in the second half of extra time.
Xavi Hernandez saw his long-range effort hit the post in the closing stages and penalties beckoned.
The first 12 efforts were textbook examples of how to keep your cool under pressure but after Sergio Busquets had cancelled out Riccardo Montolivo's assured strike to make it 6-6, Bonucci ballooned his effort well over the bar and Navas stepped up to fire a low effort into the corner and seal victory for the Spaniards.
Spain will play Brazil in the final on Sunday, while Italy will meet Uruguay in the third-place play-off on the same day.
|Coach: Del Bosque|
for David Silva 53'
for Pedro 79'
for Fernando Torres 94'
|Drogba focused on claiming trophies|
|Bent makes Brighton switch|
|Kone included in Everton squad for Wolfsburg clash|
|Shaqiri can ´probably´ leave Bayern, says Beckenbauer|
|Ramsey backs under-fire Wenger|
|Fabregas clears the air with Ramos|
|Cavani urges Ligue 1 focus|
|Olsson out until new year|
|Sao Paulo´s Toloi confident ahead of second leg|
|Aguero our ´special player´, says Kompany|
|APOEL eye Europa League despite winless road streak|
|Silva disappointed by ´childish´ errors|
|Slutsky happy to keep ´intrigue´ alive|
|A-League Preview: Brisbane begin life after Mulvey|
|Eredivisie Preview: Ajax targeting improvement|
|Shakhtar did not lack motivation - Shevchuk|
|Bayern lament two errors, Guardiola proud|
|Valcke: It will ´take years´ to rebuild FIFA´s reputation|
|Luis Enrique ´never fed up´ of Messi magic|
|Valverde pleased with Bilbao triumph|
|Messi revels in Champions League milestone|
|Loss was a ´crying shame´ - De Boer|
|Suarez relieved to get off the mark for Barca|
|Pellegrini puts Aguero among best in the world|
|Cavani wants top spot|
|Howedes sorry for Schalke collapse|
|Sporting Lisbon 3 Maribor 1: Slimani helps fire hosts into second place|
|Concord Rangers 0 Mansfield Town 1: Palmer edges League Two side through|
|Mourinho salutes ´complete´ Chelsea after Schalke stroll|
|Lopetegui revels in Porto professionalism|
|MK Dons 2 Rochdale 2: Green rescues hosts a point|
|Manchester City 3 Bayern Munich 2: Aguero the hero as City rekindle Champions League dream|
|Shakhtar Donetsk 0 Athletic Bilbao 1: Hosts qualify despite poor performance|
|Paris Saint-Germain 3 Ajax 1: Strike duo terrorise Dutch side|
|APOEL 0 Barcelona 4: Messi breaks record after Suarez opener|
|Schalke 0 Chelsea 5: Blues clinch top spot in style|
|Serbia turn to Curcic|
|Inter v Dnipro: Juan wants early qualification|
|Sporting-Maribor delayed as lights go out in Lisbon|
|Garcia upbeat despite late setback|
|The making of Lionel Messi: How it all started for the Champions League´s record goalscorer|
|Tottenham v Partizan: Pochettino´s men look to seal qualification|
|Messi breaks Champions League scoring record|
|Wolfsburg v Everton: Distin buoyed by good run|
|Allegri expects improved away display|
|Rodgers: First goal crucial for Liverpool confidence|
|CSKA Moscow 1 Roma 1: Late leveller keeps Russians in the hunt|
|Ancelotti not worried about record|
|BATE 0 Porto 3: Belarusians knocked out but go into the record books|
|Klopp looking forward to Champions League distraction|
|Parish urges Warnock to stop ref rage|
|UEFA Europa League Preview: Celtic and Inter seek home wins to advance|
|Diame could make Hull return on Saturday|
|QPR lose Sandro to knee injury|
|Juanmi fractures arm|
|Wilshere out for ´a while´ - Wenger|
|Wenger hits back at Usmanov|
|De Jong back in training for Newcastle|
|Chelsea ´head and shoulders´ above rest - Giggs|
|Stevens returns to Stuttgart|
|Cheltenham sack Yates|
|Giggs open to United exit to further career|
|Sampaoli relaxed after Copa America draw|
|Pekerman eyes Copa America revenge|
|Time for City to produce - Nasri|
|Copa Sudamericana Preview: River search for form ahead of Superclasico|
|K. League Preview: Cup winners Seongnam eye safety|
|Argentine Primera Division Review: Racing Club beat River Plate to go top|
|Guardiola: Desperate City are dangerous|
|Paraguayan Division Profesional Review: Libertad back on top as Cerro Porteno slip up|
|Brazil to meet Colombia at Copa America|
|Koeman backs ´great´ Forster|
|Lambert delighted with makeshift Villa defence|
|Koeman remains confident of top-four finish|
|Granada 0 Almeria 0: Visitors hold on to move out of bottom three|
|Genoa 1 Palermo 1: Hosts rue Pinilla miss in lively draw|
|Aston Villa 1 Southampton 1: Saints spoil Lambert´s 100th game|
|No let-up from Bayern - Guardiola|
|Turkish Super Lig Review: Besiktas and Fenerbahce gridlocked, Yanal makes winning start|
|Basel v Real Madrid: Ancelotti approaching winning record|
|Russian Premier League Review: Zenit extend advantage, Torpedo win marred|
|Mourinho not interested in Reus|
|Pellegrini dismisses Messi rumours|
|Anderlecht v Galatasaray: Faint hopes remain alive in Belgium|
|Luis Enrique: Barca must beat APOEL|
|Indian Super League Preview: Materazzi keen to maintain momentum, Goa host Kerala|
|Arsenal v Borussia Dortmund: Klopp visits Emirates amid switch rumours|
|Fer concerned by QPR away form|
|Shakhtar must not underestimate Athletic - Lucescu|
|Indian Super League Review: Chennaiyin well-placed for post-season, Delhi win|
|Atletico Madrid v Olympiacos: Atleti on the brink of last 16|
|Dragons take American football player on trial|
|Di Matteo has no thoughts of Chelsea revenge|
|Vermaelen could require surgery|
|Destiny in Roma´s hands - Garcia|
|Ludogorets v Liverpool: Rodgers demands improvement|
|Malmo v Juventus: Pogba issues rallying cry|
|Blanc demands killer instinct against Ajax|
|Bayer Leverkusen v Monaco: Germans looking to progress|
|Aguero and Jovetic fit to face Bayern|
|Ancelotti reveals contract talks|
|Slutsky targeting Champions League last 16|
|PSV receive Guardado boost|
|Ter Stegen waiting for Barcelona chance|
|Allardyce hopeful Carroll can stay injury-free|
|Arsenal must be ruthless - Arteta|
|Veh resigns from struggling Stuttgart|
|Juventus have ´more quality´ this season, says Pogba|
|Copa America win can restore Brazil´s confidence – Marin|
|Lallana issues rallying cry|
|Fritz confident Bremen can turn things around|
|Bruce backing Hull to stay out of trouble|
|Lambert determined to transform Villa|
|Valdez: Suarez needs ´miracle´ for Copa America|
|Real Madrid heading to Australia for ICC|
|Martinez: Lukaku can become ´best striker in the world´|
|Koeman slams ´crazy´ Christmas fixture list|
|Iniesta, Vermaelen unavailable for Cyprus trip|
|Zenit v Benfica: Pereira, Lima set to return for Portuguese champions|
|Inzaghi sorry for derby stalemate|
|Colombian Primera A Review: Medellin on cusp of final, Santa Fe deny Huila|
|Mancini ´very happy´ with derby draw|
|Peruvian Primera Division Review: Sporting Cristal beaten|
|Liga del Futbol Profesional Boliviano Review: Late Blooming spark sends Oriente second|
|Venezuelan Primera Division Review: Trujillanos stay top, Metropolitanos embarrassed|
|Liga MX Review: Pachuca, Pumas UNAM reach play-offs|
|MLS Review: Wins for Galaxy, Revolution|
|Ecuadorian Primera A Review: Top three fail to score, Olmedo win big|
|Brazilian Serie A Review: Cruzeiro retain title|
|Chilean Primera Division Review: Universidad Chile held, Colo Colo go top|
|Costa Rican Primera Division Review: Cartagines into fourth|
|Uruguayan Primera Division Review: Champions Nacional win again|