in 1815, after the Napoleonic Wars. The former Brandenburg-Prussian Pomerania and the former Swedish parts were reorganized into the Prussian Province of Pomerania, while Pomerelia was made part of the Province of West Prussia. With Prussia, both provinces joined the newly constituted German Empire in 1871. Under German rule, the Polish minority suffered discrimination and oppressive measures aimed at eradicating its culture. Following the German Empire's defeat in World War I, however, Pomorze Gdańskie/Pomerelia was returned to the rebuilt Polish state as part of the so-called Polish Corridor), while German-majority Gdansk/Danzig was transformed into the independent Free City of Danzig. In 1938 Germany's Province of Pomerania was expanded to include northern parts of the former Province of Posen–West Prussia, and in late 1939 the annexed Pomorze Gdańskie/Polish Corridor became part of the wartime Reichsgau Danzig-West Prussia. The Nazis deported the Pomeranian Jews to a reservation near Lublin in Pomerelia. The Polish population suffered heavily during the Nazi oppression; more than 40,000 died in executions, death camps, prisons and forced labour, primarily those who were teachers, businessmen, priests, politicians, former army officers, and civil servants. Thousands of Poles and Kashubians suffered deportation, their homes taken over by the German military and civil servants, as well as some Baltic Germans resettled there between 1940 and 1943. After Nazi Germany's defeat in World War II, the German–Polish border was shifted west to the Oder–Neisse line, and all of Pomerania was in the Soviet Occupation Zone. The German inhabitants of the former eastern territories of Germany and Poles of German ethnicity from Pomerelia were expelled. Between 1945 and 1948, millions of ethnic Germans (Volksdeutsche) and German citizens (Reichsdeutsche), were removed from former German territory now governed by Poland and other Eastern European countries. Many German civilians were sent to internment and labor camps where they were used as forced labor as part of German reparations to countries in Eastern Europe. The death toll attributable to the flight and expulsions is disputed, with low-range estimates in the hundreds of thousands (see: Flight and Expulsion of Germans 1944-1950). The area was resettled primarily with Poles of Polish ethnicity, (some themselves expellees from former eastern Poland) and some Poles of Ukrainian ethnicity (resettled under Operation Vistula) and few Polish Jews. Most of Hither or Western Pomerania (Vorpommern) remained in Germany, and most of the expelled Pomeranians found refuge there, later many moved on to other German regions