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.
Unification of Germany
The unification of Germany into a politically and administratively integrated nation state officially occurred on 18 January 1871, in the Hall of Mirrors at the Palace of Versailles in France. Princes of the German states, excluding Austria, gathered there to proclaim William I of Prussia as German Emperor after the French capitulation in the Franco-Prussian War. Unofficially, the "de facto" transition of most of the German-speaking populations into a federated organization of states had been developing for some time through alliances formal and informal between princely rulers, but in fits and starts. The self-interests of the various parties hampered the process over nearly a century of autocratic experimentation, beginning in the era of the Napoleonic Wars, which prompted the dissolution of the Holy Roman Empire in 1806, and the subsequent rise of German nationalism.