
Photo adjustments
Full frame retained; proportionally resized and converted to WebP. No retouching or changes to the photographed subject. Card displays may crop the view.
Explore the region
About Wenmiao Temple
Its present site dates to the nineteenth century, continuing an educational institution founded much earlier.
The layout combines two north–south axes for ritual and teaching, with a garden to the east. Dacheng Hall, Minglun Hall and Kuixing Pavilion explain these different functions. Restoration has affected public access, so these architectural features describe the site rather than promise that every hall is currently visitable. Check a current reopening notice before planning an interior visit; an exterior stop can instead be paired with another old-city landmark.
The Confucian temple was first built in 1294, during the Zhiyuan era of the Yuan dynasty (至元三十一年), when the magistrate ordered it built east of the county office, and it was enlarged repeatedly through the Yuan and Ming dynasties. The temple briefly served as headquarters of the Small Swords Society uprising in 1853 and was largely destroyed in 1855 when Qing and allied forces retook Shanghai; it was rebuilt the following year, in 1856, at its present site, covering 17.3 mu (亩).
In 1914 the temple was renovated, and its Dacheng Hall terrace was enlarged for Confucian rites. In 1931 part of the site was converted into the Shanghai Citizens' Education Hall (上海市民众教育馆), and in June 1932 the Zunjing Pavilion (尊经阁) became the Shanghai Municipal Library, holding over fifteen thousand volumes as the city's first public library.
The temple was badly damaged during the Cultural Revolution, and by the 1980s its grounds hosted a used-book market. A full renovation in 1997 restored the Qing-era layout, after which the site reopened for Confucian rites and displays on Chinese culture; it was designated a Shanghai Municipal cultural heritage site (上海市文物保护单位) in 2002.
What to look for
- Separate ceremonial and educational axes distinguish the temple-school layout.
- Dacheng Hall, Minglun Hall and Kuixing Pavilion represent its ritual and scholarly functions.
Location & getting there
Getting to Wenmiao Temple
Approach 215 Wenmiao Road in the old-city area. Confirm current restoration and reopening arrangements before travelling specifically for interior access.
Combine your visit
A suggested sequence linking the specific features of this visit.
-
Wenmiao Road exterior
Locate the former county temple-school within the old-city street network.
-
Dacheng Hall and Minglun Hall, if reopened
Compare the documented ceremonial and educational spaces when public access permits.
-
Old City Wall大境阁及古城墙
Use a separate surviving old-city landmark as an alternative or additional stop.
This order is editorial. Confirm access and any transfers between stops; it does not establish a walking route, same-day connection or common admission ticket.
Find Wenmiao Temple
上海文庙 · 黄浦区
The pin marks the area, not the entrance.
More places nearby
Approximate straight-line distances between map pins, not travel distances.
Baiyun Guan Temple 上海白云观
Less than 1 km awayBaiyun Guan is a Taoist temple on Dajing Road in Shanghai’s old city. It offers another religious layer in an area better known to many visitors for Yuyuan and the City God Temple.
View guide →Xiaotayuan Mosque 小桃园清真寺
Less than 1 km awayXiaotayuan Mosque stands in the southern part of Shanghai’s old-city area. Its architecture combines Chinese and Islamic elements, giving it a different visual character from the Buddhist and Taoist sites nearby.
View guide →Old City Wall 大境阁及古城墙
Less than 1 km awayThe Old City Wall site preserves a short surviving section of Shanghai’s former urban defences. Dajing Tower is the most visible feature of the remaining ensemble.
View guide →Sources & visit information
The sources below support the place-specific description and arrival information. Suggested combinations are editorial planning ideas; confirm current opening, entry arrangements and transport services for your date.
- www.shanghai.gov.cn ↗
- 上海文庙 ↗
- Shanghai/Old City ↗
- Chinese Wikipedia: 上海文庙 (revision 90660375, 2025-12-13) ↗
Visitor information adapted and edited from Wikipedia contributors, “上海文庙” · CC BY-SA 4.0. Source revision 90660375.
Visitor information adapted and edited from Wikivoyage contributors, listing “Wenmiao Temple” · CC BY-SA 4.0.
Background paragraphs translated and condensed from Wikipedia contributors, "上海文庙", Chinese Wikipedia · CC BY-SA 4.0. Source revision 90660375.
