After the Tang Dynasty, Emperor Xuanzong of the Tang Dynasty made Confucius the king of Wenxuan, and all parts of the country offered sacrifices to Confucius. Confucius Temple, also known as Confucian Temple, is a combination of temple learning, offering sacrifices to Confucius and teaching and educating people. Liuzhou Confucian Temple was built in the early years of Zhenguan in Tang Dynasty. In June of the tenth year of Tang Yuanhe, Liu Zongyuan went to Liuzhou as a secretariat and found that the Confucian Temple in Liuzhou had been destroyed. He organized officials and people to rebuild the Confucian Temple, and spent two months writing the Newly-revised Confucian Temple Monument in Wang Wenxuan, Liuzhou. In the early years of Hongwu in Ming Dynasty, two Confucian temples were built in Fu Xue (Yingshan Street No.2 Middle School) and Hexian School (Dongtai Road, the former municipal government kindergarten). 1928, Liuzhou Confucian Temple disappeared in a disaster that burned half the city. Since then, it has always been the wish of Liuzhou people to rebuild the Confucian Temple. In 2009, Liuzhou Municipal Government decided to rebuild Liuzhou Confucian Temple at the west foot of the lampstand on the south bank of Liujiang River, and listed it as one of the top ten cultural construction projects in Liuzhou. The Liuzhou Confucian Temple, which is now located for reconstruction, is reborn from nirvana, surrounded by mountains and waters. Among the more than 2,000 Confucian temples in China, the natural environment is unique and the landscape is far superior to other places.
During the Zhenguan period of the Tang Dynasty, the Confucian Temple was built in Liuzhou. In the 10th year of Yuanhe (AD 8 15), Liu Zongyuan was appointed as the secretariat of Liuzhou, and the Confucian Temple was rebuilt in August, which was completed in June of 15. Liu Zongyuan rebuilt Wenxuan King Temple (the original site has not been tested), highly praised Confucius and Confucian theoretical thoughts, and expounded the close relationship between the spread of Confucius' thoughts and the implementation of government decrees by the central government, which made Liuzhou's administrative management smoother, "people went down" and the social, economic and cultural progress was rapid. From the Yuan Dynasty to the 26th year of the Yuan Dynasty (1289), the local officials re-established the Temple Monument of Wenxuan King in Liuzhou (then Liucheng Branch). The lower part of the temple monument is engraved with the image of Liu Zongyuan, which is now in Liu Hou Temple. In the sixth year of Hongwu in the Ming Dynasty (1373), the Confucian Temple in Liuzhou was moved to the northwest of the city (now the area of No.2 Middle School in the city), and there was no ground building.