In January 1945 during World War II, the town was 50% destroyed in fighting between German forces and the Soviet Red Army. As a result of border changes promulgated at the Potsdam Conference (July-August 1945), the town and the area was assigned to Poland. Remaining German residents who had survived were either evacuated or later expelled, and the town was repopulated with Poles.