Skip to main content
Visa-free transit 240h ✓CNY 6.68 ≈ $1HSR network 45,000 km
Visa CheckerContact
  1. Home
  2. Pingyao
  3. Pingyao County Yamen
Pingyao County Yamen

Pingyao County Yamen平遥县衙

The Pingyao County Yamen (县衙, the magistrate's court-and-offices) sits due west of the Market Tower on the old town's central Yamen Street, and it is the best-preserved county-level government compound in China — the miniature 'palace of the county' that every Qing magistrate worked and lived in. Founded as an administrative site as early as the Northern Wei and rebuilt through the Yuan, Ming and Qing, the compound keeps its oldest timber building, the Daxian Tower, from 1346, and arranges six successive courtyards along a north-south axis: the Great Gate, Ceremonial Gate, the Great Court with its magistrate's dais, the Second and Inner courts of civil administration and family life, prisons in the western quarters, and gardens behind. The layout encodes the classical formula 'civil on the left, military on the right; court in front, residence behind'. Visitors today walk the whole machine of imperial local government — and catch staged 'magistrate's grand session' performances on the Great Court several times a day.

Pingyao · Visitor Guide2026-11-17

Quick Answer

Is Pingyao County Yamen worth visiting?

China's most complete surviving county government compound — six courtyards of magistrates' halls and prisons on the old town's central axis. Included in the ¥125 pass; 1-1.5 hours.

Quick facts

TicketIncluded in the Pingyao Ancient City through ticket — ¥125 adult (3-day validity), ¥65 concession.
HoursAbout 8:00-19:00 in the warm season, 8:00-17:30 in winter; the grand-session performances run several daily slots (check the board at the gate).
Recommended duration1-1.5 hours for the six-courtyard axis; half a day across the temple-yamen-civic walk.
Best time to visitLate morning for the first performance slot without the largest crowds; summer afternoons are hot in the courtyards.
How to get thereIn the heart of Pingyao old town — a 5-10 minute walk west from the Market Tower along Yamen Street; everything inside the walls is walkable, and the rail-station shuttle stops at the south gate.
English signagePartial
Wheelchair accessiblePartial
RankChina's best-preserved and largest surviving county government compound
OriginsAdministrative site since the Northern Wei; oldest building (Daxian Tower) from 1346
LayoutSix courtyards, ~26,000 sq m — 'civil left, military right; court front, residence behind'
Live showStaged 'magistrate's grand session' performances on the Great Court daily
EntryCovered by the ¥125 Pingyao Ancient City through ticket

What to expect

A Qing county magistrate governed perhaps a quarter-million subjects from a compound like this one — and Pingyao's is the textbook survivor. The administrative site dates back as far as the Northern Wei; the Yuan-era Daxian Tower of 1346, the compound's oldest building, still crowns the rear courtyard; and the Ming and Qing rebuilds fixed the layout that visitors walk today: some 26,000 square meters strung along a strict axis, with the Great Gate facing south onto Yamen Street, the Ceremonial Gate behind it, and the Great Court (大堂) — the magistrate's hall of judgment, with its dais, canopy and the instruments of order — as the theatrical heart. Six courtyards in all progress from public majesty to domestic privacy.

The genius of the compound is legibility. Everything about imperial local government is on view in place: the 'civil on the left, military on the right' wings of bureaus flanking the courts; the tax office and the granary; the jail — with its dark cells and the iron-shod gates — tucked into the western quarters where feng shui put disorder; the Inner Court (二堂、三堂) where the magistrate heard civil suits and lived with his family; and the garden and study behind, where the gentleman-official wrote his poems. Explanatory boards and furnished rooms make the whole machine comprehensible even without a guide; English captions cover the majors.

The performances give the visit its theater. Several times a day, costumed actors stage a 'magistrate's grand session' on the Great Court — a petty case argued, witnesses examined, the wooden clappers cracked — and the crowd of visitors standing where plaintiffs once knelt gets the visceral point of Qing justice. Time your visit around a slot, then slow-walk the axis afterward when the tour groups drain away. Together with the City God Temple to the east (whose god was said to supervise the yamen) and the Confucian Temple south, the yamen completes Pingyao's trilogy of order: heaven's court, earth's court, and the school that staffed them both.

How to get there

From the Market Tower, walk west along Yamen Street (衙门街) for 5-10 minutes — the Great Gate faces the street on the north side. Inside the walls everything is on foot; the shuttle from Pingyao Ancient City rail station drops at the south gate, about 15 minutes' walk away.

Best photo spots

  • The Great Court's dais and canopy, hall of the magistrate's judgment
  • The layered gate sequence looking north from the Great Gate
  • The old jail's dark cells and iron-fitted doors in the western quarters
  • The rear garden and Daxian Tower of 1346 at the axis's end

Tips

  • Check the performance board at the gate first and build your walk around a grand-session slot
  • Go deep: most visitors turn back at the Great Court — the jails, bureaus and 1346 tower at the rear are the best parts
  • Pair with the City God Temple east and Confucian Temple south for the full trilogy of Qing order
  • The ¥125 three-day old-town pass covers this, the walls, Rishengchang, the temples and more
  • Summer courtyard heat is real — carry water, and prefer morning or late-afternoon visits

Scams to avoid

  • 'Court experience' photo services charging per costume rental beyond the free show — the performances themselves cost nothing extra
  • Self-appointed 'imperial clerk' guides soliciting tips inside the halls — the furnished rooms and captions explain themselves

Frequently asked questions

What is a yamen?

The office-court of an imperial Chinese magistrate — part courthouse, part town hall, part residence. The Pingyao County Yamen is the best-preserved county-level one in China.

How old is the compound?

An administrative site since the Northern Wei; its oldest surviving building, the Daxian Tower, dates from 1346, with the present layout fixed by Ming-Qing rebuilds.

Is there a separate ticket?

No — entry is included in the Pingyao Ancient City through ticket (¥125 adult, 3-day validity, ¥65 concession).

When are the performances?

The staged 'magistrate's grand session' runs several times daily on the Great Court — check the schedule board at the gate on arrival.

How long does a visit take?

1-1.5 hours for the six-courtyard axis if you walk it fully; the full civic trilogy with the City God Temple and Confucian Temple makes a comfortable half day.

Read next

Other things to do in Pingyao

China Armed Escort Museum (Biaojú Museum)

Inside a Pingyao courtyard, the museum of the biaojú — the armed escort companies that moved silver and goods across Qing China —. Covered by the city pass; 45–60 minutes off South Street.

Pingyao City God Temple

A rare three-in-one temple street — city god, God of Wealth and Kitchen God share one west-facing compound of opera stage and glazed-roof halls. Included in the ¥125 old-town pass; 1-1.5 hours.

Pingyao City Walls

Ming-dynasty rammed-earth-and-brick walls ringing the best-preserved walled town in China, part of the ¥125 Pingyao combo ticket. 1–2 hours on the ramparts; go at opening or near dusk.

Pingyao Confucian Temple

Home of the oldest surviving Confucian Dacheng Hall in China — a Jin-dynasty timber hall of 1163 inside the old town's Confucian academy compound. Included in the ¥125 old-town pass; 1 hour.

Pingyao Market Tower

The three-storey wooden tower pinning the crossroads of Pingyao's South Street — the 'Golden Well Tower' at the very centre of the walled banking city. 30–60 minutes; climb with the walls day.

Qingxu Temple (Daoist Monastery)

Pingyao's largest Daoist complex — founded in 657 as Taipingguan, renamed Qingxu in 1064. Covered by the city combo ticket (¥125); an hour on East Street.

Rishengchang Draft Bank Museum

China's first draft bank (founded 1823), preserved on Pingyao's West Street inside. The 'birthplace of Chinese banking' — a three-courtyard merchant house turned museum since 1995.

Shuanglin Temple (Pingyao)

The 'gallery of painted sculpture' 6 km southwest of Pingyao — 2,000+ polychrome clay figures from Song through Qing packed into ten halls. Ticket ¥35 (not in the city pass); 1.5–2 hours.

Xietongqing Draft Bank Museum (Underground Vault)

A Qing draft bank on Pingyao's South Street whose real draw lies below. Covered by the city pass; 45–60 minutes, stairs involved.

Pingyao Zhenguo Temple

The Five Dynasties temple at Haodong village — its Wanfo Hall of 963 is among China's oldest timber buildings. ~¥25 (or in the old-town pass); 1-1.5 hours.

Museums in Pingyao

Sources