German Empire
The high command under Paul von Hindenburg and Erich Ludendorff increasingly controlled the country, but in October after the failed offensive in spring 1918, the German armies were in retreat, allies Austria-Hungary and the Ottoman Empire had collapsed, and Bulgaria had surrendered. The Empire collapsed in the November 1918 Revolution with the abdications of its monarchs. This left a postwar federal republic and a devastated and unsatisfied populace, which later led to the rise of Adolf Hitler and Nazism.
German Empire
The German Confederation ended as a result of the Austro-Prussian War of 1866 between the constituent Confederation entities of the Austrian Empire and its allies on one side and the Kingdom of Prussia and its allies on the other. The war resulted in the partial replacement of the Confederation in 1867 by a North German Confederation, comprising the 22 states north of the Main. The patriotic fervour generated by the Franco-Prussian War overwhelmed the remaining opposition to a unified Germany (aside from Austria) in the four states south of the Main and during November 1870 they joined the North German Confederation by treaty.