Pingyao County Government Office: The “Yin-Yang Government Office” at the Heart of the Ancient City
At the very heart of Pingyao Ancient City, facing south and standing in quiet contrast to the City Tower on Ming and Qing Street, lies an extraordinary historic complex.
Covering more than 26,000 square meters, the Pingyao County Government Office was first established during the Northern Wei Dynasty and gradually took its present form through the Yuan, Ming, and Qing dynasties. Some of its surviving buildings date back to the Dade era of the Yuan Dynasty, more than 600 years ago.
This is Pingyao County Government Office (Pingyao Xianya)—the largest and one of the best-preserved ancient county government complexes in China. Often described by experts as one of the finest surviving examples of an ancient government office, it is essentially a three-dimensional textbook of how a county-level government once functioned.
Pingyao has countless stories about money—exchange houses, merchants, silver, and long-distance remittances.
The County Government Office tells another story: the story of power, law, administration, and everyday governance.
If you want to see the other side of Pingyao beyond its banks and escort agencies, step through the red gate and follow the central axis.
Within its six successive courtyards, you can trace how the office, courtroom, residence, and daily life of a seventh-rank county magistrate once operated.
Six Courtyards Along One Central Axis
The layout of the Pingyao County Government Office follows the traditional principles of imperial Chinese administrative architecture, including the arrangement of civil offices on the east and military offices on the west, with official spaces toward the front and residential areas toward the rear.
Moving from south to north along the central axis, the complex includes the government gate, ceremonial gate, memorial archway, main courtroom, residential gate, second courtroom, inner residence, and Daxian Tower.
On either side are six administrative departments traditionally known as the Six Offices: Personnel, Revenue, Rites, Military, Justice, and Public Works.
Together, they recreate the basic physical structure of a traditional county government.
Yimen: The Ceremonial Gate
The Yimen, or ceremonial gate, is the second major gate of the government office. Built during the 47th year of the Wanli reign of the Ming Dynasty, it symbolized the strict hierarchy and ritual order of traditional government.
Its paired inscriptions capture the contrast between ordinary life outside and the law within:
“Outside the gate, spring brings gentle winds and timely rain; within the courtroom, the law is as severe as the blazing sun and winter frost.”
The wording is striking because it presents the government office as a place where the warmth of everyday life gave way to the uncompromising authority of the law.
Beyond the Yimen are the Six Offices.
Personnel, Revenue, and Rites were located on the eastern side, while Military, Justice, and Public Works occupied the western side. Their simple gray-brick and gray-tile buildings were where the practical administration of the county took place.
This is where the ancient government stopped being an abstract institution and became a functioning workplace.
The Main Courtroom: Where the County Magistrate Held Court
The largest and most imposing building in the complex is the Main Courtroom, also known as Qinmin Hall—literally, the “Hall of Caring for the People.”
The building has five bays, with the central three forming the main courtroom.
At the center stands a painted screen depicting mountains and a rising sun. In front of it is the magistrate’s raised desk, above which hangs the famous plaque:
“Mingjing Gaoxuan” — “The Bright Mirror Hangs High.”
The phrase symbolizes an impartial judge whose judgment should be as clear as a bright mirror.
On the magistrate’s desk are traditional writing implements, a container for courtroom command tokens, and a wooden gavel used to strike the desk and command attention.
Two stone slabs embedded in the brick floor in front of the desk mark the places where plaintiffs and defendants traditionally knelt and presented their cases.
But perhaps the most memorable feature is the couplet displayed in the courtroom:
“You eat the people’s food and wear the people’s clothes; do not think the people can be bullied, for you too are one of the people.
Holding office is no glory, losing office is no disgrace; do not say one official is useless, for the local people depend upon that official.”
The words are remarkably direct.
Behind the formal authority of the courtroom is a reminder that the magistrate himself was ultimately part of the society he governed.
The Second Courtroom: A Softer Side of Government
Pass through the residential gate behind the Main Courtroom and the atmosphere becomes noticeably less imposing.
This is the Second Courtroom, whose Ming Dynasty plaque calls it Zhong'ai Hall, or the “Hall of Loyalty and Benevolence.”
Unlike the formal courtroom at the front, this was where the county magistrate handled everyday administrative work and civil disputes.
Its couplet reads:
“Only because you share a connection with the people did you come to this place; may your heart remain without shame and may you never fail those you serve.”
Compared with the commanding language of the Main Courtroom, the tone here is more personal and reflective.
The two halls together reveal an interesting contrast in the role of the magistrate: authority in the courtroom, responsibility in everyday administration.
Daxian Tower: The County Office’s Only Yuan Dynasty Building
At the northern end of the central axis stands one of the most intriguing structures in the entire complex: Daxian Tower.
It is regarded as the only surviving Yuan Dynasty building within the county government office, dating to the sixth year of the Zhizheng era, 1346, more than 600 years ago.
Beneath the tower is a traditional northern Chinese yaodong-style cave dwelling. Naturally insulated and relatively warm in winter and cool in summer, the rooms were once used as the county magistrate’s dining area.
The couplet here is unexpectedly down-to-earth:
“Rice, firewood, oil, salt, sauce, vinegar, and tea—apart from immortals, no one can do without them;
Filial piety, brotherhood, loyalty, trust, propriety, righteousness, integrity—no amount of money can manufacture them.”
The first half speaks about the ordinary necessities of life.
The second speaks about moral character.
Together, they place everyday human life and official virtue side by side, making this perhaps the most approachable inscription in the entire government complex.
The “Guardian of the Official Seal”
Above Daxian Tower is a shrine dedicated to the Guardian of the Official Seal, traditionally associated with a fox spirit.
According to local tradition, successive county magistrates worshipped this deity in the hope that it would protect the official seal.
There was a simple logic behind the belief: an official depended upon his seal, because the seal represented his authority.
From the top of Daxian Tower, look back across the complex and the entire structure becomes easier to understand.
The six successive courtyards unfold one behind another—from the imposing courtroom at the front to the quieter residential areas toward the rear.
In one straight line, the complex preserves both the public authority and private daily life of a seventh-rank county magistrate.
Travel Tips for Pingyao County Government Office
Best Time to Visit
Spring and autumn, especially April–May and September–October, offer the most comfortable conditions for walking through the complex.
Around 9:00 a.m., visitor numbers are often relatively low and the softer morning light is ideal for examining architectural details, plaques, and couplets.
If you want to watch the traditional courtroom performance, check the schedule on the day of your visit.
Watch the Courtroom Performance
One of the most entertaining parts of visiting the County Government Office is its live courtroom performance, which recreates a traditional county magistrate hearing a case.
Performances are usually held around 9:30 a.m., 11:00 a.m., and 3:30 p.m., although times can change, so check the day's announcement before visiting.
Arrive around 15 minutes early if you want a good place near the Main Courtroom.
Opening Hours
- Peak season (April–October): 08:00–18:30
- Low season (November–March): 08:00–18:00
- Ticket inspection ends approximately 15 minutes before closing.
How Long to Spend
Allow around 1.5–2 hours.
The central six-courtyard axis is only part of the experience. The Six Offices, prison area, supervision and arrest department, exhibition spaces, and other side buildings contain a surprising amount of information.
If you enjoy reading historical inscriptions and examining architectural details, two hours or more is worthwhile.
Location and Transportation
Pingyao County Government Office is located on Yamen Street, in the central section of the ancient city.
From the South Gate, or Yingxun Gate, walk north along Ming and Qing Street and turn left at the first major intersection.
It is within roughly five minutes on foot of Ming and Qing Street, the City Tower, and Xietongqing Exchange House, making it one of the easiest attractions to combine with the central sightseeing route.
Tickets and Suggested Timing
The County Government Office is included in the Pingyao Ancient City sightseeing pass, which covers 22 attractions within the historic city and is valid for three days.
A good strategy is to visit the County Government Office first thing in the morning so you can catch the courtroom performance, or use it as a central stop during an afternoon walking route.
Photography Tips
The “Mingjing Gaoxuan” plaque and magistrate’s desk inside the Main Courtroom are the most recognizable photo spots.
You can stand in front of the desk for a playful “ancient courtroom” photograph.
The couplet at the Yimen gate—contrasting gentle weather outside with strict justice inside—also makes an excellent architectural backdrop.
For a more authentic visual atmosphere, dark or neutral-colored clothing works particularly well against the gray brick, timber, and solemn architecture.
What to Wear
There are many stone paths and steps throughout the complex, so comfortable flat shoes are essential.
Some courtyards have little shade during summer. A hat, sunscreen, and water are recommended on hot days.
Explore the Historic Quarter Around the County Government Office
Because the County Government Office sits almost at the center of Pingyao Ancient City, it fits naturally into a compact walking route.
A classic half-day central-city route is:
South Gate (Yingxun Gate) → climb the Ancient City Wall for panoramic views → descend and enter Ming and Qing Street → visit Pingyao County Government Office and watch the courtroom performance → explore Xietongqing Exchange House and its underground treasury → stop at the City Tower → continue to Rishengchang Exchange House → return to Ming and Qing Street around sunset as the lanterns begin to glow.
The route minimizes backtracking and connects many of Pingyao's most important attractions within a few hours.
If you have more time, explore the City God Temple and Confucian Temple just to the east.
There is an interesting symbolic relationship between the three:
The County Government Office governed the world of the living; the City God Temple represented the spiritual administration of the afterlife; and the Confucian Temple represented scholarship, education, and moral order.
Together, they form a fascinating picture of the spiritual and administrative world of traditional Pingyao.
What to Eat Around Yamen Street
The area around Yamen Street is also a good place to stop for local food.
Hongwuji Restaurant and Tianyankui Restaurant are two long-established names in the ancient city.
For local specialties, try beef braised with aged Shanxi vinegar, where the sharp aroma of Shanxi's famous mature vinegar balances the rich flavor of slow-cooked beef.
Yellow millet cold cake topped with osmanthus sauce makes a sweeter and lighter finish.
For street-style snacks, Dongji Fried Wantuo serves freshly stir-fried wantuo, a chewy local specialty. Add a bowl of sea buckthorn fermented-rice soup and a paopao youtiao-style fried cake, and you have a distinctly local Pingyao snack combination.
Where Pingyao’s Story Turns from Money to Power
Pingyao Ancient City has no shortage of stories about money.
The exchange houses tell us how merchants moved silver across China.
The escort agencies tell us how that wealth was protected.
The old commercial streets tell us how merchants built their fortunes.
But the County Government Office tells a different story.
It tells the story of power.
From the “Bright Mirror Hangs High” plaque in the Main Courtroom to the “Hall of Loyalty and Benevolence” in the Second Courtroom, from the Guardian of the Official Seal in Daxian Tower to the spaces once used for handling civil disputes, the complex preserves an unusually complete picture of how a traditional county government worked.
It is not simply a collection of old buildings.
It is a history of grassroots governance written into brick, timber, stone, and calligraphy.
So when you have finished following the silver trails of Pingyao's exchange houses and the stories of its armed escort agencies, step through the red gate on Yamen Street.
Stand for a moment beneath the words “Do not think the people can be bullied.”
Then look down the six successive courtyards.
For more than six centuries, this ancient government office has preserved not only the authority of an official seal, but also the promise that authority was supposed to serve the people.