Sri Lanka's earliest known visitor from China was Faxian, a 5th-century Buddhist pilgrim from Shanxi who travelled overland from his home through present-day Nepal and India before coming to Abhayagiri Dagaba, where he stayed from 410 to 414. During the Ming dynasty in the Yongle Emperor's reign, Admiral Zheng He's Treasure voyages visited Sri Lanka and fought in the Ming–Kotte War. When Ceylon was under Dutch rule in the 17th and 18th centuries, the Dutch East India Company authorities at Batavia (present-day Jakarta, Indonesia) would occasionally deport unemployed or illegal Chinese residents to Ceylon (as well as other Dutch colonies, such as the Cape of Good Hope and the Banda Islands), in order to provide manpower and limit the growth of the foreign population in Batavia. In July 1740, a plan was drawn up for mass deportations of Chinese from Batavia to work in cinnamon harvesting in Ceylon. Rumours spread that the deportees were not taken to Ceylon at all but were instead thrown overboard as soon as they were out of sight of the Java coastline, provoking unrest in the Chinese community. The resulting conflict between the Chinese and the Dutch eventually led to the 1740 Batavia massacre.