Saxony fought in the War of the Fourth Coalition in 1806 initially on the side of Prussia. In the battles of Saalfeld and Jena–Auerstedt, the Saxon and Prussian armies were heavily defeated. After these defeats the French occupied Saxony.