In 1939, after the joint Invasion of Poland by Germany, the Soviet Union, and the Free City of Danzig, the area was annexed by Germany (see Polish areas annexed by Nazi Germany) in the Occupation of Poland. After the end of the Second World War, Polish territories seized by the Red Army as it advanced westward, were restored to the post-War Polish People's Republic.