In 1683, following the defeat of Koxinga's grandson by an armada led by Admiral Shi Lang of southern Fujian, the Qing dynasty formally annexed Taiwan, placing it under the jurisdiction of Fujian province. The Qing imperial government tried to reduce piracy and vagrancy in the area, issuing a series of edicts to manage immigration and respect aboriginal land rights. Immigrants mostly from southern Fujian continued to enter Taiwan. The border between taxpaying lands and what was considered "savage" lands shifted eastward, with some aborigines becoming sinicized while others retreated into the mountains. During this time, there were a number of conflicts between different ethnic groups of Han Chinese, Quanzhou Minnanese feuding with Zhangzhou and Hakkas peasants, and major clan fights between Minnans (Hoklos), Hakkas and aborigines too.