In 1917, the Bolsheviks, led by Vladimir Lenin, overthrew Tsar Nicholas II and established a socialist government.
Tsar abolished after February Revolution, which ended up in a broad coalition goverment, consisting of both liberal and socialist parties. Bolsheviks later in October overthrew that and seized power in Moscow and Petrograd. It started Russian Civil War.