The Changping Guandi Temple in Shanxi province was only a small village temple which did not gain attention of the local authorities before mid-Ming. In order to extend their power to the south of the salt lake where the temple stood, the local officials rebuilt the temple and brought it into the official sacrifice system during the mid-Ming era. This changed the traditional way of sacrifice, which was under the influence of Buddhism since the Jin dynasty, and also offered an opportunity to reconstruct the local culture. Since the end of the Ming dynasty, the local officials, intellectuals, and villagers cooperated actively, hoping that Changping could become as important as Queli (hometown of Confucius) in Shandong. They knew well about the changing of the national etiquette system and used the etiquette as a tool for the purpose of benefits for the local society, which can be seen through the following activities: the "discovery" of the grave of Guan Yu's grandfather, the rewriting of Guan Yu's father's and grandfather's stories, and the request of investiture for Guan Yu's ancestors in late Ming and early Qing. Coordinating with the change of etiquette system, the architectural pattern of the Changping Temple changed at the same time. The local officials rebuilt the temple to fit the national norm in the mid-Ming. After being recognized by the court, the local officials set up a new hall to worship Guan Yu's ancestors during the mid-Qing period. Besides, because the national worship for Guan Yu required his own posterity, who could thereby benefit much through the policy in the Qing dynasty, some people began to declare that they were Guan Yu's descendants. To obtain and sustain their special status, they built an ancestral hall, compiled the genealogy, and attended related sacrifice activities. Such changes of the architecture and the sacrificial ritual reflect the use of the national etiquette system and the transformation of the local society.