Nigeria have been eliminated from the Confederations Cup following a 2-0 defeat to Spain in their final match of Group B.
The African team needed to beat the reigning world and European champions to have any hope of qualifying for the semi-finals, as Uruguay battered Tahiti 8-0.
Jordi Alba capped a brilliant Spain attack to give them the lead as early as the seventh minute, but Stephen Keshi's men did not give in and battled to get into half time just the one goal behind.
Nigeria missed a glorious chance to get back on level terms in the 54th minute, as Ahmed Musaab's cross found Ideye Brown at the back post, but he was unable to put it into an empty net.
Fernando Torres came off the bench in the 62nd minute and took just two minutes to get his name on the scoresheet, heading home from Pedro's cross.
Alba raced onto David Villa's through-ball late on to make it 3-0 to Vicente del Bosque's men.