In 1763, the capital of Brazil was moved from Salvador to Rio de Janeiro due to its safer position on a hill called Castle Hill. Rio de Janeiro became the capital of Brazil and remained so until Brasilia was made the capital in 1960, with Rio known for its beauty surrounded by hills and beaches.