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'
|Central Coast Mariners 0 Adelaide United 2: Sanchez nets brace for visitors|
|Can full of praise for Gerrard|
|BATE v Porto: Visitors eye top spot|
|CSKA Moscow v Roma: Italians eye qualification|
|Simeone lauds Atletico display|
|Messi the best ever - Luis Enrique|
|Eredivisie Review: Feyenoord make Peersman pay, Ajax beat Heerenveen|
|La Liga Review: Real Madrid, Barcelona win big|
|Allegri lauds Pogba performance|
|Messi pays homage after record-breaking day|
|Messi the record breaker|
|Serie A Review: Top two both victorious|
|Taylor hints that knee injury not as bad as first feared|
|Ligue 1 Review: Lyon stumble against Bastia|
|Van Gaal critical of United despite win|
|Lazio 0 Juventus 3: Pogba and Tevez star as champions dominate|
|Wenger frustrated by wasteful Arsenal defeat|
|Barcelona 5 Sevilla 1: Messi breaks La Liga record as Barca cruise|
|Garcia delighted with Ljajic display|
|League One Review: Swindon close the gap at the top, Yeovil off the bottom|
|Messi breaks La Liga goal record|
|Ancelotti: Isco a ´perfect´ Modric replacement|
|Bundesliga Review: Wolfsburg slip helps move Bayern well clear|
|Rooney revels in success of counter-attack ploy|
|Tiago: Malaga scalp proves we´re great|
|Arsenal 1 Manchester United 2: Rooney seals Van Gaal´s maiden away win|
|Reus injury angers Klopp|
|Schweinsteiger pays tribute to Bayern fans|
|Pellegrini salutes Toure´s attitude|
|Hughes laments Stoke´s slow start|
|Allardyce frustrated after Everton defeat|
|We deserved more - Redknapp|
|Irvine: Yacob can have no complaints|
|League Two Review: Luton run ended by Burton, Wycombe go top|
|Eibar 0 Real Madrid 4: Relentless Real win again|
|Poyet defends Cattermole over Cambiasso tackle|
|Dyche hails Burnley resolve|
|Martinez hails ´satisfying´ Everton triumph|
|Pearson sure of Leicester survival|
|Gomis earns Monk forgiveness for late miss|
|Pardew full of praise for Sissoko|
|Mourinho lauds ´beautiful´ Chelsea display|
|Scottish Premiership Review: Guidetti strikes again for Celtic, top four all win|
|Championship Review: Bamford denies Mackay´s Wigan, Derby extend lead|
|Aston Villa v Southampton: Koeman eyes international swagger|
|Newcastle United 1 QPR 0: Skipper Sissoko seals fifth straight win|
|Leicester City 0 Sunderland 0: Hosts´ goal drought continues|
|Stoke City 1 Burnley 2: Ings at the double as visitors hold on|
|Atletico Madrid 3 Malaga 1: Unconvincing champions halt in-form visitors|
|Everton 2 West Ham 1: Osman celebrates landmark with winner|
|Manchester City 2 Swansea 1: Toure seals comeback win for champions|
|Chelsea 2 West Brom 0: Yacob sees red as leaders march on|
|Paderborn 2 Borussia Dortmund 2: Reus injury leads to Dortmund capitulation|
|Bayern Munich 4 Hoffenheim 0: Champions move seven clear|
|Bielsa not concerned by Marseille investigation|
|Mancini buoyed by Inter preparations|
|Benitez rules out Liverpool return|
|Hertha prepared for Kalou absence|
|Montella confident despite Fiorentina pressures|
|Injured Alex out of Milan derby|
|Pochettino wants versatility from Dier|
|Van Gaal will not take risks with Falcao fitness|
|A-League Review: Sydney keep pressure on at top|
|K. League Review: Sangju Sangmu all but down, Gyeongnam remain in danger|
|J.League Review: Gamba deny title-chasing Urawa, Ventforet ensure safety|
|Rabiot thrilled with PSG return|
|Sterling wants long Liverpool stay|
|Poyet: I thought Cattermole would ´shoot´ me|
|Simeone: Cerci interest compliments Atletico|
|Blanc: ´I was confident´ of PSG win|
|Silva sidelined for crucial City-Bayern clash|
|Lambert would ´love´ to keep Vlaar, slams agent|
|Championship Review: Brentford up to fourth, Reading lose again|
|Athletic Bilbao 3 Espanyol 1: Aduriz back with a bang|
|Metz 2 Paris Saint-Germain 3: Lavezzi late show sends Blanc´s men top|
|Four clubs face UEFA investigation regarding overdue payables|
|Icardi can reach the top at Inter, says Milito|
|Klopp open to Premier League interest|
|Marseille sweat on fitness of Gignac and Alessandrini|
|Mansfield part company with Cox|
|Pochettino calls for Tottenham unity|
|Alaba targets January return|
|Milan v Inter: Mancini returns for derby showdown|
|Zidane ban overturned|
|Hughes optimistic on Bardsley and Pieters fitness|
|No room for error against Malaga - Simeone|
|Crystal Palace v Liverpool: Six-goal thriller still fresh in the memory|
|Koeman hopeful on Schneiderlin fitness|
|Khedira or Isco will replace Modric - Ancelotti|
|Costa fully fit after hamstring problems|
|Rodgers rules out early Origi arrival|
|Garcia unsure of Castan timeframe|
|Hull City v Tottenham: Dawson returns as Bruce´s men seek response|
|Luis Enrique: No talks over Messi future|
|Schweinsteiger in line for Bayern return|
|Kompany and Lampard fit for City|
|A-League Review: Zadkovich sees red after just 17 seconds in Glory win|
|FA to investigate Whelan comments|
|Mourinho relishing busy schedule|
|Allegri reveals Lazio talks|
|Caen president steps aside following arrest|
|Moyes sees Everton similarities at Sociedad|
|Whelan not racist - Bruce|
|Balotelli: The goals will come at Liverpool|
|Torres wants to be Milan top scorer|
|Milito backs Martino to lead Argentina to success|
|Gonalons signs new Lyon contract|
|Spurs need to give Pochettino time - Dawson|
|Walcott out of United clash, Welbeck a doubt|
|Poyet targeting cover for Van Aanholt|
|Messi happy at Barcelona - Bartomeu|
|Pardew plays down Perez-Shearer comparisons|
|Werder Bremen suffer Di Santo blow ahead of derby|
|Everton will not rush Stones - Martinez|
|Monk: Swansea will not recall Michu|
|Colombian Primera A Review: Santa Fe, Medellin still perfect in semis|
|Brazilian Serie A Review: Cruzeiro rally to beat Gremio|
|Lallana: ´I´ve got friends´ at Southampton|
|Boca Juniors 0 River Plate 0: Honours even in Superclasico|
|Costa Rican Primera Division Review: Alonso scores 10th goal in Alajuelense win|
|Guarani 3 Cerro Porteno 4: Late Ortigoza goal lifts Astrada´s men to summit|
|Defensa y Justicia 1 Newell´s Old Boys 0: Pellegrino saves late penalty|