Founded by the Portuguese in the 16th century (though several indigenous groups have lived in the area for millennia), Rio de Janeiro is the second-largest city in Brazil.