The Confucian Temple in Shanghai, located in the old city chamber of Shanghai in the Qing Dynasty, is the only temple offering sacrifices to Confucius in the urban area of Shanghai at 215 Confucian Temple Road in Huangpu District. The Confucian Temple in Shanghai has a history of more than 700 years. It was built from the Yuan Dynasty to the 31st year of the Yuan Dynasty (1294). After several migrations, it was rebuilt in the 5th year of Xianfeng in the Qing Dynasty (1855). The Confucian Temple complex includes the Confucian Temple, the courtyards on the two north-south axis of the Xuegong Palace and the eastern gardens. The main buildings are Fengxing Gate, Dacheng Gate, Dacheng Hall, Chongsheng Temple, Minglun Hall, Zunjing Pavilion and Kuixing Pavilion. In 2002, it was declared as a cultural relic protection unit in Shanghai.