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'
|Samaras attracting Lazio interest|
|Premier League Preview: Liverpool v Cardiff City|
|Rodgers backs Mackay at Cardiff|
|Foster back fit and raring for West Brom recall|
|De Boer agent denies Tottenham contact|
|Premier League Preview: Crystal Palace v Newcastle United|
|Hungary appoint Pinter as new coach|
|Iniesta signs new Barca contract|
|Rodgers coy over Suarez talks|
|Jagielka hopes for fresh faces at Everton to help top-four push|
|A-League: Central Coast 1 Wellington 0|
|Spain end top of FIFA rankings for sixth year running|
|Allardyce disappointed to draw Manchester City|
|Pascoe hails ´unbelievable´ Suarez|
|Vorm knee surgery brought forward|
|Blanc hails Cavani brace|
|Michu wants Aspas to join Swansea City|
|Hoeness plays down Bayern treble suggestions|
|Dzeko confident he can fill Aguero void|
|Moyes: No loan offers for Zaha|
|Kiessling calls for Leverkusen response|
|Matuidi: Cavani on par with Ibrahimovic|
|Yeboah set to join Borussia Monchengladbach|
|Rooney a ´chance´ to face West Ham|
|FIFA Club World Cup Preview: Bayern Munich v Raja Casablanca|
|Benzarti praises ´extremely talented´ Raja Casablanca|
|Ranieri unsure over Falcao return|
|Coupe de La Ligue Wrap: Cavani leads PSG to dramatic win|
|Copa del Rey Wrap: Real Madrid through as Sevilla crash out|
|Tottenham job appeals to Sherwood|
|Sherwood gutted after defeat|
|Hughes: United worthy winners|
|Moyes pleased to see United weather storm|
|Allardyce hails West Ham fight|
|Coppa Italia: Juventus 3 Avellino 0|
|Manchester clubs kept apart in League Cup semi draw|
|League Cup: Tottenham 1 West Ham 2|
|League Cup: Stoke City 0 Manchester United 2|
|FIFA Club World Cup: Raja Casablanca 3 Atletico Mineiro 1|
|Sheffield Wednesday, Wigan abandoned due to heavy rain|
|United face anxious Rooney wait over injury|
|Messi making good progress|
|Ramos ban overturned|
|Osvaldo charged by FA|
|In-demand Ince offered new Blackpool deal|
|Molde confirm Solskjaer approaches|
|Kramer keen to continue home record|
|Rodgers: Henderson has potential to get even better|
|Ruiz on Anderlecht´s radar|
|Swansea, Hull fined by FA over player behaviour|
|Leeds keen on re-signing Gradel|
|Leverkusen announce Ryu deal|
|Ribery named Bundesliga Player of the Year|
|Moyes: No Zaha interest|
|Barcelona, Real Madrid in European Commission investigation|
|Basel: No Tottenham approach for Yakin|
|Chelsea set for Guarin bid, agent claims|
|Lewandowski has Dortmund goal concerns|
|Pogba, Pirlo will not sign before Christmas, says Marotta|
|Guardiola convinced to join Bayern after ´meat´ and greet|
|Martinez: Everton seen as a ´perfect´ loan destination|
|Anderlecht ´perfect´ for Defour, says Van Holsbeeck|
|Watford appoint Sannino|
|Sakho feels ´lucky´ to play with Suarez|
|Lippi: Too many teams competing in Club World Cup|
|Moyes ´told Welbeck to learn from Rooney´|
|I would kill myself over match-fixing, says Gattuso|
|Hughes dismisses calls for Januzaj protection|
|Aguero ´could miss up to two months´|
|Guardiola lauds Ballon d´Or nominee Ribery|
|Liverpool open Suarez contract talks|
|Copa del Rey Wrap: Barcelona, Levante cruise through|
|A-League Preview: Derby date beckons for winless Heart|
|Pearson upbeat despite Leicester defeat|
|Poyet urges Sunderland to build on Chelsea win|
|Mourinho rues missed chances|
|Pellegrini proud of professional Manchester City|
|Bayern on another level, says Beckenbauer|
|League Cup: Sunderland 2 Chelsea 1 (aet)|
|League Cup: Leicester City 1 Manchester City 3|
|FIFA Club World Cup: Guangzhou Evergrande 0 Bayern Munich 3|
|Zenit and Olympiacos punished with partial stadium closures|
|Sherwood wants positive reaction|
|Ancelotti expected La Liga title fight|
|Moffat charged over betting allegations|
|Wilson appointed at Barnsley|
|Wilshere charged by FA|
|Gattuso determined to clear his name|
|Moyes slams sacking culture|
|Mackay refuses to resign despite owner criticism|
|Redknapp reluctant to take Taarabt back|
|Amat pleased with development|
|Hughes optimistic of League Cup progression|
|Perez: No bids for Di Maria|
|FIFPro demand transfer system overhaul|
|Edwards sacked by Perth Glory|
|Allardyce not fearing the sack|
|Howson commits to Norwich|
|Tevez resigned to Argentina snub|
|SFA uphold Butcher´s one-match ban|
|Zapata rules out United switch|
|European Ombudsman calls for action on Spanish tax complaint|
|Albrighton eyes new Villa deal|
|Bale to miss Copa del Rey clash with ´small injury´|
|Pardew will bide his time in January|
|Kreuzer confident of Hamburg improvement|
|Van der Sar: Moyes can turn United around|
|Maradona backs Ronaldo for Ballon d´Or|
|Tottenham warned off Klinsmann|
|Costa Rica Primera Division: Alajuelense 0 Herediano 0|
|Lyon wary of Chornomorets Odesa|
|Guardiola talks up Lippi, Evergrande|
|Chile Primera Division Wrap: Chile, Deportes Iquique reach final|
|Garcia laments defensive mistakes|
|La Liga: Real Valladolid 3 Celta Vigo 0|