Search cities, sights, food

Datong & Pingyao: Shanxi's ancient towns in 3 days

Yungang Grottoes, Huayan Temple, the Hanging Temple and Pingyao's walled town in 3 days: train times, ¥ prices, the Trip.com-only foreigner tickets and what to eat.

Checked against official sources: 2026-10-23 · 5 min read · By the Zouzou editorial team

Three days is enough for Shanxi's two great old towns: one day in Datong for the Yungang Grottoes and the Liao-dynasty Huayan Temple, a second day out to the Hanging Temple before an evening train south, and a third day inside the walls of Pingyao. Book Yungang before you leave home (no same-day tickets). The Hanging Temple climbing ticket, which foreign visitors can only get through Trip.com, is now released the evening before (20:00–23:00) and on the day from 07:20, so try then.

Before you go: tickets and trains

  • Yungang Grottoes (云冈石窟): ¥120 from April to October, ¥100 from November to March. The ticket windows are closed: book online 1–7 days ahead (same-day booking stopped in March 2025) on the "云冈研究院" WeChat mini program, choosing passport as the ID type, or on Trip.com.
  • Hanging Temple (悬空寺): ¥15 entry plus ¥100 to climb into the temple. Since 2 October 2026 the 2,475 daily climbing tickets are capped, and only 100 are reserved for foreign, Hong Kong, Macau and Taiwan visitors, sold on Trip.com. Online sales run 20:00–23:00 the evening before and 07:20–18:00 on the day; the counter does not sell climbing tickets to foreigners. Without one you can still see the temple from the path below.
  • Trains: Beijing to Datong South (大同南) takes about 1 h 45 min on the fastest G trains from Beijing North or Qinghe. Datong South to Pingyao Gucheng (平遥古城) takes about 2 h 20 min–2 h 50 min on direct trains via Taiyuan. Book on 12306 or Trip.com; see how to book train tickets.

Day 1: Datong, grottoes and temples

Take an early train from Beijing (or arrive the evening before) and head straight to the Yungang Grottoes, 16 km west of the old town: 25–30 minutes by taxi or DiDi, or about an hour on bus 3. Foreign visitors enter at Entrance No. 3 with the original passport. The 5th-century Northern Wei caves are carved into a 1 km cliff; do not leave without seeing Caves 5 and 6 (painted interiors, a 17 m seated Buddha) and Cave 20, the open-air Buddha on every poster. Allow 3 hours.

Back in town, the Huayan Temple (华严寺, ¥50) is one of the best-preserved Liao and Jin dynasty complexes in China. The Lower Temple's sutra library holds 11th-century clay statues and carved wooden sutra cabinets. Open roughly 08:30–17:30 (later in summer).

Finish on the Datong city wall, rebuilt around the old town. Since May 2026 the whole wall is free by day (07:00–17:00); in the evening parts were turned into a paid lantern area (¥29 in May 2026), and the rules have changed several times this year, so check at the gate. Rent a bike on top and ride the loop at sunset.

Day 2: Hanging Temple, Wooden Pagoda, train to Pingyao

The Hanging Temple clings to a cliff 65 km southeast of Datong in Hunyuan County. There is no practical public transport for a same-day loop, so hire a car with driver or join a day tour; agree the price, the route and the drop-off at Datong South station in advance. Be there at opening (around 08:00) with your Trip.com booking and passport. The walkways are narrow and one-way; inside takes about 40 minutes.

If you have time, continue to the Yingxian Wooden Pagoda (应县木塔, ¥48) in Ying County, about an hour's drive away. Built in 1056, it is the oldest and tallest all-timber pagoda in China, 67 m high. Visitors cannot climb it, so you see it from the ground floor and the courtyard. Skipping it saves about two hours and makes the evening train easier.

Drive back to Datong South and take an afternoon or evening train to Pingyao Gucheng. If no direct train suits you, change at Taiyuan South: Taiyuan to Pingyao Gucheng takes about 30–40 minutes. From Pingyao Gucheng station, bus 108 or a taxi takes you to the old town; cars cannot drive inside the walls, so electric carts carry luggage to the guesthouses.

Day 3: inside the walls of Pingyao

Pingyao Ancient City is free to walk, 24 hours a day. The sights inside need the combined ticket: ¥125, valid for 3 days from your chosen date, about 20 sites, each entered once with a passport scan. Buy it on the "平遥古城景区官方服务平台" WeChat account, on Trip.com or at the gate offices. Sites open about 08:00–18:30 in summer and 08:00–17:30 in winter.

Start at Rishengchang (日升昌), founded in 1823 as China's first draft bank, before the tour groups arrive around 10:00. Then the County Government Office (县衙), the Confucius Temple and the escort-agency museums. In the late afternoon walk the city wall, 6 km round and more than 600 years old. Some sections may be closed for repairs.

With a fourth morning, take a taxi to the Shuanglin Temple (双林寺, ¥35, not in the combined ticket, 6 km away) for its 2,000 painted clay figures, or drive 35 km to the Wang Family Courtyard (王家大院, ¥55 April–October), a vast Qing merchant mansion.

Where to stay and what to eat

Stay inside the Pingyao walls, in a courtyard guesthouse with a kang bed, so you can walk the streets early and late. In Datong, stay near the old town for the wall and Huayan Temple. Both towns are cold and dry in winter (often below -10°C at night in January) and busy in the October Golden Week.

Food is the other reason to come. In Datong, eat knife-cut noodles (刀削面), sliced straight into the pot. In Pingyao, try Pingyao beef (平遥牛肉), salted and slow-cooked, sold vacuum-packed everywhere, and oat noodles (莜面栲栳栳), rolled into thin tubes and steamed in a honeycomb pattern. Shanxi aged vinegar (老陈醋) is on every table. More in our regional cuisines guide.

Prices and booking rules here were checked on 23 October 2026 and change often, especially at the Hanging Temple. Check before you go. City pages: Datong and Pingyao.

Was this page useful?
Rules here change fastGet one email when China’s entry, payment or booking rules change. Nothing else, and you can stop anytime.

Sources

Checked against these sources on 2026-10-23. Rules change often, so confirm on the official site before you go.

Ask about this page

Stuck on something? Ask here. Our team answers within 24 hours and emails you the answer.

Questions are public (your email is not). We check them before they appear.

Read next

More on Planning