Semu

Semu is the name of a caste established by the Yuan dynasty. The 31 Semu categories referred to people who came from Central and West Asia. They had come to serve the Yuan dynasty by enfranchising under the dominant Mongol caste. The Semu were not a self-defined and homogeneous ethnic group per se, but one of the four castes of the Yuan dynasty: the Mongols, Semu (or Semuren), the "Han" (Hanren in Chinese, or all subjects of the former Jin dynasty, Dali Kingdom and Koreans) and the Southerners (Nanren in Chinese, or all subjects of the former Southern Song dynasty; sometimes called Manzi). Among the Semu were Buddhist Turpan Uyghurs, Tanguts and Tibetans; Nestorian Christian tribes like the Ongud; Alans; Muslim Central Asian Turkic peoples including the Khwarazmians and Karakhanids; West Asian Arab, Jewish, Christians and other minor groups who are from even farther west.

Name
Contrary to popular belief among both non-Chinese and Chinese, the term "Semu" (interpreted literally as "color-eye") did not imply that caste members had "colored eyes" and it was not a physical description of the people it labelled. It in fact meant "assorted categories" (各色名目, gè sè míng mù), emphasizing the ethnic diversity of Semu people.

Classification
The 31 Semu categories referred to people who came from Central and West Asia. They had come to serve the Yuan dynasty by enfranchising under the dominant Mongol caste. The Semu were not a self-defined and homogeneous ethnic group per se, but one of the four castes of the Yuan dynasty: the Mongols, Semu (or Semuren), the "Han" (Hanren in Chinese, or all subjects of the former Jin dynasty, Dali Kingdom and Koreans ) and the Southerners (Nanren in Chinese, or all subjects of the former Southern Song dynasty; sometimes called Manzi). Among the Semu were Buddhist Turpan Uyghurs of Qocho, Tanguts and Tibetans; Nestorian Christian tribes like the Ongud; Alans; Muslim Central Asian Persian and Turkic peoples including the Khwarazmians and Karakhanids; West Asian Jewish and other minor groups who are from even further Europe.

While administratively classified as Semu, many of these groups rather referred to themselves by their self-aware ethnic identities in everyday life, such as the Uyghurs. Muslims, Persians, Karakhanids and Khwarazmians in particular, were actually mistaken to be Uyghurs or at least, "from the land of the Uyghurs". Therefore, they adopted the label conferred to them by the Chinese: "Huihui", which was a corruption of the name Uyghur, but at the same time distinguishable from the name reserved for Buddhist Turpan Uyghurs proper, "Weiwuer". Of the many ethnic groups classified as "Semu" during the Yuan, only the Muslim Hui managed to survive into the Ming period as a large collective identity with self-awareness of common identity spanning across the whole China.

Other ethnic groups were either small and confined to limited localities (such as the Buddhist Turpan Uyghurs in Wuling, Hunan, and the Kaifeng Jews), or were forced to assimilate into the Han Chinese or Muslim Huis (such as some Christian and Jewish Semu in the Northwest, who, though thoroughly Islamicized, still unto this day retain peculiar labels like "Black Cap/Doppa Huihui", "Blue Cap Huihui").

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. Thus a person's "class" was not a guarantee of their social standing, since there were rich Chinese of good social standing, while there were fewer rich Mongols and Semu than there were ill-treated Mongols and Semu living in poverty.

The reason for the order of the classes and the reason why people were placed in a certain class was the date they surrendered to the Mongols, and had nothing to do with their ethnicity. The earlier they surrendered to the Mongols, the higher they were placed, the more the held out, the lower they were ranked. The Northern Chinese were ranked higher and Southern Chinese were ranked lower because southern China withstood and fought to the last before caving in. Major commerce during this era gave rise to favorable conditions for private southern Chinese manufacturers and merchants.

When the Mongols placed the Uighurs of Qocho over the Koreans at the court the Korean King objected, then the Mongol Emperor Kublai Khan rebuked the Korean King, saying that the King of Qocho was ranked higher than the Karluk Karakhanid khan, who in turn was ranked higher than the Korean king, who was ranked last, because the Uighurs surrendered to the Mongols first, the Karluks surrendered after the Uighurs, and the Koreans surrendered last, and that the Uighurs surrendered peacefully without violently resisting. Koreans were ranked as Han people along with northern Chinese.

