History of Germany during World War I
In November 1918, with internal revolution, a stalemated war, Bulgaria and the Ottoman Empire suing for peace, Austria-Hungary falling apart from multiple ethnic tensions, and pressure from the German high command, the Kaiser and all German ruling princes abdicated. On 9 November 1918, the Social Democrat Philipp Scheidemann proclaimed a Republic, in cooperation with the business and middle classes, not the revolting workers. The new government led by the German Social Democrats called for and received an armistice on 11 November 1918; in practice it was a surrender, and the Allies kept up the food blockade to guarantee an upper hand. The war was over; the history books closed on the German Empire. It was succeeded by the democratic, yet flawed, Weimar Republic.
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.