in 1815, when French occupation during the Napoleonic Wars was lifted. The former Brandenburg-Prussian Pomerania and the former Swedish parts were reorganized into the Prussian Province of Pomerania, while Pomerelia in the partitions of Poland was made part of the Province of West Prussia. With Prussia, both provinces joined the newly constituted German Empire in 1871. Following the empire's defeat in World War I, Pomerelia became part of the Second Polish Republic (Polish Corridor) and the Free City of Danzig was created. Germany's Province of Pomerania was expanded in 1938 to include northern parts of the former Province of Posen–West Prussia, and in 1939 the annexed Polish territories became the part of Nazi Germany known as Reichsgau Danzig-West Prussia. The Nazis deported the Pomeranian Jews to a reservation near Lublin and mass-murdered Jews, Poles and Kashubians in Pomerania, planning to eventually exterminate Jews and Poles and Germanise the Kashubians. 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 placed under Soviet military control. The area west of the line became part of East Germany, the other areas part of the People's Republic of Poland even though it did not have a sizeable Polish population. The German population of the areas east of the line was expelled, and the area was resettled primarily with Poles, some of whom were themselves expellees from former eastern Poland) and some Ukrainians who were resettled under Operation Vistula) and Jews. Most of Western Pomerania stayed with Germany and was merged into Mecklenburg. With the consolidation of Communism in East Germany and Poland, Pomerania was part of the Eastern Bloc. In the 1980s, the Solidarność movement in Gdańsk (Danzig) and the Wende movement in East Germany forced the Communists out of power and led to the establishment of democracy in both the Polish and German part of Pomerania. Timeline 1945–present 1945: The Oder-Neisse line becomes the border between Poland and Germany 5July 1945: In addition, Stettin/Szczecin and the mouth of the Oder River were assigned to Poland by the Soviet Union 1945–1949: Soviet military officials east of the Oder-Neisse line subsequently hand over administration to Polish officials, Farther Pomerania and the Stettin area reorganized in the Polish Szczecin Voivodeship 1945–1950: expulsion of nearly all Germans east of the line since 1945: Farther Pomerania and other ethnically cleansed areas dubbed Recovered Territories and