Between November 1918 and July 1919, in a series of events known as the German revolution, the Kaiser abdicated and a new German state - the Weimar Republic was formed
The new Weimar Republic was crippled from the start. It carried wounds inflicted by four years of warfare. It was resented by a large part of the German people. It was also governed under a flawed constitution
Eleven million Germans fought in the war. Almost two million German troops died and over four million were wounded - so 55% of German troops became casualties
The British Navy blockaded German ports, preventing German ships bringing food into the country. Over 750,000 Germans died because of food shortages during the First World War
From the papers of Jan Smuts, a South African politician who visited Germany in 1918: 'the mother-land of our civilization [Germany] lies in ruins, exhausted by the most terrible struggle in history, with its peoples broke, starving, despairing, from sheer nervous exhaustion, mechanically struggling forward along the paths of anarchy [disorder with no strong authority] and war'
The Kaiser's ministers told him that the only way to restore order in Germany was for him to abdicate, giving up his position as the emperor of Germany
On 9 November, Philipp Scheidemann, a leading member of the Social Democratic Party (SPD), proclaimed to the crowds in Berlin that the Kaiser had gone and that there was a new German Republic
Scheidemann's appeal from the balcony of the Reichstag on 9 November 1918: 'The Hohenzollerns [the German royal family] have abdicated. Take care not to allow anything to mar this proud day. Long live the German Republic'
On 9 November, the Kaiser's chancellor (equivalent to a British prime minister), Max von Baden, handed over his office to Friedrich Ebert, the leader of the SPD
Also on 10 November, Ebert suspended the old Reichstag (parliament) and named six moderate politicians who would form the Council of People's Representatives
Communism is an extreme form of government, in which representatives of the workers set up a government and take over ownership of all land, property and resources in a country. It was associated with Germany's enemy, Russia
On 11 November, Ebert's representative, Matthias Erzberger, signed the armistice. This was the formal agreement between Germany and the Allies to end the First World War
Ebert arranged for the civil servants who had helped run Germany under the Kaiser to stay in office. He reassured General Groener that the army would not be reformed. He also reassured leaders of industry that the new Republic would not confiscate land or factories and that there would be no nationalisation of private industries. Finally, Ebert won the support of the trade unions
Despite Ebert's efforts, some extreme political parties were still dissatisfied. Demonstrations, and even riots, were common in the major cities. Germany was still on the edge of anarchy