The Qing treated Han and Hui civilians in the same legal category. Both Han and Hui were moved from the walled city in Beijing to the outside,[28] while only Bannermen could reside inside the walled city.