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