Spain booked a date with Brazil in the Confederations Cup final with an 7-6 penalty shoot-out victory over Italy at the Castelao.
Although the World Cup holders stormed to a 4-0 win over the Azzurri in the Euro 2012 final, this encounter proved far more evenly-contested.
Vicente del Bosque's men monopolised possession but lacked a cutting edge in attack, while Italy missed numerous chances throughout as the match ended goalless.
With nothing to separate the two nations the game went to penalties, where Jesus Navas proved to be the hero as he scored the crucial spot kick as the shoot-out finished 7-6 to Spain.
Cesare Prandelli switched to a three-man defence and his side began impressively, despite letting the Spaniards control possession of the ball.
The Azzurri, though, with the Fortaleza crowd backing them, looked superb on the counter-attack. After Alberto Gilardino had failed to pick out the bottom corner from Antonio Candreva's cross, they became increasingly confident and forged yet more chances to find the net.
Christian Maggio was unable to guide a header from Andrea Pirlo's exquisite pass past Iker Casillas in the 17th minute and Daniele De Rossi's glancing header missed the target 60 seconds later.
In the 19th minute Claudio Marchisio missed the best of the bunch, though, as he nodded the ball well wide of the target from Candreva's cushion despite finding plenty of space between the two centre-backs.
That flurry of activity encouraged Spain to reduce the tempo and steady themselves, but the Azzurri were again next to test the opposing goalkeeper.
Jordi Alba was being nullified by the adventurous combination of Candreva and Maggio, and the latter was only denied a goal when a brilliant Casillas save kept his 36th-minute header out of the net.
Spain almost immediately punished Prandelli's side for their profligacy in front of goal one minute later, but after turning Andrea Barzagli in wonderful fashion Fernando Torres could not find a finish to match as he pulled his shot wide of the target.
With La Roja failing to show an increased threat immediately after the restart Del Bosque introduced Jesus Navas in the 50th minute. The new Manchester City signing had a positive impact, calling Gianluigi Buffon into action with a driven shot from 20 yards shortly before the hour mark.
The conditions began to sap the life from the game as Italy lost the intent on the break and Spain continued to lack creativity. Andres Iniesta attempted to take matters into his own hands, yet after a mazy run from the half-way line he sliced an attempt wide of the goal.
There were chances for both sides to win the game in normal time, though neither team could break the deadlock. Marchisio's attempt from a Candreva cutback was blocked by Gerard Pique before Pedro and the Barcelona centre-back wasted two great opportunities to work Buffon, and extra time ensued.
After three minutes of the additional period Italy had their best chance of the night. Maggio's cross rolled through to Emanuele Giaccherini at the back post, whose attempted shot crashed back off of Casillas' post.
The tempo to the game quickly picked up again and Iniesta's beautiful lifted pass over Leonardo Bonucci was volleyed over by Alba in the 99th minute as La Roja got nearer to breaking the deadlock.
With five minutes left to play Xavi was denied an absolutely magnificent winner when his long-range shot was turned onto the post by Buffon. The Juventus keeper was forced to make another save from Navas one minute later to ensure the game went to penalties.
Candreva got Italy off to the perfect start by dinking the first penalty straight down the middle and all subsequent spot kicks were scored until Bonucci skied from 12 yards with the score level at 6-6. Responsibility fell to Navas who slotted the ball home to send Spain into the final.
Spain will now take place in Sunday's final against Brazil at the Maracana, while Italy will contest the third-place play-off against Uruguay in Salvador on the same day.
|Coach: Del Bosque|
for David Silva 53'
for Pedro 79'
for Fernando Torres 94'
|Pastore: I´m like God in Paris|
|Injured Lanzini out of Olympics|
|Allegri unperturbed by Higuain fee|
|Menezes replaces Bento at Cruzeiro|
|Sporting rejected major bids from Inter and Liverpool for Joao Mario, claims father|
|Pochettino pleased by Tottenham despite Juventus defeat|
|Eriksson: Allardyce the right man for England|
|Mourinho makes United train after stepping off plane from China|
|Hazard can still match Messi, says Pedro|
|Pjanic shows there is life at Juve, with or without Pogba|
|Juventus 2 Tottenham 1: Benatia bags win for Serie A champions|
|Dembele: I am not the Bundesliga´s next superstar|
|Lyon claim €35m Arsenal offer for Lacazette rejected|
|Donnarumma dreaming of Milan captaincy as he eyes long-term stay|
|Robson: Ibrahimovic can match Van Persie´s first year at United|
|Rooney should remain England captain - Eriksson|
|Emery wants new striker at PSG|
|Santos accept Juventus bid for Gabriel|
|Eriksson expects Sweden to try and tempt Ibrahimovic out of retirement|
|Spurs signing Janssen almost quit|
|Leicester stay best for Mahrez - Ranieri|
|Allardyce to take Mourinho cue on Rooney|
|Ings ready to outdo big-money signings|
|Henderson optimistic over Liverpool campaign|
|Allardyce hardened to the challenge of England post|
|Barcelona announce record revenues for 2015-16|
|Moyes enjoys Sunderland win as Palace beat Colchester|
|Stoke complete Allen signing|
|Roma coach Spalletti warns suitors off Manolas|
|Cresswell out for up to four months with knee injury|
|Burnley fan banned by club for racist abuse|
|Dad won´t let me play at the Olympics - Larsson Sr pulls rank|
|Kostic joins Hamburg on five-year deal|
|Tevez: I´d turn down Chelsea and Napoli to stay at Boca|
|Mayoral inspired by Benzema for Wolfsburg stint|
|Allardyce straight into competitive action with England|
|Liverpool, Sevilla fined for Europa League final incidents|
|Barcelona seal Guillemenot signing as part of new Servette deal|
|Niersbach handed one-year ban over World Cup corruption|
|Chelsea and Everton ´still interested´ as Koulibaly eyes Napoli exit|
|´Still working hard´ - Balotelli trains with Liverpool kids|
|Winter breaks, long-ball football and the World Cup: Allardyce in his own words|
|Inter warn Napoli Icardi is not for sale|
|Zanetti wants Simeone back at Inter|
|Stoke snap up Sobhi|
|PSG tougher under Emery - Lucas Moura|
|Totti not ready for retirement - Pallotta|
|Confident Allardyce reveals plan for England success|
|Pochettino to discard three Tottenham players|
|Allardyce: Rooney must wait for captaincy decision|
|Aubameyang: I will only leave Dortmund for Real Madrid|
|Allegri silences questions on Pogba|
|Bruce stands by decision to quit Hull City|
|Pochettino: Not the right time for Argentina job|
|Inter yet to approach De Boer with Mancini exit rumoured|
|Ancelotti trusts me more than Guardiola - Ribery|
|Wijnaldum rejected Everton for Klopp|
|Pre-season Manchester derby cancelled|
|Coutinho excited by ´fast´ Liverpool recruits|
|Cristiano Ronaldo and Conor McGregor step into the ring together|
|Mancini coy on reports linking Icardi to Napoli|
|Nolito reveals why he chose Man City over Barcelona|
|Inter 1 Paris Saint-Germain 3: Icardi absence in defeat fuels Napoli talk|
|MLS Review: Wright-Phillips double inspires Red Bulls to New York derby rout|
|James seeks more game time at Madrid|
|Rooney: I want to be a manager|
|Mignolet welcomes Karius challenge in Liverpool number one battle|
|Batshuayi buoyed by winning vibes at Chelsea|
|Moyes and Sunderland players diverted after plane fault|
|´Loved´ Varane targets long Madrid stay|
|Kostic set for Hamburg medical|
|Leicester crying over Kante sale - Ranieri|
|Schurrle the perfect Mkhitaryan replacement - Tuchel|
|West Ham face anxious wait on Cresswell injury|
|Mourinho will accept criticism from United legends|
|Bertolacci desperate for fresh start after underwhelming first season at Milan|
|Hoops hand Toure one-year deal|
|Origi ready to fight for Liverpool spot|
|Emery wants PSG stay for ´fantastic´ Matuidi|
|No Barcelona offer for Vietto - Cerezo|
|Burnley apologise for racist abuse from supporter|
|Guardiola will not rush Kompany comeback|
|Of course I´ll shake Guardiola´s hand, snaps riled Mourinho|
|Watzke: No more signings for Dortmund|
|Roma expect Manolas to snub Premier League move|
|Adriano set to leave Barcelona for Besiktas|
|Manchester United in worst possible situation - Mourinho|
|Sporting would have to sell stadium to afford Van Persie - Jesus|
|Jonas´ agent confirms Barcelona approach|
|No problem with Mourinho, insists Guardiola ahead of derby in China|
|Toronto´s hat-trick hero Giovinco: I´m back|
|Drogba revels in ´special night´, dedicates hat-trick to family|
|MLS Review: Hat-tricks for Drogba and Giovinco as stars shine|
|Whelan backs Liverpool for top-four finish|
|Pellegrini still waiting for right offer|
|Ronaldo deserves to win Ballon d´Or - Vazquez|
|Phelan wants Hull job|
|Alaba saddened by Gotze exit|
|Morgan: Vardy right to re-sign|
|Maradona ´hurting´ as Higuain closes on Juventus move|