Potsdam Agreement
Prior to 1945 it was in Germany. After World War II the region was placed under Polish administration and its pre-war German populace was expelled under the Potsdam Agreement.