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'
|Ozil blow for Arsenal|
|Simeone salutes second-half display|
|Championship Wrap: Reading stun Leeds, Blackpool end barren streak|
|UEFA Champions League: Bayern Munich 1 Arsenal 1 (3-1 agg)|
|UEFA Champions League: Atletico Madrid 4 Milan 1 (5-1 agg)|
|AFC Champions League Wrap: Mariners overcome Sanfrecce, Seoul held|
|Cousillas: City can stun Barca|
|UEFA Europa League Preview: Sevilla v Real Betis|
|Charlton appoint Riga|
|New deal for Heimeroth|
|FA reject Walters appeal|
|Mertens tipped for starring role|
|Aluko getting back to his best|
|UEFA Europa League Preview: Lyon v Viktoria Plzen|
|Grosso takes control of Juve´s youth team|
|Blanc: PSG still playing Euro catch-up|
|Kaboul ban overturned|
|Pardew hit with seven-game ban|
|McCann blow for Wigan|
|Cabaye has no regrets over PSG move|
|Martinez taking no risks with Jagielka|
|I turned down Juve in 2012 - Robben|
|Lambert wants more from Tonev|
|Wanchope: City can beat Barcelona|
|Wanchope: City can beat Barcelona|
|UEFA Europa League Preview: Tottenham v Benfica|
|Remy hungry for World Cup place|
|Martino: We have not been consistent|
|UEFA Europa League Preview: Ludogorets v Valencia|
|Inter unlikely to make moves for Dzeko, Torres|
|American firm acquire United shares|
|Callejon predicting strong Napoli era|
|UEFA Europa League Preview: Juventus v Fiorentina|
|Eto´o hints at Chelsea stay|
|Hughton pleased with Bassong performances|
|Barca treble still on the cards - Alexis|
|Monk: Michu close to Swansea return|
|Solskjaer hoping to inspire Cardiff strikers|
|Toprak: Restoring pride is important|
|UEFA Europa League Preview: AZ v Anzhi|
|Charlton sack Powell after FA Cup exit|
|UEFA Europa League Preview: Basel v Red Bull Salzburg|
|Move on from Diouf blow - Dufner|
|Fonte backs Rodriguez for World Cup|
|Stoke fear extended Huth absence|
|Anichebe calls for West Brom spirit|
|Courtois rubbishes Real rumours|
|Zenit thank sacked Spalletti|
|Manchester City positive ahead of Barcelona trip|
|Martinez hopes for Deulofeu stay|
|Kroos undecided on future|
|CONCACAF Champions League: Alajuelense 0 Arabe Unido 0|
|Argentina Primera Division Wrap: Velez Sarsfield close in on top|
|Paraguay Division Profesional Wrap: Nacional Asuncion into second|
|De Boer planning Ajax stay|
|UEFA Europa League Preview: Porto v Napoli|
|La Liga Wrap: Strugglers Rayo, Malaga pick up valuable away wins|
|Primeira Liga: Maritimo 2 Vitoria Guimaraes 1|
|UEFA Champions League Preview: Paris Saint-Germain v Bayer Leverkusen|
|Turkish Super Lig Wrap: Fenerbahce, Trabzonspor clash abandoned|
|Seedorf upbeat over Milan chances|
|Wenger outlines Arsenal belief|
|Russian Premier League Wrap: Lokomotiv go top, Anzhi post first win|
|UEFA Champions League Preview: Barcelona v Manchester City|
|Castro calls for fans´ support|
|Survival fight wide open, says Mutch|
|Bruce calls for league focus|
|Hoeness admits tax fraud|
|Shea returns to Stoke|
|Van den Brom leaves Anderlecht|
|Stevens ready for Stuttgart challenge|
|Liverpool clash excites Carrick|
|Villa eyeing top-half finish, claims Bertrand|
|Silva happy to remain in Paris|
|Gosling admits FA charge|
|Getafe confirm Contra as new coach|
|Reina considers future America move|
|Giroud: We must believe against Bayern|
|Wolves lodge complaints over alleged racist abuse|
|Gladbach sign Sommer to replace Ter Stegen|
|Getafe part company with Garcia|
|Strootman World Cup hopes in serious doubt|
|Clyne backs Palace to survive|
|Liverpool striving for perfection, says Allen|
|Simeone expecting tough Milan test|
|De Guzman confident ahead of West Brom clash|
|Guardiola wary of Arsenal threat|
|Mel speculation is ´crazy´, says Foster|
|Taarabt not fearing Atletico|
|Mourinho expects to lose Torres for ´couple of weeks´|
|Heitinga: Survival a trophy for Fulham|
|Carvajal plays down injury fears|
|Oxlade-Chamberlain eyes Arsenal cup success|
|Benitez praises Reina, Higuain|
|Shaw focusing on Southampton not England|
|Bayern must be aggressive, says Guardiola|
|Venezuela Primera Division Wrap: Zamora increase advantage with Tachira scalp|
|Uruguay Primera Division Wrap: Nacional capitalise on Fenix fumble|
|Liga MX Wrap: Tigres UANL end Cruz Azul unbeaten run|
|Ecuador Primera A Wrap: Independiente, Loja slip up to send Emelec top|
|Costa Rica Primera Division Wrap: Wins for Herediano, Deportivo Saprissa|
|Liga del Futbol Profesional Boliviano Wrap: Club Universitario open gap|
|Chile Primera Division Wrap: Colo Colo cruise past Union La Calera|
|Benitez: 11th-hour injuries could not halt Napoli|
|La Liga Wrap: Real capitalise on Barca slip-up, Valencia and Bilbao draw|
|Primeira Liga Wrap: Benfica extend lead, Porto close in on Sporting|
|Garcia frustrated by toothless Roma|