 Before 1945 the area was part of Germany.After World War II the region was placed under Polish administration by the Potsdam Agreement under territorial changes demanded by the Soviet Union.Most Germans fled or were expelled and were replaced with Poles expelled from the Polish areas annexed by the Soviet Union.