 In the final stages of the war, the town was captured by the Soviet Red Army in May 1945.Its German population was largely evacuated or expelled.After the war, following the Potsdam Agreement, it became again part of Poland, and its Polish name was restored.