It had a monastery called El Carmen, founded in 1628. The capital of the Spanish Captaincy General of Guatemala, covering most of modern Central America, was moved here after a series of earthquakes — the Santa Marta earthquakes that started on July 29, 1773 — destroyed the old capital, Antigua.