The Invasion of Poland, known in Poland as the September Campaign (Kampania wrześniowa) or the 1939 Defensive War (Wojna obronna 1939 roku), and in Germany as the Poland Campaign (Polenfeldzug) or Fall Weiss ("Case White"), was a joint invasion of Poland by Germany, the Soviet Union, the Free City of Danzig, and a small Slovak contingent that marked the beginning of World War II. The German invasion began on 1 September 1939, one week after the signing of the Molotov–Ribbentrop Pact, while the Soviet invasion commenced on 17 September following the Molotov–Tōgō agreement that terminated the Soviet and Japanese hostilities in the east on 16 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 German–Soviet Frontier Treaty.
German forces invaded Poland from the north, south, and west the morning after the Gleiwitz incident. Slovak forces advanced alongside the Germans in northern Slovakia. As the Wehrmacht advanced, Polish forces withdrew from their forward bases of operation close to the Polish–German border to more established lines of defence 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. While those two countries had pacts with Poland and had declared war on Germany on 3 September, in the end their aid to Poland was very limited.
The Soviet Red Army's invasion of Eastern Poland on 17 September, in accordance with a secret protocol of the Molotov–Ribbentrop Pact, 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 Belarusian 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 that managed to escape Poland subsequently joined the Polish Armed Forces in the West, an armed force loyal to the Polish government-in-exile.
In Fall Gelb (Case Yellow), German armoured units pushed through the Ardennes and then along the Somme valley, cutting off and surrounding the Allied units that had advanced into Belgium, to meet the expected German invasion. When British, Belgian and French forces were pushed back to the sea by the mobile and well-organised German operation, the British evacuated the British Expeditionary Force (BEF) and French divisions from Dunkirk in Operation Dynamo.
German forces began Fall Rot (Case Red) on 5 June. The sixty remaining French divisions and two British divisions made a determined resistance but were unable to overcome the German air superiority and armoured mobility. German tanks outflanked the Maginot Line and pushed deep into France, occupying Paris unopposed on 14 June. After the flight of the French government and the collapse of the French army, German commanders met with French officials on 18 June to negotiate an end to hostilities.