Ocotepec was established in the 15th century as part of the Aztec Empire. Ocotepec was separate from Cuauhnáhuac, but it became part of the Marquessate of the Valley of Oaxaca of Hernán Cortés in 1529. Construction of the convent of the Divino Salvador was begun in 1536 and finished in 1592.
