The Muslims of Xining were also spared by Zuo after his forces captured the city from the rebels. Zuo differentiated between rebels and "good Muslims", seeking to make arrangements to resettle Muslim refugees in new areas in order to prevent the outbreak of future conflicts. Zuo Zongtang resettled Hui refugees from Shaanxi in southern Gansu province after he defeated the rebels in Xining and Suzhou.