Following the abdication of the Kaiser in 1918, Germany was left facing a new form of government. Ebert, leader of the SPD (the largest party), became leader of Germany and the new democratic Weimar Republic was set up. This gave people a say in their politics, whilst he promised to improve conditions following WW1, signing the armistice.
In January 1919, Ebert was elected as President and the following month the Weimar Republic was born. It would face a number of challenges, endure failures and enjoy successes over the next decade.