 Han and Hui settlement in the Tarim Basin was banned until the 1830 Muhammad Yusuf Khoja invasion, after which the Qing rewarded the merchants for fighting off Khoja by allowing them to settle down.In 1870, there were many Chinese of all occupations living in Dzungaria, and they were well settled in the area, while in Turkestan (Tarim Basin) there were only a few Chinese merchants and soldiers in several garrisons among the Muslim population.At the start of the 19th century, 40 years after the Qing reconquest, there were around 155,000 Han and Hui Chinese in northern Xinjiang and somewhat more than twice that number of Uyghurs in southern Xinjiang.