Once part of the Coixtlahuaca state, after the Spanish conquest the town was officially founded in 1692.