The Spartacist uprising (German: Spartakusaufstand), also known as the January uprising (Januaraufstand), was an armed uprising that took place in Berlin from 5 to 12 January 1919. It occurred in connection with the November Revolution that broke out following Germany's defeat in World War I. The uprising was primarily a power struggle between the Social Democratic Party of Germany (SPD) led by Friedrich Ebert, which favored a social democracy, and the Communist Party of Germany (KPD), led by Karl Liebknecht and Rosa Luxemburg, which wanted to set up a council republic similar to the one established by the Bolsheviks in Russia. In 1914 Liebknecht and Luxemburg had founded the Marxist Spartacus League (Spartakusbund), which gave the uprising its popular name. The revolt was improvised and small scale and quickly crushed by the superior strength of government and paramilitary troops in what became known as Bloody Week. The death toll was roughly 150–200, mostly among the insurgents. The most prominent deaths were those of Karl Liebknecht and Rosa Luxemburg, who were murdered extrajudicially, almost certainly with the approval of the leaders of the provisional SPD-led government. The party's involvement hampered its position throughout the life of the Weimar Republic, although quashing of the uprising did allow elections for the National Assembly to take place as scheduled on 19 January. The Assembly went on to write the Weimar Constitution that created the first functioning German democracy. On 9 November 1918, the Council of the People's Deputies under the leadership of Friedrich Ebert of the Majority Social Democratic Party of Germany (MSPD) was formed as a provisional Reich government following the collapse of the German Empire at the end of World War I. It had three representatives each from the MSPD and the more left-leaning Independent Social Democratic Party of Germany (USPD). The Supreme Army Command recognized the Council on 10 November in the secret Ebert-Groener Pact in which Wilhelm Groener, Quartermaster General of the German Army, assured Reich Chancellor Ebert of the loyalty of the armed forces.