

TheConfucian Temple orTemple of Confucius of Shanghai (simplified Chinese:上海文庙;traditional Chinese:上海文廟;pinyin:Shànghǎi Wénmiào), is afolkConfucian temple in theold city of Shanghai. It is similar to theoriginal temple ofConfucius in his hometownQufu and to theBeijingtemple, but on a smaller scale. The temple is located on Wenmiao Road (文庙路) inHuangpu District.
The Wenmiao Market lies around it. The market opens every Sunday morning and hosts a temple fair.[1]
The Confucian Temple was first founded during theYuan Dynasty, when Shanghai, once a small fishing village, was elevated to the status of acounty seat.[2] It was also the most prestigious learning institution of the county, as in ancient times aConfucian Temple was typically a combination of temple and school. In the following centuries, it was rebuilt several times. From 1851 to 1855, the temple was occupied by theSmall Swords Society and became their headquarters. The temple was almost completely destroyed during the battle when government troops retook control of it. The government eventually decided to rebuild the temple at the present site.
The temple was badly damaged during theCultural Revolution, but in 1995 it was designated for renovation by the local government. Now it is the site of one of the biggest book markets in Shanghai.[3]
31°13′11″N121°28′59″E / 31.21972°N 121.48306°E /31.21972; 121.48306