By the end of the 17th century, sugarcane exports began to decline, and the discovery of gold by bandeirantes in the 1690s would become the new backbone of the colony's economy, fostering a Brazilian Gold Rush, attracting thousands of new settlers to Brazil, from Portugal and all Portuguese colonies around the World, which in turn caused some conflicts between newcomers and old settlers.