Following the joint German-Soviet invasion of Poland, which started World War II in September 1939, Solec was occupied by Germany until 1945. The Germans established and operated a Baudienst forced labour camp for Poles in Solec.