Rio de Janeiro has a rich and complex history that dates back to the 16th century when Portuguese explorers first arrived in Brazil. It was the capital of Brazil until 1960 and has played an important role in the country's cultural and political development. The city was also a hub of the transatlantic slave trade and had a significant Afro-Brazilian influence on its culture.