<P> At the same time the Mongols imported Central Asian Muslims to serve as administrators in China, the Mongols also sent Hans and Khitans from China to serve as administrators over the Muslim population in Bukhara in Central Asia, using foreigners to curtail the power of the local peoples of both lands . Hans were moved to Central Asian areas like Besh Baliq, Almaliq, and Samarqand by the Mongols where they worked as artisans and farmers . Alans were recruited into the Mongol forces with one unit called "Right Alan Guard" which was combined with "recently surrendered" soldiers, Mongols, and Chinese soldiers stationed in the area of the former Kingdom of Qocho and in Besh Balikh the Mongols established a Chinese military colony led by Chinese general Qi Kongzhi (Ch'i Kung - chih). After the Mongol conquest of Central Asia by Genghis Khan, foreigners were chosen as administrators and co-management with Chinese and Qara - Khitays (Khitans) of gardens and fields in Samarqand was put upon the Muslims as a requirement since Muslims were not allowed to manage without them . The Mongol appointed Governor of Samarqand was a Qara - Khitay (Khitan), held the title Taishi, familiar with Chinese culture his name was Ahai . </P> <P> Han officials and colonists were sent by the Mongol Yuan dynasty to areas of Lingbei province (和 宁 路 益 蘭州 謙 州). </P> <P> Despite the high position given to Muslims, some policies of the Yuan Emperors severely discriminated against them, restricting Halal slaughter and other Islamic practices like circumcision, as well as Kosher butchering for Jews, forcing them to eat food the Mongol way . Toward the end, corruption and the persecution became so severe that Muslim generals joined Hans in rebelling against the Mongols . The Ming founder Zhu Yuanzhang had Muslim generals like Lan Yu who rebelled against the Mongols and defeated them in combat . Some Muslim communities had a Chinese surname which meant "barracks" and could also mean "thanks". Many Hui Muslims claim this is because that they played an important role in overthrowing the Mongols and it was given in thanks by the Hans for assisting them . During the war fighting the Mongols, among the Ming Emperor Zhu Yuanzhang's armies was the Hui Muslim Feng Sheng . The Muslims in the semu class also revolted against the Yuan dynasty in the Ispah Rebellion but the rebellion was crushed and the Muslims were massacred by the Yuan loyalist commander Chen Youding . </P> <P> The historian Frederick W. Mote wrote that the usage of the term "social classes" for this system was misleading and that the position of people within the four - class system was not an indication of their actual social power and wealth, but just entailed "degrees of privilege" to which they were entitled institutionally and legally, so a person's standing within the classes was not a guarantee of their standing, since there were rich and well socially standing Chinese while there were less rich Mongol and Semu than there were Mongol and Semu who lived in poverty and were ill - treated . </P>

Who was responsible for overthrowing the emperor of the yuan dynasty in 1368
find me the text answering this question