上海文庙
About 上海文庙
上海文庙 is a well-regarded tourist attraction located in Baoshan, China. With a rating of 4.2 out of 5, it stands out as one of the top-rated tourist attractions in the area.
Location
You can find 上海文庙 at China, Shanghai, Huangpu, 文庙路 邮政编码: 200010.
Visiting 上海文庙
Located in Baoshan, China, 上海文庙 is a tourist attraction that visitors to the area may find worth exploring.
Planning Your Visit
The tourist attraction is located at China, Shanghai, Huangpu, 文庙路 邮政编码: 200010. GPS coordinates: 31.217575, 121.488208. Check locally for current opening hours and any admission fees before visiting.
More Details
Updated June 4, 2026
上海文庙 is a well-regarded tourist attraction located in Baoshan, China. With a rating of 4.2 out of 5, it stands out as one of the top-rated tourist attractions in the area.
Table of Contents
- Location
- Visiting 上海文庙
- Planning Your Visit
- Location
- Places to Stay Near 上海文庙
- Find and Book a Tour
- Explore More Travel Guides
- Key Takeaways
- Key Details and Quick Facts
- What to Expect at Shanghai Wenmiao
- Plan Your Visit
- Best Time to Explore
- Getting There Made Easy
- Insider Tips for a Smooth Trip
- Nearby Attractions and Explore More in China
- Frequently Asked Questions
- What is the historical role of the Shanghai Confucian Temple, and how has it changed over the centuries?
- Where exactly is the Shanghai Confucian Temple located, and what’s the easiest way to reach it by public transit?
- What should first-time visitors look for in the architecture and courtyards to understand the site’s Confucian purpose?
- Are there any museums, exhibitions, or cultural activities on-site that provide deeper context beyond the main halls?
- How does the Shanghai Confucian Temple differ from the nearby City God Temple area in atmosphere and religious tradition?
- What is the best time of day or year to visit to avoid crowds and see the temple at its most photogenic?
- Plan Your Trip to 上海文庙
- Nearby Places You Might Like
- Traveler Reviews for 上海文庙
- Share Your Experience
Location
You can find 上海文庙 at China, Shanghai, Huangpu, 文庙路 邮政编码: 200010.
Visiting 上海文庙
Located in Baoshan, China, 上海文庙 is a tourist attraction that visitors to the area may find worth exploring.
Planning Your Visit
The tourist attraction is located at China, Shanghai, Huangpu, 文庙路 邮政编码: 200010. GPS coordinates: 31.217575, 121.488208. Check locally for current opening hours and any admission fees before visiting.
Location
Places to Stay Near 上海文庙
Find and Book a Tour
Explore More Travel Guides
No reviews found! Be the first to review!
Shanghai Wenmiao is a Confucian temple tucked away in Huangpu District’s Old City. It’s best known as imperial Shanghai’s top educational institution, with a history that stretches all the way back to 1294.
Shanghai Wenmiao is the only surviving Confucian temple in central Shanghai. Scholars once crammed here for imperial exams, and locals gathered to pay their respects to Confucius.
If you’re into Chinese philosophy, ancient architecture, or just want a break from the city’s glass towers, this spot’s a solid pick.
The temple complex covers about 11,600 square meters. You’ll see classic structures—Dacheng Hall, Lingxing Gate, ceremonial courtyards—somehow still standing after fires, wars, and revolutions.
This isn’t a flashy Beijing or Qufu temple. It’s got a local, almost scrappy vibe.
Back in 1853, rebels used the place as their base during the Small Swords Uprising. Two years later, the Qing army trashed much of it in battle.
These days, you can wander through reconstructed halls on Wenmiao Road. In its heyday, 279 Shanghai County scholars earned jinshi degrees here across three dynasties.
The compound once buzzed with a famous secondhand book market. Now, it hosts calligraphy shows and traditional craft workshops.
The neighborhood hasn’t changed much—old Shanghai’s street grid is still there. Visiting the temple kind of feels like stepping into a pocket of the city’s pre-colonial past.
Key Takeaways
- Shanghai Wenmiao is a 700-year-old Confucian temple that once served as the city’s main imperial academy.
- The site features traditional architecture like Dacheng Hall and gardens rebuilt after the 1855 destruction.
- You can pair your temple visit with a stroll through the surrounding Old City quarter on Wenmiao Road.
Key Details and Quick Facts
Shanghai Confucius Temple sits at 215 Wenmiao Road in Huangpu District. It’s the only Confucian temple left in central Shanghai, originally built in 1294 and moved to its current spot in 1855.
Basic Information
- Address: 215 Wenmiao Road, Huangpu District, Shanghai
- Original Construction: 1294 (Yuan Dynasty)
- Current Location Since: 1855 (Qing Dynasty)
- Total Area: 11,600 square meters (17 acres)
- Building Area: 5,800 square meters
- Status: Shanghai Municipal Cultural Relic (designated 2002)
Main Structures
The temple is laid out along two north-south axes, classic Chinese style. You’ll enter through the Lingxing Gate, pass the Dacheng Gate, and reach Dacheng Hall—the main spot for Confucius worship.
There are East and West corridors, Chongsheng Shrine, Minglun Hall, Zunjing Pavilion, Kuixing Pavilion, plus a garden with the Tianguang Yuying Pool.
Historical Context
For centuries, this was Shanghai’s top educational institution. It doubled as a place of worship and a school.
During the Small Sword Society uprising in 1853, rebel leader Liu Lichuan turned Minglun Hall into his HQ. In the Republican era, it became the Shanghai Citizens’ Education Hall in 1931. Zunjing Pavilion turned into the city’s first public library in 1932, housing over 15,000 books.
From 1986 until 2021, the temple was home to Shanghai’s legendary used book market. It closed for renovations in October 2021, and that’s supposed to last a couple of years.
What to Expect at Shanghai Wenmiao
When you show up at Shanghai Wenmiao, you’re greeted by a reconstructed Qing Dynasty complex sprawled across 11,600 square meters at 215 Wenmiao Road. The vibe is traditional: Daxing Gate, Dacheng Hall, a nine-story pagoda, and those winding Jiangnan-style gardens.
It opens daily from 8:30 AM to 4:30 PM. Tickets are just 10 yuan—super reasonable.
Key features you’ll run into:
- Dacheng Hall – The main ceremonial hall for Confucius.
- Lingxing Gate – The formal entrance, marking the temple’s edge.
- East and West gallery halls – Once buzzing with students and lessons.
- Kuixing Pavilion – Dedicated to the exam god, for all you test-takers.
- Traditional gardens – Pavilions, winding paths, and classic Ming/Qing landscaping.
Besides the architecture, the temple acts as a cultural hub. There are rotating exhibitions on Confucian philosophy and ancient stone inscriptions.
Weekdays are quiet—no crowds, so you can take your time.
On Sundays, from 8:30 AM to 4:00 PM, the Wenmiao Market livens up the area. Vendors set up stalls with used books, antiques, and collectibles. There’s a 1 yuan entrance fee for the market.
English-speaking volunteers hang around to share the temple’s backstory, dating to 1294. The current buildings, though, were rebuilt in 1855 after the Small Swords Society left the place in ruins.
Plan Your Visit
Shanghai Wen Miao is open daily from 9:00 AM to 4:30 PM. Entry is 10 RMB, and the Sunday book market is a separate 1 RMB.
The temple sits at 215 Wenmiao Road in Huangpu District. Metro access is easy, and if you want peace and quiet, show up on a weekday morning before the tour groups.
Best Time to Explore
If you want the place to yourself, go between 9:00 AM and 11:00 AM on a weekday. You can actually see the Ming and Qing architecture without people blocking your shots of Dacheng Hall or the Dragon and Tiger Roaring rock in the east garden.
Sundays are a different beast. The book market takes over, drawing crowds and changing the whole vibe. Vendors hawk used books, manga, old texts, and foreign-language finds.
The market is open rain or shine, but if the weather really goes south, sometimes it’s called off.
During exam seasons in June and December, students flock here to touch the Dacheng Bell and tie red ribbons on the trees for some extra luck. It’s a cool tradition to catch if you’re around.
Getting There Made Easy
Hop on Metro Line 8 to Laoximen Station and use Exit 3. Walk west along Fuxing East Road for about 400 meters, then hang a left onto Wenmiao Road. The temple entrance is about 200 meters down on your right.
Alternatively, take Metro Line 10 to Yuyuan Garden Station. It’s a longer walk—about 10 minutes—through the Old City. Taxis and ride-shares can drop you right at 215 Wenmiao Road.
The area around the temple—Xuegong Street, Menghua Street, Laoximen Street—is super walkable. There are bookshops, antique dealers, and coin shops. Leave a little extra time to poke around before or after your visit.
Insider Tips for a Smooth Trip
Buy your ticket at the main entrance on Wenmiao Road. The 10 RMB covers all the halls, including the calligraphy exhibition inside Dacheng Hall. Liu Xiaoqing’s full transcription of the Analects is carved onto 52 stone tablets—pretty wild.
Make sure to check out:
- Kuixing Pavilion in the east—a three-story tower from 1855, with those signature flying eaves.
- Zunjiang Pavilion, the oldest official library in Shanghai from the Ming Dynasty, with a quirky Lingbi stone shaped like a qilin out front.
- Minglun Hall—peek at the rows of old study desks and a bronze tripod inscribed with Confucian sayings.
The Sunday book market is in the northeast corner. Get there early (by 10:00 AM) for the best pick of discounted new books, vintage finds, and collectibles. Bargaining’s not just allowed—it’s expected.
Street food stalls cluster near the entrance, serving up crispy chicken rice and bubble tea. Shops nearby sell stationery, toys, and collectibles. It’s a favorite hangout for students and young locals.
Nearby Attractions and Explore More in China
Shanghai Confucius Temple is at 215 Wenmiao Road, right in the heart of the old city. Several historic sites are within walking distance—including the Yu Garden complex, about 1.2 kilometers northeast, and the Old City God Temple. Both are classic examples of Ming and Qing architecture and gardens.
Wenmiao Road itself has become a bit of a culture hotspot. The weekend book market starts every Sunday at 8:00 AM.
河南南路 (Henan South Road) marks the east end of this 575-meter street, and 中华路 (Zhonghua Road) is the western boundary.
Other Shanghai spots to check out:
- The Bund – Iconic waterfront with colonial-era buildings along the Huangpu River.
- Xintiandi – Trendy entertainment district built around restored shikumen houses.
- Shanghai Museum – Over 120,000 pieces of ancient Chinese art at People’s Square.
- Jade Buddha Temple – Still-active Buddhist temple from 1882, with two jade Buddhas from Burma.
If you’re up for more temple-hopping, China has plenty. Beijing’s Temple of Confucius, built in 1302, is the second-biggest after Qufu—the birthplace of Confucius himself. Qufu’s complex is massive—over 16,000 square meters—and set the standard for all other Confucian temples in China.
Frequently Asked Questions
People usually have a few questions about the Shanghai Confucian Temple—its journey from imperial academy to cultural site, its location, and what makes it stand out from all the other temples in town.
What is the historical role of the Shanghai Confucian Temple, and how has it changed over the centuries?
Since 1294, the Shanghai Confucian Temple was both the city’s top academy and the official site for rituals honoring Confucius. Students prepped for imperial exams here, while officials ran seasonal ceremonies in the courtyards.
The temple moved locations a few times. It finally landed at Wenmiao Road in 1855 after the Small Swords Uprising left the previous site in ruins.
After the Qing Dynasty fell, the temple became the Shanghai Public Education Hall. Later, it turned into the city’s biggest secondhand book market, drawing collectors and scholars for decades. Renovations kicked off in 2023, aiming to bring back more of the original academy layout by late 2025.
Where exactly is the Shanghai Confucian Temple located, and what’s the easiest way to reach it by public transit?
You’ll find the temple at 215 Wenmiao Road in Huangpu District, right inside the old city walls near Laoximen. Take Metro Line 8 or 10 to Laoximen Station, then walk about 600 meters southwest through the winding old streets.
It’s wedged between Zhonghua Road and Renmin Road, so you can also reach it on foot from Yuyuan Garden in about 15 minutes.
Bus routes 11, 26, 64, and 66 all stop within two blocks. The streets are narrow—typical old Shanghai—so taxis usually let you out at a corner nearby rather than right at the gate.
What should first-time visitors look for in the architecture and courtyards to understand the site’s Confucian purpose?
Start with the Lingxing Gate at the entrance. In Confucian temples, it’s meant to represent the bridge between earthly study and celestial wisdom.
Dacheng Hall is the main building, housing the spirit tablets of Confucius and his disciples. That’s where the big rituals happened.
The East and West Wing Halls used to display tablets honoring local scholars who passed the imperial exams.
Minglun Hall was the main lecture space, where students pored over the classics. Zunjiang Pavilion was the library, storing exam texts and philosophical works.
The whole place is laid out along a strict north-south axis—just like the Temple of Confucius in Qufu, but scaled down for a county-level academy.
Are there any museums, exhibitions, or cultural activities on-site that provide deeper context beyond the main halls?
The temple runs rotating exhibitions on Shanghai’s educational history. You’ll see artifacts from the imperial exam system and stone tablets with the names of successful candidates.
Sometimes there are traditional music performances or calligraphy demos in the courtyards.
During renovations (through 2025), access might be limited. The plan is to add more exhibition space focused on Confucian culture and to connect the temple with neighboring historic homes, turning the area into a larger cultural district.
How does the Shanghai Confucian Temple differ from the nearby City God Temple area in atmosphere and religious tradition?
The Confucian Temple leans hard into education, moral philosophy, and old-school state ritual. It’s not about popular religious worship or praying to deities like you see at the City God Temple.
There’s no incense haze, fortune-tellers, or people lining up to make prayer requests. Honestly, the architecture itself feels pretty restrained—minimal decorations, nothing too flashy, which is a stark contrast to the ornate carvings and riot of colors in Taoist temples.
Wander through the City God Temple area and it’s a whole different vibe. Street vendors shout, snack stalls tempt you at every turn, and the crowds never really thin out.
Meanwhile, the Confucian Temple just feels quieter. It’s more about soaking in the preserved architecture and maybe reflecting on the past for a moment or two. Both spots nod to big Chinese traditions, but if you ask me, the Confucian Temple is all about that official, scholarly culture that used to run imperial China.
What is the best time of day or year to visit to avoid crowds and see the temple at its most photogenic?
Weekday mornings, especially between 9 and 11 AM, tend to have the fewest people. The natural light at that hour? Pretty ideal if you’re trying to snap photos in the courtyards.
This temple doesn’t pull the same crowds as places like Yuyuan Garden, but weekends still get busy with families and students.
Early spring and late autumn are honestly the sweet spots—comfortable weather, less humidity, and you won’t be shivering or sweating as you wander around outside.
Definitely try to steer clear of major Chinese holidays. That’s when domestic tourism really surges.
If you’re up for it, the old city neighborhoods nearby are at their most charming in the early morning. There’s something about watching shopkeepers open up, with the narrow lanes still quiet, that just feels right.
Plan Your Trip to 上海文庙
Traveler Reviews for 上海文庙
There are no reviews yet. Be the first one to write one.
Have you visited 上海文庙? Help other travelers by sharing your review.
Find Accommodations Nearby
Recommended Tours & Activities
Visitor Reviews
There are no reviews yet. Be the first one to write one.
Share Your Experience
Have you visited 上海文庙? Help other travelers by leaving a review.