At Vitoria, Spain, a massive allied British, Portuguese, and Spanish force under British General Arthur Wellesley routs the French, effectively ending the Peninsular War.
On February 16, 1808, under the pretext of sending reinforcements to the French army occupying Portugal, French Emperor Napoleon Bonaparte invaded Spain. Thus began the Peninsular War, an important phase of the Napoleonic Wars that was fought between France and much of Europe between 1792 and 1815. During the first few weeks after their 1808 invasion of Spain, French forces captured Pamplona and Barcelona and on March 19 forced King Charles IV of Spain to abdicate. Four days later, the French entered Madrid under Joachim Murat. In early May, Madrid revolted, and on June 15 Napoleon's brother, Joseph, was proclaimed the new king of Spain, leading to a general anti-French revolt across the Iberian Peninsula.
In August, a British expeditionary force under Arthur Wellesley, later the Duke of Wellington, landed on the Portuguese coast to expel the French from the Iberian Peninsula. By mid-1809, the French were driven from Portugal, but Spain proved more elusive. Thus began a long series of seesaw campaigns between the French and British in Spain, where the British were aided by small bands of Spanish irregulars known as guerrillas.
Finally, on June 21, 1813, 80,000 allied troops under Wellesley routed the 66,000-man army of Joseph Bonaparte and Marshal Jourdan at Vitoria, 175 miles northeast of Madrid. By October, the Iberian Peninsula was liberated, and Wellesley launched an invasion of France. The allies had penetrated France as far as Toulouse when news of Napoleon's abdication reached them in April 1814, ending the Peninsular War.