• Home
  • Xian Tours
  • Customize
City God Temple of Shanghai

City God Temple of Shanghai

Written by Clementine |

The City God Temple of Shanghai,Ā (ChenghuangmiaoĀ in Chinese), is one of the most iconic cultural landmarks in Shanghai, if you want to explore this city’s past, then this might be a perfect start. Its story started sinceĀ Yongle reign of the Ming Dynasty (1403–1424), and it was built as a temple dedicated to the City God (Chenghuang).

Nowadays, it is a popular attraction that said to be a must-visit stop for anyone planning travel to Shanghai. Beyond this, the temple’s role of the spiritual heart of Shanghai’s Old CityĀ never changes. Year after year, it has seen how traditions gradually integrated with modern life. Just like many visitors stated.

Content Preview

Basic Travel Information

  • Location:
    249 Fangbang Middle Road, Huangpu District, Shanghai
  • Chinese Name:
    äøŠęµ·åŸŽéšåŗ™ (Shanghai Chenghuangmiao)
  • Ticket:
    CNY 10 (includes three sticks of incense)
  • Opening Hours:

May 1 – Sep 30: 9:00–17:00

Oct 1 – Apr 30: 8:30–16:30

Lunar 1st & 15th: opens at 06:00

  • Time Needed:
    10–30 minutes (temple only)
  • Best Time to Go:
    Spring & autumn; early morning for worship, evening for atmosphere
  • Highlights:
    Taoist temple Ā· City God worship Ā· Ming-style architecture Ā· Folk culture Ā· Night views Ā· Local snacks

History of the City God Temple in Shanghai

The traditionĀ of worshipping City GodsĀ in China has a long history,Ā which can be dated back toĀ the Tang Dynasty. However, the establishment of Shanghai’s City God of TempleĀ (the one we’re now looking at) started fromĀ early Ming Dynasty. It was rebuilt from an earlier shrine known as Jinshan Temple,Ā which originallyĀ dedicated to the Western Han general Huo Guang.

During the Yongle period, the local magistrateĀ decided to convert the shrine into the Shanghai City God TempleĀ and enshrined Qin Yubo. ThisĀ figure was a respected scholar-official of the Yuan Dynasty,Ā and people respected him asĀ Shanghai’s City God. And later, the temple suffered repeated damage from wars and fires during the Qing Dynasty.

After large-scale restoration in 1994, the temple reopened to the public in 1995Ā and remains an active Taoist site today. It is now a municipal-level protected cultural relicĀ and has received multiple national honors for cultural preservation and religious harmony.

What Is Chenghuang (City God)?

The term ā€œChenghuangā€Ā comes from ancient military structures:

  • Cheng (城)= city wall
  • Huang (隍)= defensive moat
  • Together, they symbolize protection.

In traditional Chinese belief, the City God is responsible for maintaining justice, protecting civilians, overseeing morality, and guarding the city’s spiritual order. Worship of City Gods became widespread during the Ming Dynasty as cities grew more prosperous.

The City God worshipped here, Qin Yubo, was known for his integrity and courage. Although he once refused imperial recruitment, he later entered court service to speak for the people. After his death, he was honored as the spiritual protector of Shanghai—someone who would ā€œguard the land even after death.ā€

Top Things to See and Do around the City God Temple

Mountain Gate Screen Wall (Shanmen Zhaobi)

Built in 1535, this historic screen wall bears the inscription ā€œSafeguarding the Coastal Regionā€, symbolizing the temple’s role in protecting Shanghai. It also reflects the city’s historical importance as a coastal defense and trading port during the Ming Dynasty.

Yi Men (Ceremonial Gate)

The second gate of the complex features traditional couplets and a large abacus engraved with the phrase ā€œFate Is Not Calculated by Manā€, reminding visitors of moral accountability. In traditional belief, passing through this gate represents entering a sacred space governed by justice rather than human desire.

Main Hall

The main hall enshrines Huo Guang. On the sides of it, there areĀ civil and military judges, symbolizing justice and order in the human world. Worshippers often pause here to pray for things like: fairness, protection, and guidance in important life decisions.

City God Hall

Dedicated to Qin Yubo, the officially appointed City God of Shanghai, And Qin yubo is the spiritual core of the temple. The adjacent halls honor his wife and parents, reflecting Confucian values of family respect and filial pietyĀ which deeply rooted in Chinese society.

