With the approach of Soviet Union forces in the summer of 1944, the Germans had plans to burn the town. On July 25, 1944, the German occupation forces were attacked by fighters of the Polish resistance. The town was soon freed from the Germans.