The Yuan dynasty started passing anti-Muslim and anti-Semu laws and getting rid of Semu Muslim privileges towards the end of the Yuan dynasty, in 1340 forcing them to follow Confucian principles in marriage regulations, in 1329 all foreign holy men including Muslims had tax exemptions revoked, in 1328 the position of Muslim Qadi was abolished after its powers were limited in 1311. In the middle of the 14th century this caused Muslims to start rebelling against Mongol Yuan rule and joining rebel groups. In 1357-1367 the Yisibaxi Muslim Persian garrison started the Ispah rebellion against the Yuan dynasty in Quanzhou and southern Fujian. Persian merchants Amin ud-Din (Amiliding) and Saif ud-Din) Saifuding led the revolt. Persian official Yawuna assassinated both Amin ud-Din and Saif ud-Din in 1362 and took control of the Muslim rebel forces. The Muslim rebels tried to strike north and took over some parts of Xinghua but were defeated at Fuzhou two times and failed to take it. Yuan provincial loyalist forces from Fuzhou defeated the Muslim rebels in 1367 after A Muslim rebel officer named Jin Ji defected from Yawuna.