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'
|Gala: No extra payment for Grosskreutz|
|Increase Bundesliga´s TV rights or be left behind - Rummenigge|
|Kane: I´m no flash in the pan|
|Perez: United showed inexperience in De Gea saga|
|Milligan: Socceroos wary of Tajikistan|
|Conte wants more players like Pelle|
|OFC World Cup Qualifying Review: Samoa to meet Tahiti in next round|
|Krychowiak stayed at Sevilla because of Emery|
|I never considered Bayern exit - Gotze|
|Balotelli ´not in good condition´, Milan must improve - Mihajlovic|
|Robben slams ´stupid´ Martins Indi|
|Robben laments injury blow|
|Euro 2016 Qualifiers Review: Bale edges Wales closer, Iceland dent Netherlands´ qualification hopes|
|De Bruyne relieved to ´boss´ Bosnia-Herzegovina|
|Blind furious after nightmare debut|
|Coleman sees shades of Charles in Bale winner|
|Conte only concerned about Italy winning|
|Mauritania v South Africa: SAFA to investigate Masilela no-show|
|AFC World Cup Qualifying Review: Qatar hit 15 in Bhutan rout|
|Belgium 3 Bosnia-Herzegovina 1: De Bruyne shines in straightforward victory|
|Cyprus 0 Wales 1: Bale winner takes Wales one step closer|
|Netherlands 0 Iceland 1: Sigurdsson winner caps difficult first game for Blind|
|Italy 1 Malta 0: Pelle spares wasteful Azzurri|
|Balotelli stars in Milan friendly win|
|Bhutan thrashed 15-0 by Qatar in qualifier|
|Rwanda v Ghana: Gyan doubt gives hosts hope|
|Tanzania v Nigeria: Enyeama out of AFCON qualifier|
|Valdes and Berahino included in Premier League squads|
|Costa Rica v Brazil: Dunga´s men return after Copa disappointment|
|Spain v Slovakia: Azpilicueta eyeing important revenge|
|Adebayor left out of Tottenham squad list for league and Europe|
|San Marino v England: Place in history books beckons for Rooney|
|Germany can cope with Reus absence - Low|
|Bayern offer aid to refugees in ´training camp´|
|BREAKING NEWS: Welbeck ruled out for months after knee surgery|
|South Korea 8 Laos 0: Son leads the way in rout|
|Australia 5 Bangladesh 0: Socceroos surge to emphatic win|
|Japan 3 Cambodia 0: Hosts pick up first qualifying win|
|Rudiger aiming to nail down Euros spot after Roma move|
|Melo happy to join Inter at last|
|Hernandez thanks Ferguson after United departure|
|Chung: AFC has compromised FIFA election|
|Wales the new best of British|
|Reus out of Germany qualifiers|
|Chile v Paraguay: Vidal missing for Copa champions|
|Ghedin: Anything is possible for Malta|
|Pogba will be worth €100m - Marotta|
|England can win Euro 2016 - Hodgson tells players|
|Conte unsure over Balotelli future|
|Portugal - France Preview: Deschamps aiming to correct mistakes|
|Martial never the same again - Mangala|
|Copa del Rey Review: Racing fall at the first|
|Shelvey dismisses talk of England snub|
|Galatasaray unable to play Grosskreutz|
|Faroe Islands v Northern Ireland: O´Neill preaches patience ahead of Euro double-header|
|Levy slams ´wholly inappropriate´ West Brom after Berahino chase|
|Panama v Uruguay: Visitors without Suarez and Cavani|
|Captaincy won´t change me - Robben|
|Liverpool sign Brazilian youngster Allan|
|PFA expects swift Berahino resolution|
|Argentina v Bolivia: Mascherano backs ´very special´ Messi|
|´I do not know if I´m worth €80million´ - Martial shocked at price-tag|
|Afellay suspension reduced|
|Noble red card rescinded|
|Portugal v France: Deschamps aiming to correct mistakes|
|Bahebeck given the all clear|
|Germany v Poland: Muller out to settle the score|
|Gibraltar v Republic of Ireland: Keane counting on McCarthy and Walters|
|Georgia v Scotland: Tbilisi trip has must-win feel for Robertson|
|Juve still the team to beat - Hernanes|
|De Gea will remain professional, says team-mate Mata|
|Berahino given extra time off following strike tweet|
|´No excuses´ as Costa seeks to kick-start season|
|I´m not like Messi or Ronaldo – Hazard|
|United States v Peru: Klinsmann out to ´prove a point´|
|Martinez unsure when Cleverley will return|
|France set for Russia friendly ahead of Euros|
|Former Manchester United forward Berbatov joins PAOK|
|De Gea must play to earn Euro 2016 spot – Del Bosque|
|Cahill thrilled to lead Socceroos|
|Wijnaldum urges patience with new-look Newcastle|
|Reid praises Stones´ professionalism|
|Mexico v Trinidad and Tobago: Islanders hoping to build on Gold Cup display|
|Choosing Brazil over Spain was easiest decision, says Rafinha|
|Galliani hails ´changed´ Balotelli|
|OFC World Cup Qualifying Review: American Samoa notch second competitive win|
|Canada v Belize: Hosts look to stay calm|
|Carragher surprised by ´big´ Martial price|
|No pressure on Rodgers - Rush|
|No Benzema, no Cavani - Arsenal ´can´t compete´ says Sol Campbell|
|FFA muzzle Postecoglou after pay dispute criticism|
|Celtic complete Simunovic signing|
|Joaquin: I´m as happy as a little boy|
|Navas given time off by Costa Rica|
|Martial unfazed by prospect of United pressure|
|Ramos urges De Gea to overcome transfer woe|