Nieuhof was employed in Brazil to explore the regions between Maranhão and the São Francisco Rivers, made a particular study of the neighborhood of Pernambuco. He left Brazil in 1649, after the Portuguese victory in the Second Battle of Guararapes. Upon his return, Nieuhof joined the service of the Dutch East India Company (or "VOC"). In service of the VOC he resided several years in Batavia, and then was appointed in 1654 steward of an embassy to the relatively new Qing emperor China under Peter de Goyer and Jacob de Keyser, which aimed to gain trading rights on China's southern coast.