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'
|Bender: We lacked ambition|
|McInnes unhappy after ugly bust-up|
|Cambiasso impressed with Leicester mentality|
|Valverde: Champions League is not an excuse|
|Simeone wants improvement in discipline|
|Conte keeping tabs on Pelle|
|Marseille deserved to beat Rennes - Bielsa|
|La Liga Review: Real end slump with rout, Atletico share spoils|
|Hart unsure on City future|
|Primeira Liga Review: Quinta inspires first Penafiel win, Braga claim late draw|
|ES Setif 2 TP Mazembe 1: Late winner gives Algerians the edge|
|Inzaghi upbeat despite defeat|
|Victory not ´revenge´ for Allegri|
|Simeone defends Jimenez|
|Ligue 1 Review: Gignac double takes Marseille top|
|Patience pays off for Tevez and Juventus|
|Eredivisie Review: Vitesse drop points again, Dordrecht salvage late draw|
|Serie A Review: Allegri wins on Milan return, Empoli fight back|
|Milan 0 Juventus 1: Allegri wins on return to San Siro|
|Klopp rues Dortmund display|
|Allardyce lauds ´outstanding´ first-half performance|
|Coton Sport 0 Al Ahly 1: Soliman screamer puts Egyptians in command|
|Newcastle earned friends with comeback draw, claims Pardew|
|Liverpool ´nowhere near the standard´ - Rodgers|
|Atletico Madrid 2 Celta Vigo 2: Nolito penalty frustrates champions|
|Bundesliga Review: Zinnbauer stops Bayern as Paderborn go top|
|Lambert to close training ground after bug|
|Poyet blasts lacklustre Sunderland|
|Goals and wins are coming - Dyche|
|Koeman calm after Southampton move second|
|Bruce bemoans Hull errors|
|West Ham 3 Liverpool 1: Hosts punish sloppy Reds|
|Mainz 2 Borussia Dortmund 0: Klopp suffers miserable return|
|Guardiola: Fixture congestion taking its toll|
|Deportivo thrashing answered critics - Ancelotti|
|League Two Review: Accrington thrill on Coleman return, Bury go top|
|Bony ´distraught´ after dismissal - Monk|
|Pardew praises senior players after Hull draw|
|Wenger: Ozil showed mental strength|
|League One Review: MK Dons hit Crewe for six, Swindon crush Sheffield United|
|Championship Review: Fulham woes continue under Symons|
|Scottish Premiership Wrap: Inverness overhaul Hamilton at the top|
|Hughes credits QPR fans|
|Aston Villa 0 Arsenal 3: Ozil shines as Gunners get back on track|
|Swansea City 0 Southampton 1: Wanyama leaves it late to down 10-man hosts|
|Deportivo La Coruna 2 Real Madrid 8: Ronaldo hat-trick helps end visitors´ Liga slump|
|Newcastle United 2 Hull City 2: Late Cisse brace lifts pressure on Pardew|
|Burnley 0 Sunderland 0: Both sides await first league win|
|Hamburg 0 Bayern Munich 0: Zinnbauer starts Hamburg reign with impressive point|
|Hosts strike gold on day two in Incheon|
|Redknapp hails Kranjcar quality|
|QPR 2 Stoke City 2: Kranjcar spoils Hughes´ Loftus Road return|
|Howard not expecting European hangover|
|J.League Review: Gamba clinch Osaka derby, Tokushima Vortis on the brink|
|Vermaelen ´getting better every day´|
|Rafael: I want to stay at United forever|
|Ulloa determined to maintain strong form|
|Vidic adjusting to Serie A referees|
|Conte: There is room for a professional Balotelli|
|Mourinho wants tougher sanctions for FFP breaches|
|Milan v Juventus: Allegri returns to San Siro|
|Allardyce lauds in-form Downing|
|Real Salt Lake 5 Colorado Rapids 1: Poor visitors lose again|
|Mignolet "aggressive", says Rodgers|
|´Old´ City approaching dangerous position, says Neville|
|Shakhtar´s Donbass Arena hit by shelling|
|Song excited to face hero Gerrard|
|Everything is normal, says Ancelotti|
|Partick Thistle 1 St Mirren 2: Craig´s side off the mark|
|Elche 0 Eibar 2: Hosts´ unbeaten run comes to an end|
|Freiburg 2 Hertha Berlin 2: Ronny strikes twice to deny hosts|
|Bordeaux 2 Evian 1: Hosts back on track against dismal strugglers|
|Willem II 2 NAC Breda 1: Braber leaves it late|
|Simeone: Confidence high at Atleti|
|Arsenal announce increased turnover|
|Paris Saint-Germain v Lyon: Jallet relishing PSG reunion|
|Consortium complete Reading takeover|
|Pearson relishing United test|
|Carlisle look to Curle|
|Tottenham v West Brom: Fully-fit visitors seek to end White Hart Lane hoodoo|
|League Two Preview: Coleman makes Stanley return, Curle in at Carlisle|
|Allegri expects emotional Milan return|
|Everton v Crystal Palace: Martinez expecting tough test|
|Tonev issued notice of complaint|
|Leicester City v Manchester United: Pearson vows to attack resurgent visitors|
|Palermo v Inter: Mazzarri urges visitors to maintain standards|
|Van Gaal plays down Ronaldo rumours|
|Manchester City v Chelsea: Costa and Aguero defy injury in title clash|
|Symons wants Fulham job|
|Bournemouth loan Boruc from Southampton|
|Levante v Barcelona: Visitors happy to continue with rotation|
|Mandzukic out for up to two weeks|
|Attacking threat pleases Martinez|
|League One Preview: Page starts new Vale chapter, Bristol City out to extend run|
|Mourinho admits Real desire|
|Assou-Ekotto banned for Anelka tweet|
|Pellegrini made me a scapegoat - Richards|
|UEFA open proceedings against Partizan|
|Guardiola warns of Hamburg backlash|
|Pellegrini rejects Toure criticism|
|Mourinho confirms Costa will start against City|
|Inzaghi plays down Allegri rift|
|Confident Swansea can beat Southampton - Sigurdsson|
|Jardim not expecting Guingamp to struggle|
|London to host Euro 2020 final|
|We need fans´ support - Coloccini|
|Eckert sets November target for corruption verdict|
|Warnock taking no risks over Chamakh|
|Redknapp bemoans Taarabt fitness issues|
|Bruce out to capitalise on Newcastle problems|
|Wenger hits out at Ozil critics|
|Rodgers: Sturridge could be fit for Merseyside derby|
|Juve move has given me confidence - Morata|
|We have more to come - Naismith|
|Pardew wants an end to ´mass hysteria´|
|Lille did not do enough, says Girard|
|Championship Preview: Fulham, Cardiff out to end weeks of turmoil|
|Pulis keen to manage again, speaks of Palace respect|
|Montella lauds Fiorentina´s spirit|
|CONCACAF Champions League Review: Sporting Kansas City, Herediano win well|
|Van Gaal will get United back into Europe - Robben|
|Emery: We will rely on our entire squad|
|Copa Sudamericana Review: Boca march into last 16, Emelec on track|
|Delph, Vlaar on Lambert hit list|
|Brazilian Serie A Review: Cruzeiro bounce back, Sao Paulo stunned|
|Copa Argentina Review: San Lorenzo, Racing Club eliminated|
|We cannot afford to lose - Silva|
|Murphy interested in Fulham job|
|Hecking furious after heavy loss|
|Dyke denies gift involvement|
|Napoli response pleases Benitez|
|Brandao handed six-month ban|
|Arena fined for MLS comments|
|Arena fined for MLS comments|
|Martinez enjoys ´special evening´|