Prior to 1945 it was in Germany. After World War II the region was placed under Polish administration and ethnically cleansed according to the post-war Potsdam Agreement. The native German populace was expelled and replaced with Poles. For more information about the history of the region, see Silesia.