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'
|Grant believes Ghana getting better all the time|
|Roma v Fiorentina: Determined Garcia eyes Coppa respite|
|Ligue 1 Review: Lyon stalemate ends goal-shy weekend in France|
|La Liga Review: Barca and Sevilla edge thrillers|
|Serie A Review: Gabbiadini opens Napoli account on dark day for Inter|
|Barcelona 3 Villarreal 2: Messi´s fine winner settles it|
|Milan 3 Parma 1: Menez makes the difference for Milan|
|Ivory Coast 3 Algeria 1: Bony double maintains Elephants´ progress|
|Turkish Super Lig Review: Bizarre Ba winner benefits Besiktas, Emenike ends goal drought|
|Koeman confident of deadline-day addition|
|Freedman named new Forest boss|
|League One Review: Bristol City return to the summit|
|Bundesliga Review: Augsburg win battle of European hopefuls|
|Monk hails tactically astute Swansea|
|Pearce sacked by Forest, offered alternative role|
|Roma complete Ibarbo deal|
|Eredivisie Review: Durdevic dents Ajax title defence|
|Koeman feels defeat was harsh|
|Wanchope takes permanent control of Costa Rica|
|Wenger: ´Arsenal not title contenders´|
|No complaints for Allegri over Juve draw|
|Ghana 3 Guinea 0: Atsu scores wondergoal as Black Stars ease into last four|
|Southampton 0 Swansea City 1: Shelvey stuns Saints|
|Lambert laments Villa´s ´acceptance´ to concede|
|Sandro nearing QPR return|
|Lille v Paris Saint-Germain: Origi confident of cup upset|
|Walcott revels in ´one-sided´ triumph|
|Bragging rights for Celtic after Old Firm win|
|Udinese 0 Juventus 0: Leaders stutter to goalless stalemate|
|Arsenal 5 Aston Villa 0: Ozil and Walcott star on their returns|
|Mancini plays down spat between Inter´s fans and players|
|Tommy Smith discharged from hospital|
|Bayern Munich v Schalke: Bayern aim to get back on track|
|Schurrle´s Wolfsburg deal not done yet|
|Kruse facing lengthy lay-off|
|Traore determined to make immediate impression|
|Sassuolo 3 Inter 1: Hosts inflict further misery on Mancini´s men|
|Iturbe adds to Roma´s injury woes|
|Palace secure Souare signing|
|Walcott confident Gabriel can handle physicality|
|Januzaj glad to get game time|
|Pellegrini positive City can close the gap|
|Martinez hopes win can be a springboard|
|Equatorial Guinea win miraculous - Becker|
|Vertonghen excited by Tottenham´s form|
|Garcia lauds Roma´s resilience|
|Sinclair wants to let his football do the talking|
|Luis Enrique aiming to halt Villarreal progress|
|Costa: ´I’m no angel´|
|La Liga Review: Real, Atletico cruise to wins|
|Primeira Liga Review: Leaders Benfica bounce back with win, Vitoria held|
|Serie A Review: Roma drop more points, Genoa and Fiorentina draw|
|Ligue 1 Review: Marseille return to second, Montpellier held|
|Eredivisie Review: PSV go nine points clear, Twente steal last-gasp win|
|Tunisia 1 Equatorial Guinea 2 (aet): Balboa brace sends hosts through|
|Klopp encouraged by Leverkusen stalemate, as Dortmund hit bottom|
|No-show again from Mourinho after City draw|
|Pellegrini suggests different styles shown by City and Chelsea|
|Le Roy dejected following Congo´s Africa Cup of Nations exit|
|Bundesliga Review: Dortmund bottom, Paderborn thumped|
|Simeone marvels at Griezmann improvement|
|Emulating Messi will be tough for Neymar - Luis Enrique|
|Ibenge revels in DR Congo fightback|
|Reception delights Lampard on Stamford Bridge homecoming|
|Milan to downsize from San Siro|
|League Two Review: Luton claim Cambridge double, Shrewsbury stay top|
|Matic feels the effects of Liverpool match in City draw|
|West Brom lacked tempo, says Pulis|
|Pochettino remains grounded|
|Lukaku can inspire Everton - Martinez|
|Bayer Leverkusen 0 Borussia Dortmund 0: Frustrating draw leaves BVB bottom|
|Chelsea 1 Manchester City 1: Advantage Mourinho as top two share the spoils|
|Pardew laments lack of guile in Everton defeat|
|Poyet hoping to build on Burnley victory|
|Ancelotti lauds ´fantastic´ Benzema|
|Dyche backs Ings to bounce back after ´off-day´|
|Pearson brushes off ´bonus game´ defeat|
|Eibar 1 Atletico Madrid 3: Griezmann and Mandzukic inspire champions´ response|
|Rodgers delighted with Sturridge´s goalscoring return|
|QPR not as bad as scoreline suggests - Redknapp|
|League One Review: Bradford pushed hard as MK Dons go top|
|United killed the game too much - Van Gaal|
|Hughes hails hat-trick hero Walters|
|Congo 2 Democratic Republic of Congo 4: Mbokani strikes twice in remarkable fightback|
|Talks break down over Fletcher´s West Ham switch|
|Scottish Premiership Review: Highland derby all square|
|Championship Review: Derby and Boro stay in touch with leaders|
|Good enough for Real Madrid or Barcelona? - Luongo is Socceroos´ next superstar|
|Bruce backs Elmohamady after ´horrible afternoon´|
|Crystal Palace 0 Everton 1: Lukaku ends Palace run|
|Stoke City 3 QPR 1: Walters hat-trick seals win for hosts|
|Liverpool 2 West Ham 0: Sturridge on target in long-awaited return|
|West Brom 0 Tottenham 3: Kane at the double to down Albion|
|Manchester United 3 Leicester City 1: Van Gaal´s hosts avenge humiliating defeat|
|Real Madrid 4 Real Sociedad 1: Benzema stars in Ronaldo´s absence|
|Sunderland 2 Burnley 0: Defoe nets in routine victory|
|Roma snap up Doumbia|
|Huddersfield defender Smith stable after being airlifted to hospital|
|Carver: More to come from Cabella|
|Ivory Coast v Algeria: Renard demands success|
|Match winner Troisi hails Socceroo colleagues|
|Ghana v Guinea: Grant´s men tackle team happy with their lot|
|Australia deserved victory - Ki|
|Inzaghi ready to unleash duo against Parma|
|Cahill: Socceroos triumph to super-charge football in Oz|
|Hull City 0 Newcastle United 3: Carver up and running after routine win|
|Stielike: South Korea still champions|
|Recruitment proving difficult for Mancini|
|Postecoglou targets World Cup impact|
|Allegri dismisses talk of Vidal rift|
|Australia 2 South Korea 1 (aet): Troisi seals Socceroos´ maiden Asian Cup title|
|Ibrahimovic questions PSG fans|
|Azpilicueta anticipating ´weird´ Lampard return|
|Sinclair: Milner praise for Villa made my decision easy|
|Van Gaal fumes at questions on Herrera´s future|
|Cork excited about new challenge|
|Arsenal still gunning for glory - Gibbs|
|Quinteros named Ecuador coach|
|Sturridge eager to prove fitness|
|Blanc: ´We were expecting better´|
|Hecking proud of Wolfsburg|
|Boateng urges Bayern to learn from Wolfsburg thrashing|
|Sporting Braga 1 Moreirense 0: Santos the hero for hosts|
|Cordoba complete triple swoop, Levante bring in two|