The Spartacist Uprising in 1919, which originated in Berlin, became popular among the working class in the Ruhr, and the region quickly adopted Marxism. But when the uprising was snuffed out by the Freikorps, everything was under the control of the Weimar Republic, until the Kapp Putsch happened which attempted to overthrow the Weimar Republic. The Weimar government came out victorious, but during that time, a return to an autocratic state was seen as the only way forward. Large parts of the working class went out on a general strike advocated by the Weimar government that effectively ended the Kapp government, but in the Ruhr, striking workers successfully managed to take government buildings, shocking the rest of Germany. An armed revolt was then instigated, and the Red Guard installed a branch in the Ruhr. This was known as the Ruhr Uprising. The workers councils that led the uprising declared the Ruhr an independent, socialist republic, but the Freikorps and Reichswehr put down the rebellion and re-established control.