The first written mention of Cehnice is from 1342, when a fortress stood here and Cehnice was in the possession of the Lords of Říčany. They owned Cehnice until 1602, when it was annexed to the Štěkeň estate. In 1540, the village was promoted to a market town, but it later lost its privileges.