The first written mention of Zdice is from 1148. It was probably founded in 1039. Until 1302, it was owned by the
bishopric in Prague, then it was joined to the town of Beroun. In 1357, the village was merged with the newly established
Karlštejn estate, owned by the royal chamber. During the rule of King
Sigismund, Zdice was annexed to the
Točník estate, to which it belonged until 1607. From 1607 until the establishment of an independent municipal administration after 1848, the village belonged to the Králův Dvůr estate. Zdice underwent industrialisation in the second half of the 19th century, and the population grew. In 1872, Zdice was promoted to a
market town, and in 1994, it officially became a town. ==Demographics==