Pingyao County Yamen

Pingyao

Pingyao County Yamen

Inside China's only complete county government seat

The Pingyao County Yamen (Xianya) is the one place in China where you can walk through an entire imperial county government, courtrooms, prison, granary, archives and the magistrate's own home, laid out much as it functioned for centuries. A yamen was the seat of local rule: the county magistrate governed here, set taxes, kept the registers and, most memorably, tried legal cases. The site has been an administrative center since the Northern Wei period (386 to 534), and its oldest surviving structure dates to 1346. The fox-spirit pavilion at the rear is the only Yuan-dynasty building left standing, and the prison is the only intact Qing-era county jail in China. That continuity is why the yamen anchors the UNESCO-listed Ancient City of Ping Yao.

Courtyard of Pingyao County Yamen with its central hall

Courtyard of Pingyao County Yamen with its central hall

How the complex is arranged

Everything sits on a single north-south axis, six ranks of buildings deep, a physical diagram of Confucian hierarchy. You move from the front gate through the Yi Gate (Yimen), opened only for important arrivals, to the public courtroom, then a private courtroom, the magistrate's living quarters, and finally the rear pavilion. The plot runs about 200 meters front to back and covers roughly 26,000 square meters, so it reads less like a courthouse than a walled town built to house the machinery of government.

The Great Hall (Datang) is the set piece: the open-fronted courtroom where the magistrate heard cases beneath a plaque reading Ming Jing Gao Xuan (Ming Jing Gao Xuan, "the bright mirror hangs high"), shorthand for justice that misses nothing. Behind it the Second Hall (Ertang) handled civil matters and quieter business, and beyond that lie the family rooms, clerks' offices and a small garden. Off to one side, easy to miss, are the cramped cells of the Qing prison, the most sobering corner of the site.

The Great Hall of Pingyao County Yamen with the magistrate's bench

The Great Hall of Pingyao County Yamen with the magistrate's bench

Catch the court re-enactment

The yamen's signature draw is a short costumed play, "The Magistrate Holds Court" (Shengtang), staged in the Great Hall. Actors in Qing robes run through a case with the crack of the wooden gavel, kneeling plaintiffs and a theatrical verdict. It is easy to follow without any Chinese and popular with children. Shows generally run three times a day, around 09:30, 11:00 and 15:30, with extra performances on weekends and holidays. Times drift with the season, so check the board by the gate when you enter, and be there a few minutes early if you want a spot facing the bench.

Getting in, and getting here

The yamen has no ticket of its own. Entry is through the Pingyao Ancient City pass, a single multi-day ticket that opens the county office along with the city walls, the Rishengchang exchange house and around twenty other sites inside the walls; each site is entered once, and the pass runs for three days from first use. You can buy it at the ticket offices by the gates or reserve it online before you go.

Pingyao is car-free inside the walls, so you arrive on foot. From the South Gate (Yingxun Gate) walk north up the main street and turn onto Yamen Street, which is signposted. High-speed trains from Xi'an, Datong and Taiyuan stop at Pingyao Gucheng station, a short taxi or electric-cart hop from the nearest gate; the slower Pingyao station on the conventional line sits closer to the old town.

When to come

April to June and September to October bring the kindest weather and low, warm light on the grey-tiled roofs. Mornings are quietest, so aim to arrive near opening (the site generally opens around 08:00 and closes about 18:00 in the warmer months, a little earlier in winter), then build your visit around one of the court performances. Comfortable shoes help on the uneven flagstones, and keeping the pass handy speeds you through the checks at each site.

Highlights

  • The only complete imperial county government seat still standing in China, courtrooms, prison, granary, archives and the magistrate's home
  • An administrative site since the Northern Wei period (386 to 534); the oldest surviving building dates to 1346
  • The rear fox-spirit pavilion is the only Yuan-dynasty structure left standing, and the jail is the only intact Qing county prison in China
  • Great Hall (Datang) with the 'Ming Jing Gao Xuan' impartial-justice plaque
  • Daily 'Magistrate Holds Court' (Shengtang) costumed re-enactment, usually around 09:30, 11:00 and 15:30
  • Six ranks of buildings on a single Confucian north-south axis, roughly 26,000 square meters
  • Covered by the Pingyao Ancient City multi-day pass; part of the UNESCO-listed old town

Travel Tips

Time your visit to a performance

Court re-enactments usually run around 09:30, 11:00 and 15:30, with extra shows on weekends and holidays. Glance at the board by the gate when you enter, and arrive a few minutes early if you want a spot facing the magistrate's bench.

Enter on the Pingyao pass

The yamen has no separate ticket. Entry is through the multi-day Pingyao Ancient City pass, which also covers the walls, the Rishengchang exchange house and around twenty more sites, each entered once. Buy it at the gate ticket offices or online in advance.

Allow one to two hours

The complex is large and the flagstone courtyards are uneven, so wear comfortable shoes. Pairing the yamen with the nearby city walls makes a natural half-day of Qing-era history.

Related reading

More to see in Pingyao