the dungan revolt (1862–1877) or tongzhi hui revolt (, xiao'erjing: توْجِ حُوِ بِيًا/لُوًا, ) or hui (muslim) minorities war was a mainly ethnic and religious war fought in 19th-century western china, mostly during the reign of the tongzhi emperor (r. 1861–1875) of the qing dynasty. the term sometimes includes the panthay rebellion in yunnan, which occurred during the same period. however, this article relates specifically to the uprising by members of the muslim hui and other muslim ethnic groups in china's shaanxi, gansu and ningxia provinces, as well as in xinjiang, between 1862 and 1877.