Bao Zheng is a true historical figure of the Northern Song Dynasty in China. It is a typical model of the Qing Dynasty. It is called Bao Qingtian and Bao Gong. After the death of Bao Zheng, he was deified. The people built the Baogong Temple to worship the "Chiu Chitose" and the fifth temple, "Yama, King of Hell", and the "Emperor Yama". The development of the temples of Taiwan's Baogong faith, from the Qing Dynasty to the Japanese rule, from 1945 to 2018, was investigated and there were about thirty-two temples. The Baogong Temple, which was built earlier in the temple, highlights and enhances the status of the temple itself. It is crowned with the "Founding Temple" and the "Ancestral Temple" to form a unique network of beliefs. The main purpose of this paper is to climb the temple of Nansha Temple in Tainan City, the "Founding Baogong Temple" and the Haiqing Temple in Yunlin County. For the rationality of the opening of the temples and temples in the two temples, and how to consolidate their legitimacy.