The Russian Revolution of 1917 overthrew the oppressive rule of Czar Nicholas II and established a communist government led by the Bolsheviks under Vladimir Lenin. Inspired by Karl Marx's political ideas of communism, the Bolsheviks and other revolutionaries revolted against the Czar due to widespread poverty and inequality. After the Czar's abdication and assassination, Lenin led the new Soviet government but died in 1924. This led to a power struggle between Leon Trotsky and Joseph Stalin, with Stalin emerging victorious and becoming the new totalitarian leader of the USSR through the 1930s. He established a secret police force and eliminated all opposition, resulting in the deaths of millions of citizens.