In 1369, when Ming Dynasty General Xu Da entered Shaanxi from Shanxi, he changed the original Fengyuan Road to Xi'an Mansion, taking the meaning of "Western long-term peace", thus starting the rule of the Ming Dynasty in Xi'an, and also opened the curtain of the Ming Dynasty building the city wall in Xi'an. Before the establishment of the Ming Dynasty, when Zhu Yuanxuan conquered Huizhou, a hermit named Zhu Sheng told him that he should "build high walls, accumulate grain, and call the king slowly." Zhu Yuanxuan adopted these suggestions. When the country was unified, he ordered all prefectures to build cities generally. Yongningmen is the south gate of the Ming city wall.