1500 when the Portuguese established their colony and started cultivating sugarcane there. They brought people from Africa mainly as slaves to cultivate sugarcane, who had to work in the fields as slaves.
In 1532, São Vicente was established as the first permanent Portuguese settlement, and in 1549, Salvador was declared the first capital of Brazil.