Answer
Guatemala City became the capital of the Kingdom of Guatemala in 1776, after the Spanish conquest. The city was established as a new town and has since played a significant role in the region's history, including the declaration of independence of Central America from Spain in 1821.