The Baden Army (German: Badische Armee) was the military organisation of the German state of Baden until 1871. The origins of the army were a combination of units that the Badenese margraviates of Baden-Durlach and Baden-Baden had set up in the Baroque era, and the standing army of the Swabian Circle, to which both territories had to contribute troops. The reunification of the two small states to form the Margraviate of Baden in 1771 and its subsequent enlargement and elevation by Napoleon to become the Grand Duchy of Baden in 1806 created both the opportunity and obligation to maintain a larger army, which Napoleon used in his campaigns against Austria, Prussia and Spain and, above all, Russia. After the end of Napoleon's rule, the Grand Duchy of Baden contributed a division to the German Federal Army. In 1848, Badenese troops helped to suppress the Hecker uprising, but a year later a large number sided with the Baden revolutionaries. After the violent suppression of the revolution by Prussian and Württemberg troops, the army was re-established and fought in the Austro-Prussian War of 1866 on the side of Austria and the southern German states, as well as in the Franco-Prussian War of 1870 on the side of the Germans. When Baden joined the German Empire in 1870/71, the Grand Duchy gave up its military sovereignty and the Badenese troops became part of the XIV Army Corps of the Imperial German Army.