The only problem is, that it was not in defence of a good cause. The Spaniards were defending their coutry against Napoleon.