During the Ming and Qing Dynasties, there were Yiwu Temple, Sanfu Temple, Sanjiang Ning Temple and Confucius Temple in Nanjing.
In addition, in the east of imperial academy, there is a Confucius Temple, also called the Confucian Temple, dedicated to Confucius. Confucius was a great educator and thinker in the late Spring and Autumn Period, but his life was very bumpy. In his own words, he is as lost as a lost dog. But I'm afraid I can't even know Kong himself. I didn't expect this. About 500 years after his death, he adopted the advice of Dong Zhongshu, a Confucian scholar, to oust hundreds of schools and respect Confucianism alone. The value of Confucius began to soar, and he almost became the god of education in traditional China society. After the founding of the People's Republic of China and after the founding of the People's Republic of China, people paid more attention to Confucius, a former teacher, and set up Confucius temples in colleges and universities to worship the god of education. During the Kaiyuan period, Confucius was named King Wenxuan, so Confucius Temple was called King Wenxuan Temple. Confucius and Old Master Q were completely deified. Around the Song and Yuan Dynasties, people called Confucius Temple. Since then, Confucius Temple and Confucius Temple have been mixed names in China society. Before the founding of the Ming Dynasty, when Zhu Yuanzhang changed Qing Ji Road School to Guo Zi School, there was a Confucius Temple in the school, which is what we know today as the Confucius Temple in the south of Nanjing. It was the first Confucius Temple in Nanjing during the Ming and Qing Dynasties. Next to it, imperial academy was renamed Jiangning Fu Xue, the first Jiangning Fu Xue in Ming and Qing Dynasties. In the 14th year of Hongwu, Zhu Yuanzhang ordered the construction of imperial academy in front of Jiming Mountain, and in the second year, he ordered the construction of a new temple on the east side of New imperial academy for teachers and students in imperial academy to worship Confucius. This is the second Confucian temple in Nanjing during the Ming and Qing Dynasties, which is the Wu Temple located in the compound of Nanjing Municipal Government today. So why is the original Confucian Temple now renamed Wu Temple? After the demise of the Ming Dynasty, Nanjing was occupied by the Qing army. In the ninth year of Qing Dynasty, the former Ming Dynasty imperial academy in front of Jiming Mountain was changed to Jiangning official school, which was the second Jiangning official school in Ming and Qing Dynasties. At the same time, in the Confucius Temple in the south of Nanjing, the original Jiangning official school in the Ming Dynasty was once again downgraded to Shangyuan County School and Jiangning County School. At the end of the Qing Dynasty, the Taiping Heavenly Kingdom made Nanjing its capital, and both the Qing army and the Taiping Heavenly Kingdom army regarded Nanjing as a battleground for both sides. Jiangning official school in front of Jiming Mountain in Nanjing and the Confucian temple in the east were completely destroyed in the war, leaving nothing behind. In the fifth year of Tongzhi in Qing Dynasty, Liangjiang, also known as Changning stationmaster, ordered Xu Zongying, the magistrate, to build Jiangning official school. Because the official school building in front of Jiming Mountain has been completely destroyed, Xu Zhifu had to build a new official school near Yeshan Road Courtyard, the former site of Chaotian Palace in Ming Dynasty, which took four years to complete. After the completion, Jiangning Fu Xue officially moved into the Chaotian Palace, forming three buildings: East, West and Middle. To the east is Jiangning official school, which is the third Jiangning official school in Ming and Qing Dynasties. In the west, there is the Biansi, and in the middle is the Confucian Temple, the third largest Confucian Temple in Nanjing in Ming and Qing Dynasties. At the same time, people moved the Wu Temple north of Hujuguan to the original site of the Confucian Temple east of Jiming Mountain, forming the Wu Temple in the East Courtyard of Nanjing Municipal Government today.