The Union of Soviet Socialist Republics (USSR), commonly known as the Soviet Union, was a transcontinental country that spanned much of Eurasia from 1922 until it dissolved in 1991. During its existence, it was the largest country by area, extending across eleven time zones and sharing borders with twelve countries, and the third-most populous country. An overall successor to the Russian Empire, it was nominally organized as a federal union of national republics, the largest and most populous of which was the Russian SFSR. In practice, its government and economy were highly centralized. As a one-party state governed by the Communist Party of the Soviet Union (CPSU), it was the flagship communist state. Its capital and largest city was Moscow.
The Soviet Union's roots lay in the October Revolution of 1917. The new government, led by Vladimir Lenin, established the Russian SFSR, the world's first constitutionally communist state. The revolution was not accepted by all within the Russian Republic, resulting in the Russian Civil War. The Russian SFSR and its subordinate republics were merged into the Soviet Union in 1922. Following Lenin's death in 1924, Joseph Stalin came to power, inaugurating rapid industrialization and forced collectivization that led to significant economic growth but contributed to a famine between 1930 and 1933 that killed millions. The Soviet forced labour camp system of the Gulag was expanded. During the late 1930s, Stalin's government conducted the Great Purge to remove opponents, resulting in large scale deportations, arrests, and show trials accompanied by public fear. Having failed to build an anti-Nazi coalition in Europe, the Soviet Union signed a non-aggression pact with Nazi Germany in 1939. Despite this, in 1941 Germany invaded the Soviet Union in the largest land invasion in history, opening the Eastern Front of World War II. The Soviets played a decisive role in defeating the Axis powers while liberating much of Central and Eastern Europe. However they would suffer an estimated 27 million casualties, which accounted for most losses among the victorious Allies. In the aftermath of the war, the Soviet Union consolidated the territory occupied by the Red Army, forming satellite states, and undertook rapid economic development which cemented its status as a superpower.