The French forces were defeated by the British
King Joseph abdicated and returned to France after the main French forces were defeated by a British-led coalition at the Battle of Vitoria in 1813 .
Joseph Bonaparte