Japanese historians like Uematsu, Sugiyama and Morita criticized the perception that a four class system existed under Mongol rule and Funada Yoshiyuki questioned the very existence of the Semu as a class.

Similar practices in other areas of the Mongol Empire
Bukhara and Samarqand were visited by Qiu Chuji. At the same time the Mongols imported Central Asian Muslims to serve as administrators in China, the Mongols also sent ethnic Han and Khitans from China to serve as administrators over the Muslim population in Bukhara and Samarqand in Central Asia, using foreigners to curtail the power of the local peoples of both lands. The surname of Li was held by one of Yelu Ahai's staff of Han descent. There were various Han craftsmen. Tangut, Khitan and Han peoples took control over gardens and fields from the Muslims. Han people were moved to Central Asian areas like Besh Baliq, Almaliq, and Samarqand by the Mongols where they worked as artisans and farmers.

After the Mongol conquest by Genghis Khan, foreigners were chosen as administrators and co-managers alongside Han and Khitans in the gardens and fields of Samarqand. Muslims were not allowed to manage without them.

The Mongol-appointed Governor of Samarqand, Ahai, was a Qara-Khitay (Khitan) who held the title Taishi. He was familiar with Han culture.

Muslims viewed Chagatai Khan with negativity and hostility because Chagatai Khan strictly enforced Mongol Yasa law against Islamic Shariah law banning Halal animal slaughter and Islamic prayer ritual ablution as well as the Islamic legal system. The Uyghur steward Vajir was accused of poisoning Chagatai Khan to death in 1242 by his wife Yisulun.

Ethnic Han officials and colonists were sent by the Yuan dynasty to areas of Lingbei Province (和宁路 益蘭州 謙州).

Yuan dynasty
Genghis Khan and the following Yuan emperors forbade Islamic practices like Halal butchering, forcing Mongol methods of butchering animals on Muslims, and other restrictive degrees continued. Muslims had to slaughter sheep in secret. Genghis Khan directly called Muslims and Jews "slaves", and demanded that they follow the Mongol method of eating rather than the halal method. Circumcision was also forbidden. Jews were also affected, and forbidden by the Mongols to eat Kosher. Toward the end, corruption and the persecution became so severe that Muslim Generals joined Han Chinese 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 the name in Chinese which meant "barracks" and also mean "thanks"; many Hui Muslims claim it is because that they played an important role in overthrowing the Mongols and it was named in thanks by the Han Chinese for assisting them.

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. After the massacre, the remaining Jews and Muslims escaped. Some were back to their own country, but some like Jews escaped to Guangdong.

Ming dynasty
After expelling the Mongols, the Ming dynasty was soon founded. Because of the Semu's help, some of them were being employed into the central government. However, the Ming dynasty enforced assimilation to Chinese customs, such as banning used their own languages, customs, names and instead switching to speaking Chinese and using Chinese names and intermarrying with Han people.

The aim for it is to reduce Semu's population since Semu was in the second class in Yuan and used to help the Mongols. Some Hui claim that the order was secretly done by the Ming Hongwu Emperor to protect them from attacks since they stood out while they thought Zhu was a Hui too.

Indeed, Zhu was not a Hui while at that time only the Semu used this name. But in the middle period of Ming Dynasty, the royalties separated Semu into different groups while the groups as Muslims and Tibetans were still many. The Islam and Tibetan religions have survived until today. But the minority groups such as Jews, most of their customs were no more, leaving them into the Han group. This separation continued until the establishment of the Republic of China.

The new separation doesn't mean there are only 56 ethnic groups. This list doesn't include small populations like Jewish. Even if such ethnicities are so few in numbers, they still continue to exist in China.

The Ming dynasty allowed Islam and Judaism to be practiced and issued edicts that said they conformed to Confucianism while it banned religions such as Nestorian Christianity, Manicheanism and the White Lotus sect. Nestorian Christianity and Manicheanism died out during the Ming dynasty while Islam and Judaism were protected.

The Uyghurs of Taoyuan are the remnants of Uyghurs from Turpan from the Kingdom of Qocho.