The occupation of Poland by Nazi Germany and the Soviet Union during the Second World War (1939–1945) began with the German-Soviet invasion of Poland in September 1939, and it was formally concluded with the defeat of Germany by the Allies in May 1945.