The Muslim merchants in Quanzhou who engaged in maritime trade enriched their families which encompassed their political and trade activities as families. Historians see the violent Chinese backlash that happened at the end of the Yuan dynasty against the wealth of the Muslim and Semu as something inevitable, however anti-Muslim and anti-Semu laws had already been passed by the Yuan dynasty. In 1340 all marriages had to follow Confucian rules, in 1329 all foreign holy men and clerics including Muslims no longer were exempt from tax, in 1328 the Qadi (Muslim headmen) were abolished after being limited in 1311. This resulted in anti-Mongol sentiment among Muslims so some anti-Mongol rebels in the mid 14th century were joined by Muslims. Quanzhou came under control of Amid ud-Din (Amiliding) and Saif ud-Din (Saifuding), two Persian military officials in 1357 as they revolted against the Mongols from 1357-1367 in southern Fujian and Quanzhou, leading the Persian garrison (Ispah) They fought for Fuzhou and Xinghua for 5 years. Both Saifuding and Amiliding were murdered by another Muslim called Nawuna in 1362 so he then took control of Quanzhou and the Ispah garrison for 5 more years until his defeat by the Yuan.