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'
|Benzema and Morata can play together - Zidane|
|Hummels plays down injury fears|
|Las Palmas 2 Real Madrid 2: Zidane´s men held again|
|Stones benefited from Moyes´ Everton exit, says Duffy|
|Allegri unconcerned by scrappy win|
|Montella demands Milan improvement|
|Ancelotti praises Thiago after Hamburg victory|
|Conte demands better attitude from Chelsea|
|Wenger hails stylish Arsenal display|
|Moreno the unlikely subject of Klopp´s praise|
|Walcott: We wanted it more than Chelsea|
|Phelan has ´no qualms´ over another handball red card|
|Arsenal 3 Chelsea 0: Sanchez, Walcott and Ozil pile on misery for Conte|
|That was how football should be - Klopp on Hull thrashing|
|Luis Enrique plans to keep Sergi Roberto on his toes|
|Karanka draws hope from Middlesbrough´s second half|
|Stoke is stitched into my body – Pulis|
|Palermo 0 Juventus 1: Own goal helps champions stay top|
|Hughes laments two ´stolen´ points|
|Wilshere can be a brilliant player for Bournemouth, says Howe|
|Defoe rues Sunderland collapse against Palace|
|Tottenham must be more clinical - Pochettino|
|Everton were second best, says Koeman|
|Benteke: I knew a chance was coming|
|Ranieri wants answers from Leicester players after Old Trafford thrashing|
|Board can call me if they want to talk - Guidolin|
|Sterling hails Guardiola´s impact|
|Sergi Roberto revelling in new role|
|Guardiola wants Aguero improvement despite scoring streak|
|Mourinho demands more from star man Pogba|
|Sporting Gijon 0 Barcelona 5: No Messi, no problem for ruthless champions|
|Stoke City 1 West Brom 1: Rondon snatches point as Pulis reaches 1000 games|
|Sunderland 2 Crystal Palace 3: Benteke´s late header stuns Black Cats|
|Swansea City 1 Manchester City 3: Aguero at the double for Guardiola´s perfect 10|
|Bournemouth 1 Everton 0: Stanislas wonder strike ends Koeman´s unbeaten start|
|Liverpool 5 Hull City 1: Coutinho stunner caps easy win|
|Middlesbrough 1 Tottenham 2: Son shines for Spurs|
|Hamburg 0 Bayern Munich 1: Late Kimmich goal maintains Bayern´s perfect start|
|Bayern facing defensive headache after Hummels limps off at Hamburg|
|Pogba and Mata delighted by United response|
|Vardy and Mahrez were rested for Porto, Ranieri admits|
|Mourinho completely trusts dropped Rooney|
|I beat Usain Bolt in a race - Bolasie|
|Juventus still Scudetto favourites - De Boer|
|Manchester United 4 Leicester City 1: Rooney watches on as Pogba inspires Red Devils demolition|
|Robben and Ribery are like Messi, claims Helmer|
|Pochettino hints at Vertonghen renewal|
|Robben´s style makes him an injury risk - Bayern fitness coach|
|Liverpool refuse to comment on Sakho´s social media outburst|
|Rooney dropped for Leicester City clash|
|Messi injury doesn´t matter to Barcelona - Abelardo|
|Thiago Silva worried by PSG form|
|Mourinho describes Wenger relationship as ´civilised´|
|Milito: Inter are no one-man team|
|Bilic delays naming daughter due to West Ham worries|
|Fernandinho hails ´intelligent´ De Bruyne|
|Matuidi: This season toughest for PSG|
|New York City 4 Chicago Fire 1: Villa nets twice in win|
|Pjaca not Morata - Allegri|
|Guardiola keen for Kolarov extension|
|England criticism changed Rooney - Mourinho|
|Gotze detractors don´t surprise Tuchel|
|Wenger laments missing out on Costa|
|Emery deflects blame from PSG players after Toulouse defeat|
|Guidolin: It´s not possible to beat Manchester City if you don´t play well|
|Mourinho prepared to bench Rooney|
|Fitness fears over Aubameyang with Real Madrid looming|
|Balotelli must remain serious, says Favre|
|Conte: Guardiola only better than me because he has it easy|
|No need for Aguero to calm down - Guardiola|
|Toulouse 2 Paris Saint-Germain 0: Aurier sees red as Emery´s side slip to surprise defeat|
|Borussia Dortmund 3 Freiburg 1: Aubameyang marks landmark game with goal|
|Argentina apologise for Bauza´s Barcelona criticism over Messi|
|Young players ´the spirit´ of Manchester United - Ferguson|
|Lack of Manchester United game-time ´frustrating´ for Rashford|
|Mazzarri rues ´bad injury´ for Janmaat|
|Sampaoli slams Messi treatment|
|Gray handed four-match ban for abusive posts|
|Valencia captain Parejo: I´ve been called a dog in the street|
|Leicester fairytale isn´t Ranieri´s best achievement|
|Former Parma chiefs get five-year bans from football|
|Three Burnley players sign new contracts|
|No complaints over Vidal post for Luis Enrique|
|Manchester City have no case to answer in Garre transfer|
|Angry Moyes slams Van Aanholt over shisha pipe photos|
|Van Basten appointed to FIFA role|
|Albiol signs new Napoli deal|
|Barcelona court re-opens Neymar transfer case|
|Barcelona want the best for Messi - Luis Enrique|
|Mourinho grudgingly helps to ´feed the Einsteins´|
|Mourinho defends embattled Rooney|
|Injured Martial to miss Leicester clash|
|Pochettino backs Janssen to fill Kane void|
|Conte admires Wenger´s ´fantastic´ Arsenal career|
|City confirm Kompany´s groin injury - no date for return|
|Allegri considers benching Dybala|
|´Benny V´ nets Tottenham deal|
|Zidane concern over Casemiro and Marcelo absences|
|Pardew backs Townsend for England recall|
|Terry ruled out of Arsenal clash|
|Kane requires second scan - Pochettino|
|Robben must settle for bench role, says Ancelotti|
|Zidane expects Barca to be weaker without Messi|
|Montero hopes to peak after signing new Swansea deal|
|Matuidi has ´no regrets´ over PSG stay|
|O´Neill, Keane sign new Republic of Ireland deals|
|Guardiola: My tactics nothing to do with Clichy goal|
|Real Madrid confirm Marcelo calf strain|
|Phelan no closer to learning Hull future|
|Italy legend Rossi hails Totti as ´the strongest in the last 20 years´|
|Adebayor dismisses whiskey and cigarette story|
|Masuaku injury blow for Hammers|
|Bauza: I don´t want a Messi war with Barcelona|
|Ramsey sidelined until after internationals|
|Walker signs Spurs extension|
|Hughes quashes Bony rift talk|
|Wenger brushes off Mourinho book claims|
|Mourinho wanted to ´break Wenger´s face´, new book alleges|
|Jones appointed as Jets coach|
|Barca the only club for Messi - Fabregas|
|Dyer on track for November return|
|Koeman rules out Everton future for Niasse|
|´Champion´ Rooney not ahead of my players - Ranieri|
|Klopp hints at Karius start|
|I never planned to leave Chelsea - Fabregas|
|Injured Messi thanks Gladbach for get well message|
|Wenger: Demanding society makes 20-year reign hard to repeat|