Answer
In 1821, Guatemala City was the scene of the declaration of independence of Central America from Spain. After gaining independence, the city became the capital of the newly established United Provinces of Central America, which later became the Federal Republic of Central America.