Towards the end of World War II, the town was captured by the Red Army on January 27, 1945. After the end of the war, the town was part of the region that became part of Poland under the terms of the Potsdam Agreement.
