Finally , with the help of the British under the duke of Wellington , the Spanish expelled the occupying forces .
With Britain unwilling to help , Spain languished under occupation and sank into total defeat .