The German Empire was founded on 18th January 1871, after three successful wars by the state of Prussia. Within seven years, Denmark, Habsburg, and France were vanquished in short, decisive conflicts. The empire was formed as a result of traditional cabinet diplomacy and agreement, by the leaders of the states in the North German Confederation, led by Prussia, with the hereditary rulers of Bavaria, Baden, Hesse-Darmstadt, and Wurttemberg. Remained the dominant force in the nation until the empires demise at the end of another war in 1918.