The Russian Revolution overthrew the Russian monarchy and established the Soviet Union. The revolution was preceded by growing unrest with the increasingly unpopular Tsar Nicholas II due to military defeats, economic struggles, and his autocratic rule. In 1917, mass protests and strikes led Nicholas to abdicate, replacing the monarchy with a provisional government. However, Vladimir Lenin and the Bolsheviks then seized power in October 1917, establishing the world's first communist state. Under Stalin's totalitarian rule in the 1920s and 1930s, the Soviet Union had a centrally planned economy, state terror against dissidents, and total government control over all aspects of society.