After the capitulation of Nazi Germany in 1945, the town was placed under Polish administration according to the Potsdam Conference. Since then it remains as part of Poland. The German inhabitants of the town were expelled. The town was repopulated by Poles, some of the whom were Polish refugees from regions east of the Curzon line, the Kresy, from where they had been displaced by Soviet authorities in accordance to new borders decided at Yalta Conference, while most came from war-devastated central Poland. In May 1945 Czechoslovakia tried to annex the area on behalf of Czech minority (living especially in the western part of the land, called "Czech Corner") and historical claims, but on pressure of Soviet union ceased military operations and Czech minority was expelled to Germany and Czechoslovakia.