During the invasion of Poland, on September 14–16, 1939, Poles defeated invading Germans in the Battle of Jaworów. Despite the victory, the town soon fell to the Soviets, and was under Soviet occupation from 1939 to 1941, and then under German occupation until 1944.