The Imperial German Army (1871–1919), officially referred to as the German Army (), was the unified ground and air force of the German Empire. It was established in 1871 with the political unification of Germany under the leadership of Prussia, and was dissolved in 1919, after the defeat of the German Empire in World War I (1914–1918). In the Federal Republic of Germany, the term identifies the German Army, the land component of the . Formation and name The states that made up the German Empire contributed their armies; within the German Confederation, formed after the Napoleonic Wars, each state was responsible for maintaining certain units to be put at the disposal of the Confederation in case of conflict. When operating together, the units were known as the Federal Army (). The Federal Army system functioned during various conflicts of the 19th century, such as the First Schleswig War from 1848 to 1852. However, by the time of the Second Schleswig War of 1864, tension had grown between the main powers of the confederation, the Austrian Empire and the Kingdom of Prussia, and the German Confederation was dissolved after the Austro-Prussian War of 1866. Prussia formed the North German Confederation and the treaty provided for the maintenance of a Federal Army and a Federal Navy ( or ). Further laws on military duty also used these terms. Conventions (some later amended) were entered into between the North German Confederation and its member states, subordinating their armies to the Prussian army in time of war, and giving the Prussian Army control over training, doctrine and equipment. Shortly after the outbreak of the Franco-Prussian War in 1870, the North German Confederation also entered into conventions on military matters with states that were not members of the confederation, namely Bavaria, Württemberg, and Baden. Through these conventions and the 1871 Constitution of the German Empire, an Army of the Realm () was created. The contingents of the Bavarian, Saxon and Württemberg kingdoms remained semi-autonomous, while the Prussian Army assumed almost total control over the armies of the other states of the Empire. The Constitution of the German Empire, dated April 16, 1871, changed references in the North German Constitution from Federal Army to either Army of the Realm () or German Army (). After 1871, the peacetime armies of the four kingdoms remained relatively distinct. The term "German Army" was used in various legal