Rio de Janeiro was the capital of Brazil for nearly two centuries from 1763 to 1960. It is nicknamed the "Marvelous City" and is one of the most visited cities in the southern hemisphere, known for its natural settings, carnival celebrations, beaches, and music like samba and bossa nova.