Uyghur views vary by the oasis where they live. China has historically favored Turpan and Hami. Uyghurs in Turfan and Hami and their leaders like Emin Khoja allied with the Qing against Uyghurs in Altishahr. During the Qing dynasty, China enfeoffed the rulers of Turpan and Hami (Kumul) as autonomous princes, while the rest of the Uyghurs in Altishahr (the Tarim Basin) were ruled by Begs. Uyghurs from Turpan and Hami were appointed by China as officials to rule over Uyghurs in the Tarim Basin. Turpan is more economically prosperous and it views China more positively than does the rebellious Kashgar, which is the most anti-Chinese oasis. Uyghurs in Turpan are treated leniently and favorably by China with regards to religious policies, while Kashgar is subjected to controls by the government. In Turpan and Hami, religion is viewed more positively by China than religion in Kashgar and Khotan in southern Xinjiang. Both Uyghur and Han Communist officials in Turpan turn a blind eye to the law and allow religious Islamic education for Uyghur children. Celebrating at religious functions and going on Hajj to Mecca is encouraged by the Chinese government, for Uyghur members of the Communist party. From 1979–1989, 350 mosques were built in Turpan. Han, Hui, and the Chinese government is viewed much more positively by Uyghurs, specifically in Turpan, where the government gives them better economic, religious, and political treatment.