The Soviet Union, officially the Union of Soviet Socialist Republics (USSR), was a transcontinental country that spanned much of Eurasia from 1922 to 1991. A flagship communist state, it was nominally a federal union of fifteen national republics; in practice, both its government and its economy were highly centralized until its final years. It was a one-party state governed by the Communist Party of the Soviet Union, with the city of Moscow serving as its capital as well as that of its largest and most populous republic: the Russian SFSR. Other major cities included Leningrad (Russian SFSR), Kiev (Ukrainian SSR), Minsk (Byelorussian SSR), Tashkent (Uzbek SSR), Alma-Ata (Kazakh SSR), and Novosibirsk (Russian SFSR). It was the largest country in the world, covering over and spanning eleven time zones.
The country's roots lay in the October Revolution of 1917, which saw the Bolsheviks overthrow the Russian Provisional Government that formed earlier that year following the February Revolution and the abdication of Tsar Nicholas II, marking the end of the Russian Empire. The new government, led by Vladimir Lenin, established the Russian Socialist Federative Soviet Republic (RSFSR), the world's first constitutionally guaranteed socialist state. Persisting internal tensions escalated into the brutal Russian Civil War. As the war progressed in the Bolsheviks' favor, the RSFSR began to incorporate land conquered from the war into nominally independent states, which were unified into the Soviet Union in December 1922. Following Lenin's death in 1924, Joseph Stalin came to power. Stalin inaugurated a period of rapid industrialization and forced collectivization that led to significant economic growth, but also contributed to a famine in 1930–1933 that killed millions. The forced labour camp system of the Gulag was also expanded in this period. Stalin conducted the Great Purge to remove his actual and perceived opponents. After the outbreak of World War II, Germany invaded the Soviet Union.