Reichsgau Wartheland
In September 1939, the town was occupied by the German Wehrmacht. It became part of the Samter district in Reichsgau Wartheland. Towards the end of World War II, the Red Army captured the area and the town was restored to Poland.