Some couplets praised "the building is 800 miles in southern Xinjiang, which is the first floor of Yunnan government." During the Tang and Yuan Dynasties, Nanzhao regime built Huili City here, which was a earthen city. In the twenty years of Hongwu in Ming Dynasty, after the Ming army pacified Yunnan, it set up and built forests, and expanded the land into brick cities on the basis of the original earth cities. There are four gates in the city, namely Ying Hui at the east gate, Fuan at the south gate, Qingyuan Gate at the west gate and Yongzhen Gate at the north gate. In the late Ming Dynasty, the northwest, south and north floors were destroyed by war, leaving only the East Building.