During the joint German-Soviet invasion of Poland, which started World War II in September 1939, the town was invaded by Germany.
In September 1939, when Germany and the Soviet Union invaded Poland, leading to the start of World War II, the town came under German control.