Napoleonic Wars: Peninsular War: Battle of Salamanca: British forces led by Arthur Wellesley (later the Duke of Wellington) defeat French troops near Salamanca, Spain.

The Battle of Salamanca (in French and Spanish known as the Battle of Arapiles) on 22 July 1812 was a battle in which an Anglo-Portuguese army under the Earl of Wellington defeated Marshal Auguste Marmont's French forces at Arapiles, south of Salamanca, Spain, during the Peninsular War. A Spanish division was also present but took no part in the battle.

The battle involved a succession of flanking manoeuvres in oblique order, initiated by the British heavy cavalry brigade and Pakenham's 3rd Division and continued by the cavalry and the 4th, 5th and 6th divisions. These attacks resulted in a rout of the French left wing. Marmont and his deputy commander, General Bonet, received shrapnel wounds in the first few minutes of firing. Confusion amongst the French command may have been decisive in creating an opportunity, which Wellington seized.

General Bertrand Clauzel, third in seniority, assumed command and ordered a counter-attack by the French reserve toward the depleted Allied centre. The move proved partly successful but with Wellington having sent his reinforcements to the centre, the Anglo-Portuguese forces prevailed.

Allied losses numbered 3,129 British and 2,038 Portuguese dead or wounded. The Spanish troops took no part in the battle as they were positioned to block French escape routes and suffered just six casualties. The French suffered about 13,000 dead, wounded and captured. As a consequence of Wellington's victory, his army was able to advance to and liberate Madrid for two months, before retreating to Portugal. The French were forced to abandon Andalusia permanently while the loss of Madrid irreparably damaged King Joseph's pro-French government.

The Napoleonic Wars (1803–1815) were a series of major global conflicts pitting the French Empire and its allies, led by Napoleon I, against a fluctuating array of European states formed into various coalitions. It produced a period of French domination over most of continental Europe. The wars stemmed from the unresolved disputes associated with the French Revolution and its resultant conflict. The wars are often categorised into five conflicts, each termed after the coalition that fought Napoleon: the Third Coalition (1805), the Fourth (1806–07), the Fifth (1809), the Sixth (1813–14), and the Seventh (1815).

Napoleon, upon ascending to First Consul of France in 1799, had inherited a republic in chaos; he subsequently created a state with stable finances, a strong bureaucracy, and a well-trained army. In December 1805 Napoleon achieved what is considered his greatest victory, defeating the allied Russo-Austrian army at Austerlitz. At sea, the British severely defeated the joint Franco-Spanish navy in the Battle of Trafalgar on 21 October 1805. This victory secured British control of the seas and prevented the invasion of Britain. Concerned about increasing French power, Prussia led the creation of the Fourth Coalition with Russia, Saxony, and Sweden, which resumed war in October 1806. Napoleon quickly defeated the Prussians at Jena and the Russians at Friedland, bringing an uneasy peace to the continent. The peace failed, though, as war broke out in 1809, with the badly prepared Fifth Coalition, led by Austria. At first, the Austrians won a stunning victory at Aspern-Essling, but were quickly defeated at Wagram, which was the bloodiest battle in history until the battle of Leipzig.

Hoping to isolate and weaken Britain economically through his Continental System, Napoleon launched an invasion of Portugal, the only remaining British ally in continental Europe. After occupying Lisbon in November 1807, and with the bulk of French troops present in Spain, Napoleon seized the opportunity to turn against his former ally, depose the reigning Spanish royal family and declare his brother King of Spain in 1808 as José I. The Spanish and Portuguese revolted with British support and expelled the French from Iberia in 1814 after six years of fighting.

Concurrently, Russia, unwilling to bear the economic consequences of reduced trade, routinely violated the Continental System, prompting Napoleon to launch a massive invasion of Russia in 1812. The resulting campaign ended in disaster for France and the near destruction of Napoleon's Grande Armée.

Encouraged by the defeat, Austria, Prussia, Sweden, and Russia formed the Sixth Coalition and began a new campaign against France, decisively defeating Napoleon at Leipzig in October 1813 after several inconclusive engagements. The Allies then invaded France from the east, while the Peninsular War spilled over into southwestern France. Coalition troops captured Paris at the end of March 1814 and forced Napoleon to abdicate in April. He was exiled to the island of Elba, and the Bourbons were restored to power. But Napoleon escaped in February 1815, and reassumed control of France for around one hundred days. After forming the Seventh Coalition, the allies defeated him at Waterloo in June 1815 and exiled him to the island of Saint Helena, where he died six years later.The Congress of Vienna redrew the borders of Europe and brought a period of relative peace. The wars had profound consequences on global history, including the spread of nationalism and liberalism, the rise of Britain as the world's foremost naval and economic power, the appearance of independence movements in Latin America and subsequent decline of the Spanish and Portuguese Empires, the fundamental reorganization of German and Italian territories into larger states, and the introduction of radically new methods of conducting warfare, as well as civil law. After the end of the Napoleonic Wars there was a period of relative peace in continental Europe, lasting until the Crimean War in 1853.