Soviet leader Joseph Stalin consolidates the Commissariats of Home Affairs and National Security to form the NKVD and names Lavrentiy Beria its chief.

The People's Commissariat for Internal Affairs ( : Nardnyy komissarit vntrennikh del; Russian pronunciation: [nrod.nj k.m.s.rat vnut.r.nx del]), abbreviated NKVD ( listen ), was the interior ministry of the Soviet Union.

Established in 1917 as NKVD of the Russian Soviet Federative Socialist Republic, the agency was originally tasked with conducting regular police work and overseeing the country's prisons and labor camps. It was disbanded in 1930, with its functions being dispersed among other agencies, only to be reinstated as an all-union commissariat in 1934.The functions of the OGPU (the secret police organization) were transferred to the NKVD in 1934, giving it a monopoly over law enforcement activities that lasted until the end of World War II. During this period, the NKVD included both ordinary public order activities, as well as secret police activities. The NKVD is known for its role in political repression and for carrying out the Great Purge under Joseph Stalin. It was led by Genrikh Yagoda, Nikolai Yezhov and Lavrentiy Beria.The NKVD undertook mass extrajudicial executions of citizens, and conceived, populated and administered the Gulag system of forced labour camps. Their agents were responsible for the repression of the wealthier peasantry. They oversaw the protection of Soviet borders and espionage (which included political assassinations), and enforced Soviet policy in communist movements and puppet governments in other countries, most notably the repression and massacres in Poland.In March 1946 all People's Commissariats were renamed to Ministries, and the NKVD became the Ministry of Internal Affairs (MVD).

The Soviet Union, officially the Union of Soviet Socialist Republics (USSR), was a communist state that spanned Eurasia from 1922 to 1991. It was nominally a federal union of multiple national republics; in practice its government and economy were highly centralized until its final years. The country was a one-party state (prior to 1990) governed by the Communist Party of the Soviet Union, with Moscow as its capital within its largest and most populous republic, the Russian SFSR. Other major urban centers were 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 22,402,200 square kilometres (8,649,500 sq mi), and spanning eleven time zones.

The Soviet Union had its roots in the October Revolution of 1917 when the Bolsheviks, headed by Vladimir Lenin, overthrew the Provisional Government that had earlier replaced the house of Romanov of the Russian Empire. They established the Russian Soviet Republic, the world's first constitutionally guaranteed socialist state. Tensions escalated into a civil war between the Bolshevik Red Army and many anti-Bolshevik forces across the former Empire, among whom the largest faction was the White Guard. The White Guard engaged in violent anti-communist repression against the Bolsheviks and suspected worker and peasant Bolsheviks known as the White Terror. The Red Army expanded and helped local Bolsheviks take power, establishing soviets, repressing their political opponents and rebellious peasants through Red Terror. By 1922, the balance of power had shifted and the Bolsheviks had emerged victorious, forming the Soviet Union with the unification of the Russian, Transcaucasian, Ukrainian and Byelorussian republics. Upon the conclusion of the civil war Lenin's government introduced the New Economic Policy, which led to a partial return of a free market and private property; this resulted in a period of economic recovery.

Following Lenin's death in 1924, Joseph Stalin came to power. Stalin suppressed all political opposition to his rule inside the Communist Party and inaugurated a command economy. As a result, the country underwent a period of rapid industrialization and forced collectivization, which led to significant economic growth, but also led to a man-made famine in 1932–1933. The Gulag labour camp system was also expanded in this period. Stalin also fomented political paranoia and conducted the Great Purge to remove his actual and perceived opponents from the Party through mass arrests of military leaders, Communist Party members, and ordinary citizens alike, who were then sent to correctional labor camps or sentenced to death.

On 23 August 1939, after unsuccessful efforts to form an anti-fascist alliance with Western powers, the Soviets signed a non-aggression pact with Nazi Germany. After the start of World War II, the formally neutral Soviets invaded and annexed territories of several Eastern European states, including the eastern regions of Poland, Lithuania, Latvia and Estonia. In June 1941 the Germans invaded, opening the largest and bloodiest theater of war in history. Soviet war casualties accounted for the majority of Allied casualties of the conflict in the process of acquiring the upper hand over Axis forces at intense battles such as Stalingrad. Soviet forces eventually captured Berlin and won World War II in Europe on 9 May 1945. The territory overtaken by the Red Army became satellite states of the Eastern Bloc. The Cold War emerged in 1947, where the Eastern Bloc confronted the Western Bloc, which would unite in the North Atlantic Treaty Organization in 1949.

Following Stalin's death in 1953, a period known as de-Stalinization and the Khrushchev Thaw occurred under the leadership of Nikita Khrushchev. The country developed rapidly, as millions of peasants were moved into industrialized cities. The USSR took an early lead in the Space Race with the first ever satellite and the first human spaceflight and the first probe to land on another planet, Venus. In the 1970s, there was a brief détente of relations with the United States, but tensions resumed when the Soviet Union deployed troops in Afghanistan in 1979. The war drained economic resources and was matched by an escalation of American military aid to Mujahideen fighters.

In the mid-1980s, the last Soviet leader, Mikhail Gorbachev, sought to further reform and liberalize the economy through his policies of glasnost and perestroika. The goal was to preserve the Communist Party while reversing economic stagnation. The Cold War ended during his tenure and in 1989, Warsaw Pact countries in Central and Eastern Europe overthrew their respective Marxist-Leninist regimes. Strong nationalist and separatist movements broke out across the USSR. Gorbachev initiated a referendum—boycotted by Lithuania, Latvia, Estonia, Armenia, Georgia, and Moldova — which resulted in the majority of participating citizens voting in favor of preserving the Union as a renewed federation. In August 1991, a coup d'état was attempted by Communist Party hardliners. It failed, with Russian President Boris Yeltsin playing a high-profile role in facing down the coup. The main result was the banning of the Communist Party. The republics, led by Russia and Ukraine, declared independence. On 25 December 1991, Gorbachev resigned. All the republics emerged from the dissolution of the Soviet Union as independent post-Soviet states. The Russian Federation (formerly the Russian SFSR) assumed the Soviet Union's rights and obligations and is recognized as its continued legal personality in world affairs.

The Soviet Union produced many significant social and technological achievements and innovations regarding military power. It boasted the world's second-largest economy and the largest standing military in the world. The USSR was recognized as one of the five nuclear weapons states. It was a founding permanent member of the United Nations Security Council as well as a member of the OSCE, the WFTU and the leading member of the Council for Mutual Economic Assistance and the Warsaw Pact.

Before its dissolution, the USSR had maintained its status as a superpower, alongside the United States, for four decades after World War II. Sometimes also called "Soviet Empire", it exercised its hegemony in East-Central Europe and worldwide with military and economic strength, proxy conflicts and influence in developing countries and funding of scientific research, especially in space technology and weaponry.