Raul equalised after 71 minutes before two late goals from Fernando Torres wrapped up the win for Spain. A point from their final game against minnows Saudi Arabia will ensure Spain top their group.
Xabi Alonso played the full 90 minutes for Spain, Luis Garcia was subsituted at half time and Pepe Reina was an unused sub.
