The first thing you notice is the wall.
It rises above you — 40 feet tall, made of packed earth and brick, topped with a walkway where guard towers still stand at each corner. You can walk the entire perimeter: about 2.2 miles, or 3.7 kilometers. It takes about an hour at a leisurely pace.
And when you pass through the gate on the south side and step into Pingyao’s old city, it’s like stepping through a door in time.
What Is Pingyao?
Pingyao (平遥古城) is an ancient walled city in Shanxi Province, in northern China. It was founded all the way back in the Western Zhou Dynasty — around the 11th century BC — making it one of the oldest continuously inhabited cities in China. But the Pingyao you see today, the one that matters for visitors, was mostly built during the Ming and Qing dynasties (roughly the 1500s to 1800s).
In the 19th century, Pingyao was a thriving commercial center. Shanxi Province was famous for its banks and money shops — the early ancestors of modern banks — and Pingyao was the headquarters of the Rishengchang Exchange, the first draft bank in Chinese history. At its peak, Pingyao’s merchants handled so much silver that the city became one of the wealthiest in China.
Then, in the early 20th century, modern banks arrived. Railway replaced the caravan routes. Pingyao’s banks closed, its merchants left, and the city quietly faded — nearly forgotten, but also perfectly preserved.
Why It Survived
The reason Pingyao looks the way it does is almost accidental. When modern banks killed the old money shops, Pingyao lost its reason to exist as a commercial hub. There was no money for demolition or rebuilding. The old buildings just sat there, occupied by ordinary families, slowly aging.
In the 20th century, China’s cities were transformed by war, revolution, and modernization. Most ancient neighborhoods were torn down to make way for wide streets and modern buildings. Pingyao escaped because it was too poor to change.
By the time the Chinese government realized what it had — a complete, intact example of a Qing Dynasty-era city — it was too late to destroy it. So instead, in 1997, UNESCO named Pingyao a World Heritage Site. Today, it’s one of the best-preserved ancient cities in the world, and the only one in China where you can walk through streets that look almost exactly as they did 150 years ago.
Walking Through the City
Here’s what you’ll find inside the walls:
Rishengchang (日升昌) — This is the former headquarters of China’s first bank, founded in 1823. The original building is still there, now a small museum. You can see the original iron safes, the account books, and learn how the Rishengchang worked: it issued paper drafts that merchants could cash in other cities, a system that predates modern banking by decades. If you’ve ever used a check or a wire transfer, you have the 19th-century Shanxi bankers to thank.
The City Wall — Yes, you can walk on it. The wall has six gates and 72 watchtowers (a number chosen to match the 72 disciples of Confucius, just to show you everything in Pingyao has a meaning). From the top, you get a clear view of the city layout: a grid of narrow streets lined with gray-tile rooftops.
The Streets — Pingyao’s main streets are lined with shops, teahouses, and small restaurants. In the evening, the lanterns light up and it feels genuinely atmospheric. The streets are not quite as crowded as they would have been in 1900 — there are far fewer people living inside the walls today — but the bones are right.
Temples and Courtyards — The city has several temple complexes worth visiting. The Zhengying Temple is famous for its ornate wooden carvings. The East Tower provides a good view over the residential neighborhoods, where you can peek into traditional courtyard houses — the kind where families of several generations lived together around a central open-air courtyard.
The Courthouse — Shanxi was a powerful province, and Pingyao’s courthouse is a reminder of how important law and order were to its merchants. The building includes a traditional courtroom, jail cells, and a collection of ancient wooden legal documents.
The Cultural Bridge
Here’s a way to think about Pingyao that American readers will understand: Pingyao is to Chinese cities what Colonial Williamsburg is to American history — a deliberate preservation of what an earlier era looked like, protected not because it was always valued, but because it was convenient.
Except Pingyao is 3,000 years old, not 300. And it’s real. Families actually live there. Children ride bikes to school through streets where merchant wagons once rolled. Grandmothers sit outside temples in the afternoon sun.
Another comparison: the city walls of Pingyao bring to mind the old walled towns of Europe — Carcassonne in France, for example, or Rothenburg ob der Tauber in Germany. The impulse to wall a city for protection is universal. What’s unique about Pingyao is how complete it is: not just a single wall or a single street, but an entire enclosed city, untouched for over a century.
How to Visit Pingyao
Pingyao is in central Shanxi Province. The most common approach is from Beijing, though many visitors combine it with a trip to Datong (about 3 hours away by bus or train) to see the Yungang Grottoes and the Hanging Temple.
From Beijing: Take a high-speed train to Pingyao (about 4 hours). The new train station is outside the old city walls, a short taxi ride away.
From Datong: A bus takes about 2.5 hours along a scenic route through the Shanxi hills.
Tickets: You’ll need a combined ticket to enter the old city and visit most of the attractions inside. It’s available at the main gate and costs less than $20 USD.
Getting around: No cars are allowed inside the walls (this is enforced). You’ll walk, or rent a bicycle, or take a small electric cart. The streets are flat and easy to navigate.
How long to spend: One full day is enough to see the main sites, though an overnight stay is highly recommended — the city at night, lit by red lanterns and nearly empty of day-trippers, is magical.
Where to stay: There are small guesthouses inside the walls, many in converted courtyard houses. Staying overnight is the best way to experience the atmosphere.
The Modern Tension
Pingyao is not frozen in amber. Its 30,000 residents go about daily life inside those walls — cooking, working, arguing, celebrating. And like every historic site in China, it faces the tension between preservation and modernization.
The local government wants more tourists. The residents want modern plumbing, better heating, and faster internet. Some buildings have been restored to look historically accurate. Others are crumbling. You can see both in a single afternoon.
What’s remarkable is that this tension is visible — unlike a place like Disneyland, where everything is curated and nothing is real, Pingyao lets you see both the preservation effort and the human reality behind it.
Why Pingyao Matters
In a country that has torn down more historic architecture in the past 50 years than perhaps any other nation on Earth, Pingyao stands as a quiet counterargument. It says: here is what we had. Here is what we were.
For travelers, it offers something increasingly rare in China: a chance to slow down, to walk without a plan, to get a little lost in streets that have been navigated by merchants and monks and revolutionaries for centuries. The greatest luxury of a Pingyao visit is simply time — the time to sit in a teahouse, watch the light change on the city walls, and feel the weight of history around you.
Planning a trip to northern China? Combine Pingyao with the Yungang Grottoes in Datong for one of the most rewarding cultural circuits in the country.