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.