Hall of the Sixty-Year Cycle (Taishui / Yuancheng Hall)

Associated with destiny and time cycles in Taoism, this hall is linked to the Chinese sexagenary cycle. Many locals visit to pray for smooth fortunes, career stability, and protection during their zodiac’s sensitive years.

God of Wealth Hall

Dedicated to Zhao GongmingĀ and other wealth deities, this hall is especially popular during Lunar New Year. Visitors of

Shanghai City God Temple

ten pray here for business success, financial stability, and prosperous ventures in the coming year.

Wenchang Hall

A favorite among students, this hall honors the Wenchang Emperor, who governs academic success and career advancement. During exam seasons, it attracts many families hoping for good results and scholarly achievement.

Recommended tour

Shanghai and Zhangjiajie Tour by Flight
6 DAYS

Shanghai and Zhangjiajie Tour by Flight

 

Location and How to Get There

The City God Temple is located in Shanghai Old City, right next to YuyuanĀ Garden.Ā If you’re traveling from the garden, then you can simply walk to the temple, and it only takes 2-3 minutes on foot.

Besides, it’s only about 1.5 km between The Bund and the City God Temple. Taking a taxi is fine but a 20-minute walk may give you more immersive experiences.

Nanjing Road is basically the same, it’s 2 km from the temple.

By Subway

Traveling in Shanghai by subway is a good idea. It’s fast and convenient, well-connected to famous attractions including The City Temple. You can take Metro line 10 or 14 and get off at Yuyuan station (Exit 7). Then after leaving the station, walk for about 5 minuts to the temple.

By Bus

Travel by bus is also easy, and there are many bus routesĀ going there, including: 11, 26, 42, 64, 126, 304, 805, 920, 926, 930, 969, N11, N932. Get off near XinbeimenĀ or City God Temple Station

Shanghai City God Temple

Attractions near the City God Temple

Yu Garden (Yuyuan Garden)

Yu Garden is a well-preservedĀ classical gardenĀ built in Ming Dynasty. It is alsoĀ the finest example of Jiangnan garden design in downtown Shanghai. Inside, visitors can admire a lot of traditional architecture, such as elegant pavilions, zigzag bridges, decorative ponds, and famous rockeries such as the Exquisite Jade Rock. The garden’s peaceful and calm vibe makes it so different form the city outside. A typical visit takes about one hour.

Yuyuan Bazaar

Yuyuan Bazaar is quite near to theĀ City God Temple. They togetherĀ form one of Shanghai’s most vibrant traditional commercial areas. In the Bazaar, you can still find a lot ofĀ Ming- and Qing-style buildings. And your exploration can be quite diverse, as you can seeĀ local snack stalls, time-honored restaurants, souvenir shops, and teahouses. It’s also a place for people to get a taste of local flavor,Ā such as Nanxiang XiaolongbaoĀ or shengjian buns,Ā especially in the evening.

The Bund

The Bund isĀ one ofĀ Shanghai’s most famous attractions. The temple is not very far from here, distance is justĀ about 1.5 kilometers. Here you can see stunningĀ colonial-era buildingsĀ are on one side, and on the other side, modern skyscrapers are shining under the lights, their reflections will ripple on Huangpu River. Many travelers would spend their daytime to in the temple, and come to the Bund in the evening.

Travel Shanghai with China Xian Tour

Shanghai is one of the most popular travel destinations for visitors from all over the world. It’s modern, futuristic, being able to satisfy everyone’s dream about big city. Beyond that, Shanghai, indeed, offers far more than just iconic skyline. It’s historical heritage and traditions are things that truly make up the city’s soul. If you want to explore this beautiful place, traveling with China Xian TourĀ can assure you all the best experience. From customized itineraries to private-guide services, we offer everything you would expect for a perfect journey. Just let us handling all the arrangements for you along the way, so that you can fully enjoy yourself and your time in this Shanghai tour.

Send us a quick inquiry

    * Tell us your travel requirements/questions here.

    I prefer to be contacted via:

    Your travel consultant will reply within 24 hours.

    A TripAdvisor award-winning China travel agency organizing diverse private and mini-group China tours. We offer in-depth experience, free cancellation, flexible & safe trips.

    Email

    WeChat/Whatsapp

    Call

    (+86)18792910029
    (08:00-21:00 Beijing Time)