During the Qingli period of Renzong in the Northern Song Dynasty (1041-1048), wars broke out frequently in the Western Xia Dynasty, and the "Qingli New Deal" in the court was implemented and undercurrents surged. It not only had the background of prosperous Bianjing, but also had the contradictions of local governance, which was suitable for developing the line between officialdom and people's livelihood.