Every country, and the places worth the trip 26,398 places across 240 countries Guess the country
Meridiela.
Home/Countries/China/Landmarks & history/Zhangbi Ancient Castle

Zhangbi Ancient Castle

A small loess village built over three levels of military tunnels dug more than a thousand years ago.

Updated 4 September 2026

Typefortified village
WhereShanxi
Nearest cityPingyao
Best seasonApril to October
Time to allowTwo to three hours
Getting thereJiexiu, about 40 km south of Pingyao; car or taxi
EntryTicket charged; tunnels by guided tour

Zhangbi is an ordinary-looking village of loess and brick on a plateau edge, and beneath it runs a tunnel system of around ten kilometres on three levels, dug in the Sui dynasty in the seventh century for military use, with wells, storage chambers, stables, escape shafts and firing positions connected in a network that reaches the cliff face. Guides lead visitors through a section, ducking and squeezing through passages lit by strung bulbs. Above ground the village keeps its gate, temples and a street layout said to reflect constellations, with Kongwang Temple combining Buddhist, Daoist and folk worship in one building. Around seven hundred people still live there.

Highlights

  • The tunnel network - Sui-era military passages on three levels beneath the village.
  • The village above - loess houses, gates and temples still lived in.
  • Kongwang Temple - Buddhist, Daoist and folk deities in a single building.
  • The plateau edge - the cliff position the tunnels were built to exploit.

When to go

April to October for comfortable weather; the tunnels stay cool year-round. Tours run through the day and are the only way into the underground sections. The village is quiet outside Chinese holidays.

Practical notes

The tunnels are low, narrow and unlit except for basic wiring, unsuitable for claustrophobia or limited mobility. Tours are in Chinese. The village is small and can be walked in half an hour. Access without a car is difficult.

Nearby

Pingyao lies north; the Wang compound is in the same district.

Key facts

Local name张壁古堡 (Chinese)
Heritage statusMajor Historical and Cultural Site Protected at the National Level
Location36.9613° N, 111.9671° E · map

Source: Wikidata, item Q11066728, read on 18 October 2026.

What to pack for Zhangbi Ancient Castle

Chosen from what this place is for. Tap a kit for the full checklist.

  • Head torch + spare batteries - Hands-free light is essential; caves are truly dark. Find on Amazon
  • Comfortable walking shoes - Sightseeing means kilometres of pavement and cobbles daily. Find on Amazon
  • Modest clothing - Shoulders and knees covered - the single most common requirement. Find on Amazon
  • Grippy closed shoes - Cave floors are wet, muddy and slick with formations. Find on Amazon

Some links on this page are Amazon affiliate links - if you buy through them we may earn a small commission at no extra cost to you.

All packing kits

Plan your trip

Where to start if Zhangbi Ancient Castle is going on the list.

Booking links on this page are affiliate links - if you book through them we may earn a small commission at no extra cost to you. It never changes what we write about a place.

Opening times, ticket prices and seasonal closures change - check the official source before you go: official site.

← More landmarks & history in China

One place a week.

A short Friday email about one place worth knowing.