临夏回族自治州
After successfully repulsing Zuo Zongtang's initial assault in 1872 and inflicting heavy losses on Zuo's army, Ma Zhan'ao offered to surrender his stronghold to the Qing, and provide assistance to the dynasty for the duration of the war. He managed to preserve his Dungan community with his diplomatic skill. While Zuo Zongtang pacified other areas by exiling the local Muslims (with the policy of "washing off the Muslims" () approach that had been long advocated by some officials), in Hezhou, the non-Muslim Han were the ones Zuo chose to relocate as a reward for Ma Zhan'ao and his Muslim troops helping the Qing crush Muslim rebels. Hezhou (Linxia) remains heavily Muslim to this day, achieving the status of Linxia Hui Autonomous Prefecture under the PRC. Other Dungan generals including Ma Qianling and Ma Haiyan also defected to the Qing side along with Ma Zhan'ao. Ma's son Ma Anliang also defected, and their Dungan forces assisted Zuo Zongtang's Qing forces in crushing the rebel dungans. Dong Fuxiang also defected to the Qing. He was in no sense a fanatical Muslim or even interested in revolt, he merely gained support during the chaos and fought, just as many others did. He joined the Qing army of Zuo Zongtang in exchange for a Mandarinate. He acquired estates which were large.