Pingyao is one of the easiest additions to a standard China route, because it sits on the line between the two cities most first-time itineraries already include.
The station to book#
Pingyao Ancient City station (平遥古城站) is the high-speed stop. Journey times run to about three hours from Beijing, three hours from Xi'an, and forty-five minutes from Taiyuan.
There is also a conventional Pingyao station, which is a different station on a slower line. As everywhere in China, read the station name on the ticket rather than assuming — booking apps offer both and sort by journey time.
From the high-speed station the walled city is a short taxi ride. You cannot drive far inside the walls, so expect to be dropped at a gate and walk the last stretch.
Why the location makes it easy#
Most first China trips run Beijing → Xi'an → somewhere south. Pingyao sits on that line, which means adding it costs a night rather than a detour — you break the Beijing–Xi'an leg instead of doubling back.
Pairing it with Datong makes an even better case. Datong is 1h40 from Beijing and holds the Yungang Grottoes; Pingyao is a complete Ming walled city. Together they turn a transit day into two days of the most underrated sights in northern China, with almost no other foreign visitors.
One thing to check before you plan that pairing#
If you are entering China on the 240-hour visa-free transit scheme, this route splits in two. Shanxi is one of the provinces where that scheme admits you to named cities only — Taiyuan and Datong — rather than the whole province. Datong is fine. Pingyao is not: it lies in Jinzhong, outside both permitted cities.
This affects nobody on a tourist visa or the 30-day unilateral visa-free scheme, both of which cover the whole country. It applies only to transit entries, and it is the kind of detail that is easy to miss because the two towns feel like one trip.
What you get for the night#
A complete Ming-dynasty walled city, still lived in — courtyard guesthouses, the old bank buildings that made the town rich as China's financial centre in the Qing, and a city wall you can walk. It is touristed but not hollowed out, and staying overnight is the whole point: the day-trippers leave and the lanes empty.
Allow one or two nights. One is enough to see it; two lets you slow down and take the surrounding courtyard mansions.
For Datong, the Yungang Grottoes and how the two towns fit together, see the Datong and Pingyao guide; for slotting them into a two-week route, the 14-day itinerary.