A little history…
Rio de Janeiro was once the capital city of Portugal.
This was declared in 1763, when the Portuguese began to colonise Brazil and took control of the Cidade Maravilhosa (Marvellous City). This made Rio the first and only European capital outside of Europe.