While this was happening, they founded the city of Popayán in 1536 and they conquered the "Confederation of the Muiscas". In Bacatá, the capital of the Muiscas, the Spanish founded the city of Santa Fe in 1538. In 1550 the Spanish declared the territory as a colony and its capital was "Santa Fe de Bogotá", but in the first decades it depended on Peru. Soon after, it was declared a Viceroyalty.