The capital of Brazil is Brasília, a planned city that was built to be the capital of the country. Before that, Brazil had two other capital cities: Salvador (1549–1763) and Rio de Janeiro (1763–1960).