The Battle of Wagram (5–6 July 1809) was a military engagement of the Napoleonic Wars that ended in a costly but decisive victory for Emperor Napoleon I's French and allied army against the Austrian army under the command of Archduke Charles of Austria-Teschen. The battle led to the breakup of the Fifth Coalition, the Austrian and British-led alliance against France.
In 1809, the French military presence in Germany was diminished as Napoleon transferred a number of soldiers to fight in the Peninsular War. As a result, the Austrian Empire saw its chance to recover some of its former sphere of influence and invaded the Kingdom of Bavaria, a French ally. Recovering from his initial surprise, Napoleon beat the Austrian forces and occupied Vienna at the beginning of May 1809. Despite the string of sharp defeats and the loss of the empire's capital, Archduke Charles salvaged an army, with which he retreated north of the Danube. This allowed the Austrians to continue the war. Towards the end of May, Napoleon resumed the offensive, suffering a surprise defeat at the Battle of Aspern-Essling.