After the joint German-Soviet invasion of Poland, which started World War II, it was occupied by Germany from 1939 to 1945. Żerków was used by the Germans as a resort spot for soldiers. In 1943, the Germans renamed the town "Bergstadt" to erase traces of Polish origin. In 1945 the occupation ended and the historic name was restored.