 Yaqub Beg's Uyghur forces declared a Jihad against Hui under T'o Ming during the Dungan revolt.The Uyghurs mistakenly thought that the Hui Muslims were Shafi`i, and since the Uyghurs were Hanafi that they should wage war against them.Yaqub Beg enlisted non-Muslim Han Chinese militia under Hsu Hsuehkung in order to fight against the Hui.