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'
|Scolari extends contract with Guangzhou Evergrande|
|Guardiola eliminated City doubts - De Bruyne|
|Klopp lauds Ings for ´perfect´ response|
|Wenger: Perez needs to take chance|
|Boys to men: Mourinho challenges United players|
|Kompany committed to bargain with City medics|
|´Insipid´ Hazard overlooked for Ballon d´Or|
|Griezmann named best in LaLiga as big three share awards|
|Hargreaves puzzled by Mkhitaryan omission|
|Ballon d´Or breakdown: LaLiga, Premier League dominant amid French renaissance|
|Struggling Inter hit with Medel ban|
|Messi, Ronaldo and the full 30-man Ballon d´Or shortlist|
|Suarez, Vardy complete Ballon d´Or nominations|
|Neymar joins fellow heavyweights on Ballon d´Or shortlist|
|Neymar joins fellow heavyweights on Ballon d´Or shortlist|
|Messi, Modric nominated for Ballon d´Or|
|Liverpool strong out of Europe, says Pochettino|
|Giroud to make Arsenal return - Wenger|
|Giggs hits out at ´laughing´ United players following Chelsea battering|
|Schmidt given two-match ban after Nagelsmann slur|
|Wenger: 82 points could win the Premier League|
|´Chelsea won´t sell to Barca or Bayern´ - Gladbach optimistic over Christensen|
|Wenger contract not a priority for Arsenal|
|Wenger says sorry for making Arsenal fans suffer|
|Sissoko charged by FA for Arter elbow|
|Liverpool not even close to 100 per cent - Klopp|
|Messi, Neymar and Suarez given three-day break by Barcelona|
|´Arsenal can compete on wages´ - Gazidis quizzed on Ozil and Sanchez|
|Ibrahimovic and Lewandowski nominated for Ballon d´Or|
|What You Might Have Missed: Benfica record, a Plea from Balo and Reto Ziegler´s better than Ronaldo|
|Montella warns AC Milan stars: Don´t let first-place prize trap you|
|Zorc ´tired of b*******´ on Tuchel, Aubameyang|
|West Ham defenders must outsmart Costa, says Ogbonna|
|We did not offer ¥1billion for Nagatomo, insist Jiangsu|
|De Bruyne, Griezmann join Ballon d´Or shortlist|
|Ronaldo isn´t anxious, insists Marcelo|
|Renato Sanches wins Golden Boy award for 2016|
|´I don´t know if I will be here on Wednesday´ – De Boer unsure on future amid sack speculation|
|Ronaldo, Bale among first nominees for Ballon d´Or|
|Wenger: Arsenal showed progress with Middlesbrough draw|
|Thiago Silva wants to extend PSG stay|
|Inaki Williams dismisses Liverpool rumours|
|Coutinho does ´amazing things´ - Matip|
|Wilshere happy to be out of Arsenal comfort zone at Bournemouth|
|Lloris is Premier League´s best goalkeeper - Dier|
|Revolution striker Kamara given yellow card for twerking|
|Klopp rubbishes ´defensive problem´ claims|
|Madrid tracking Dortmund boss Tuchel, claims Watzke|
|MLS Review: Dallas win Supporters´ Shield, Sporting KC sneak into play-offs|
|Ronaldo has ´addiction for goals´ - Morata|
|Emery refuses to point the finger at Di Maria after Marseille draw|
|Zidane vows to play Morata more often|
|Garcia hails Marseille team spirit after PSG draw|
|Neville urges calm at United after Mourinho´s horror Chelsea reunion|
|Zamalek 1 Mamelodi Sundowns 0 (1-3 agg): South Africans clinch first CAF Champions League title|
|Paris Saint-Germain 0 Marseille 0: Champions thwarted in Garcia´s first game|
|Real Madrid 2 Athletic Bilbao 1: Morata to the rescue|
|Bailly sustains knee ligament injury|
|Simeone frustrated by Atletico´s finishing|
|Conte encouraged crowd as Chelsea deserved it|
|Chelsea thrashing painful for Mata and United|
|Chelsea ´dominant from first minute to last´ - Cahill|
|Mourinho blames ´incredible defensive mistakes´ for United loss|
|N´Zonzi cools talk of title challenge|
|Chelsea 4 Manchester United 0: Rampant Blues humble returning Mourinho|
|De Boer: Inter ´played with fear´ in first half|
|Juventus confirm Dybala thigh injury|
|Guardiola vows to fix Manchester City concerns|
|Sevilla 1 Atletico Madrid 0: N´Zonzi strikes to end Simeone´s unbeaten start|
|Bayern set to open Robben, Ribery renewal talks|
|Puel satisfied with City draw|
|Rangers 0 Celtic 1: Late Dembele strike settles Old Firm semi-final|
|Croatian player teased for being ´too smart for football´|
|Redmond expected City to give up chances|
|Feyenoord 1 Ajax 1: Kuyt cancels out Dolberg opener|
|Atalanta 2 Inter 1: Late penalty heaps pressure on De Boer|
|Voller defends Schmidt over touchline dismissal|
|Injured Rooney left out of United squad for Chelsea trip|
|Manchester City 1 Southampton 1: Guardiola´s men back on top but winless run continues|
|Guangzhou Evergrande clinch record sixth straight Super League title|
|´Icon´ Rooney not finished at United - Pereira|
|Zubizarreta-Garcia meeting confirmed by Marseille president|
|Aspas-inspired Celta thrash Deportivo in Galician derby|
|Lorient dismiss coach Ripoll|
|Ronaldo´s impact on football is myth-like - Perez|
|United not distracted by Mourinho´s Chelsea return - Young|
|A-League Review: 20,000th goal helps Newcastle Jets to shock comeback|
|Cech laments Arsenal´s lack of composure|
|Qatar World Cup worker dies at stadium site|
|Galliani wanted Montella at Milan in 2014|
|Mourinho hopes never to return to Chelsea|
|Barzagli angry with AC Milan defeat|
|Iniesta admits ´it could have been worse´ after Barcelona confirm 6-8 week absence|
|Mourinho: I´ll never sell Rooney|
|Ancelotti admits to bowing to Ronaldo demands|
|Ancelotti doubts Conte´s Chelsea can win Premier League|
|Romagnoli happy at Milan amid Chelsea links|
|City must not change their style - Gundogan|
|Conte wants to emulate Mourinho|
|Montella: Rising Milan must handle new expectations|
|Rummenigge dispels Alaba-Manchester City reports|
|Success the key to building connection with fans - Mourinho|
|Gundogan hails ´amazing´ duo Guardiola and Klopp|
|AC Milan players influenced ref for disallowed goal, fumes Allegri|
|Allardyce incident a tragedy, says FA chief executive Glenn|
|Locatelli can´t comprehend beating Buffon|