Xavi Hernandez gave the Spanish a 13th-minute lead but, despite dominating possession, the hosts had to wait until four minutes from time to make the game safe when Fernando Torres slotted home their second goal.
Spain have now won five of their last six qualifiers - drawing the other - and climb into second spot in the standings behind Sweden and above Northern Ireland, who lost in Iceland.
Copyright (c) PA Sport 2007, All Rights Reserved.
Do YOU want to write for GiveMeSport? Get started today by signing-up and submitting an article HERE: http://gms.to/writeforgms