Xabi Alonso scored twice on his 100th appearance for Spain as Vicente del Bosque’s side proved too strong for France in their Euro 2012 quarter-final.
The former Liverpool midfielder headed in Jordi Alba’s cross after 19 minutes to put the defending champions on their way.
And he slotted in a 91st-minute penalty to seal victory, following a clumsy foul on Pedro by Anthony Reveillere.
In truth, despite their narrow lead, Spain rarely looked like being beaten as they controlled possession for large periods of the match.
Newcastle United’s Yohan Cabaye forced a fine save from Spain keeper Iker Casillas with a 30-yard free-kick in the first half, but Laurent Blanc’s side were second-best throughout.
Spain’s win sets up a semi-final encounter against Portugal on Wednesday June 27th.