Both sides went into the game with 100 per cent records but the Spanish hosts knew that a win was essential to qualify given France's superior goal difference - and Juan Santisteban's side did not let down the 4,000 plus fans who gathered for the crucial showdown. José Jurado Marín scored the opener in injury time of the first half and Javier García Fernández made sure of victory with just five minutes remaining.
Wales win thriller
In the night's other game Wales clinched third place in the group and condemned Bulgaria to fourth with a thrilling 4-2 win. The Welsh trailed 1-0 after just seven minutes but goals from Matthew Roberts, Craig Davies, Ryan Morgan and Matthew Collins completed a fine comeback.
Earlier in the week the opening games of the tournament in Alginet saw France sweep Wales aside 7-0 and Spain beat Bulgaria 3-0. The French were 4-0 up within 23 minutes thanks to a hat-trick from Samir Bertin D'Avesnes and a strike from Yohan Gourcuff. Franck Dja Djedje, Mourad Benhamida and Rudy Carlier added further goals after the interval.
Spain step it up
Meanwhile, Spain were being held 0-0 at half-time by Bulgaria but stepped up the pace after the interval to run out comfortable 3-0 winners, thanks to a goal from José Cases Hernández and two from David Rodriguez.
Two goals in ten minutes
The second round of games saw France move 2-0 up against Bulgaria after just ten minutes in Onteniente courtesy of a double strike from Rudy Carlier. Thereafter a determined Bulgarian side rallied well and there were no further goals.
Later the same evening, Spain overcame Wales 3-0 to set up that final match showdown. José Jurado Marín opening the scoring after just nine minutes. David Rodriguez doubled the advantage with his third goal of the tournament on 38 minutes before José Cases Hernández registered his second of the week to wrap up a comfortable win.
Spain now know that they will be joining hosts Portugal in the final tournament which runs from 7-17 May. The other six qualifiers will be determined during further mini-tournaments in the coming weeks.
©UEFA.com 1998-2017. All rights reserved.