Spain coach Luis Aragones have been under intense pressure after the two defeats, and the win against Argentina will be a confidence booster for his team.
Xavi scored the first goal after 32 minutes, with a long range effort. Argentine midfielder Daniel Bilos leveled the score 2 minutes later.
In the 63rd minute Andres Iniesta was felled in the penalty box, and David Villa converted the penalty, and made it 2-1.
Reina, Albelda, Capdevila, David Villa, Fabregas, Iniesta, Juanito, Pablo, Sergio Ramos, Torres, Xavi. Subs: Angulo, Antonio Lopez, Iker Casillas, Luis Garcia, Puerta, Xabi Alonso.
Abbondanzieri, Arruabarrena, Ayala, Gonzalez, Insua, Mascherano, Messi, Milito, Rodriguez, Tevez, Zabaleta. Subs: Leo Franco, Aguero, Aimar, Bilos, Coloccini, Ponzio, Saviola, Somoza.