After the formation of the German Empire in 1871, the Prussian Army, Royal Saxon Army, Army of Württemberg and the Bavarian Army were autonomous in peacetime, each kingdom maintaining a separate war ministry and general staff to administer their forces. On the outbreak of war, the Constitution of the German Empire made the Emperor Commander-in-Chief of the combined armies (Oberster Kriegsherr, Supreme Warlord).