Spain set up date with Italy
Jordi Alba scored twice as Spain beat Nigeria to safely progress through to the semi-finals of the Confederations Cup with a 100% record, while Tahiti bowed out of the tournament with an 8-0 loss to Uruguay.
Barcelona full-back Alba scored at both the start and end of the clash in Fortaleza with substitute Fernando Torres netting in between to follow up his four-goal salvo in the 10-0 win over Tahiti, secureing a 3-0 win for Spain over Nigeria.
The victory leaves Spain top of Group B with three wins from three and the reigning world and European champions will now face Group A runners-up Italy in the semi-finals, the side they beat 4-0 in the final of Euro 2012.
Nigeria had their chances but could not take advantage of them and they finish in third spot with three points.
Abel Hernandez scored four goals as Uruguay secured their place in the semi-finals with a thumping 8-0 win over whipping boys Tahiti.
Hernandez completed his hat-trick before half-time before adding his fourth from the penalty spot on 66 minutes.
Luis Suarez also weighed in with a late double - which saw him pass Diego Forlan as Uruguay's all-time leading goalscorer - to go with strikes from Diego Perez and Nicolas Lodeiro as Tahiti bowed out of the tournament having conceded 23 times in their three group games.
Uruguay's work was only soured by the 51st-minute dismissal of Andres Scotti who will now miss the last-four clash with hosts Brazil in Belo Horizonte on Wednesday.
Tahiti also finished the game with 10 men after Teheivarii Ludivion was shown a second yellow card on the hour.
Information from the Press Association was used in this report