Human settlement on the present site of Guatemala City began with the Maya who built a city at Kaminaljuyu. The Spanish colonists established a small town, which was made a capital city in 1775. At this period the Central Square with the Cathedral and Royal Palace were constructed. After Central American independence from Spain the city became the capital of the United Provinces of Central America in 1821.
The 19th century saw the construction of the monumental Carrera Theater in the 1850s, and the Presidential Palace in the 1890s. At this time the city was expanding around the 30 de junio Boulevard and elsewhere, displacing native settlements from the ancient site. Earthquakes in 1917–1918 destroyed many historic structures.