Confucian temples, which were officially built in ancient China to worship Confucius, originated in the Tang Dynasty. In the Song Dynasty, Confucian temples were gradually built in large numbers in the cities of the Central Plains and the South of the Yangtze River. In the Yuan Dynasty, Confucian temples also appeared in Guizhou, Yunnan and the Qing Dynasty in Xinjiang and Northeast China. The main entrance of Pingyao Temple is the magnificent mooring gate. According to the Book of the Later Han Dynasty, the latter is Tianxing. The ancients believed that it was the star of the heavens. It was in charge of the selection of literati, implying that Confucius was the star of the heavens. Ancient emperors offered sacrifices to heaven, first to the stars. Confucius'lofty position in Chinese Dynasties was embodied by the setting of Hao Xingmen in the Confucian Temple. The gate is four pillars and three intervals, Xieshan style, wooden arch, dome arch is nine steps, eleven steps, roof glazed trim, pillars to the sky cloud crown. The shape is exquisite and magnificent.