A largely second string Ireland team managed to hold out for a credible 69 minutes against Spain until substitute Roberto Soldado gave the World and European champions the lead.
Juan Mata wrapped the game up for Spain when he finished off some beautifully worked interplay between him and Santi Cazorla.