World War II: The Soviet Union joins Nazi Germany's invasion of Poland during the Polish Defensive War of 1939.

The invasion of Poland (1 September 6 October 1939), also known as the September campaign (Polish: kampania wrzeniowa), 1939 defensive war (Polish: wojna obronna 1939 roku) and Poland campaign (German: berfall auf Polen, Polenfeldzug), was a joint attack on the Republic of Poland by Nazi Germany and the Soviet Union which marked the beginning of World War II. The German invasion began on 1 September 1939, one week after the signing of the MolotovRibbentrop Pact between Germany and the Soviet Union, and one day after the Supreme Soviet of the Soviet Union had approved the pact. The Soviets invaded Poland on 17 September. The campaign ended on 6 October with Germany and the Soviet Union dividing and annexing the whole of Poland under the terms of the GermanSoviet Frontier Treaty.

German forces invaded Poland from the north, south, and west the morning after the Gleiwitz incident. Slovak military forces advanced alongside the Germans in northern Slovakia. As the Wehrmacht advanced, Polish forces withdrew from their forward bases of operation close to the GermanyPoland border to more established defense lines to the east. After the mid-September Polish defeat in the Battle of the Bzura, the Germans gained an undisputed advantage. Polish forces then withdrew to the southeast where they prepared for a long defence of the Romanian Bridgehead and awaited expected support and relief from France and the United Kingdom. On 3 September, based on their alliance agreements with Poland, the United Kingdom and France declared war on Germany; in the end their aid to Poland was very limited. France invaded a small part of Germany in the Saar Offensive, and the Polish army was effectively defeated even before the British Expeditionary Force could be transported to Europe, with the bulk of the BEF in France by the end of September.

On 17 September, the Soviet Red Army invaded Eastern Poland, the territory beyond the Curzon Line that fell into the Soviet "sphere of influence" according to the secret protocol of the MolotovRibbentrop Pact; this rendered the Polish plan of defence obsolete. Facing a second front, the Polish government concluded the defence of the Romanian Bridgehead was no longer feasible and ordered an emergency evacuation of all troops to neutral Romania. On 6 October, following the Polish defeat at the Battle of Kock, German and Soviet forces gained full control over Poland. The success of the invasion marked the end of the Second Polish Republic, though Poland never formally surrendered.

On 8 October, after an initial period of military administration, Germany directly annexed western Poland and the former Free City of Danzig and placed the remaining block of territory under the administration of the newly established General Government. The Soviet Union incorporated its newly acquired areas into its constituent Byelorussian and Ukrainian republics, and immediately started a campaign of Sovietization. In the aftermath of the invasion, a collective of underground resistance organizations formed the Polish Underground State within the territory of the former Polish state. Many of the military exiles who escaped Poland joined the Polish Armed Forces in the West, an armed force loyal to the Polish government-in-exile.

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.