Answer
In the 1820s, Schäffer became an agent for the Empire of Brazil, which was then in the process of gaining its independence from Portugal. He was tasked with exploring the country's natural resources and promoting its economic development. As part of this mission, he visited various parts of Brazil, including the Amazon River basin, and collected a large number of specimens of plants, animals, and minerals.