World War I devastated the territory of what became the state of Latvia, and other western parts of the Russian Empire. Demands for self-determination were initially confined to autonomy, until a power vacuum was created by the Russian Revolution in 1917, followed by the Treaty of Brest-Litovsk between Russia and Germany in March 1918, then the Allied armistice with Germany on 11 November 1918. On 18 November 1918, in Riga, the People's Council of Latvia proclaimed the independence of the new country and Kārlis Ulmanis was entrusted to set up a government and he took the position of Prime Minister.