Rio de Janeiro was once the capital of Portugal, making it the only European capital outside of Europe.