The Spanish resisted and, aided by British troops commanded by the Duke of Wellington, drove the French out.
The Spanish were able to drive the French out thanks to the help of British troops.
The Spanish were defeated by the British and the French.