# Shanxi Travel Guide: Pingyao and Yungang Grottoes Route

[Home](https://unclepandatravel.com/)[China travel guide](https://unclepandatravel.com/travel-guide)[Trip Planning](https://unclepandatravel.com/travel-guide/tag/trip-planning)

# Shanxi Itinerary: Pingyao Ancient City & Yungang Grottoes

Last checked 2026-11-18 · by the Uncle Panda team · 9 min read

[Trip Planning](https://unclepandatravel.com/travel-guide/tag/trip-planning)

A classic trip covering the Yungang Grottoes and Pingyao Ancient City in Shanxi requires at least 5 days, connecting Datong, Taiyuan, and Pingyao. If you plan to visit Mount Wutai, the Pagoda of Fogong Temple, or extend south to Xiaoxitian in Linfen, a 7-day itinerary is recommended. The Datong to Xi'an high-speed railway runs through the province from north to south, with travel time between Taiyuan and Xi'an reduced to about 3 hours, making train transfers between heritage cities fast and convenient.

## Why Datong and Pingyao Are Top Picks in Shanxi

According to statistics, the province preserves more than 28,000 ancient buildings of various types. Over 70% of China's surviving timber-frame structures from the Song dynasty and earlier are located here. The region has 3 UNESCO World Heritage Sites: Pingyao Ancient City, the Yungang Grottoes, and Mount Wutai.

In the north, Datong served as the capital of the Northern Wei dynasty between 398 and 494 AD, leaving behind the World Heritage Yungang Grottoes. In the central area, Pingyao Ancient City was originally founded during the reign of King Xuan of Western Zhou and was inscribed on the World Heritage List in 1997. The two places represent early Chinese grotto carving art and a well-preserved county-level walled city from the Ming and Qing dynasties.

## How to Plan a 5 to 7 Day Itinerary

A 5-day route relies on high-speed trains. Spend the first 2 days visiting Datong for the Yungang Grottoes, the Hanging Temple, and Liao and Jin dynasty architecture in the old city. On day 3, take a high-speed train to Taiyuan to visit the provincial museum and Jinci Temple. On days 4 and 5, explore Pingyao Ancient City, Shuanglin Temple, and the Wang Family Compound. If you extend to 7 days, you can add the Pagoda of Fogong Temple and Mount Wutai between Datong and Pingyao, or head south by train after Pingyao to Linfen to see Xiaoxitian in Xixian and the Hukou Waterfall on the Yellow River.

| City or Stop | Key Historic Heritage | Period or Scale | Transport and Location |
| --- | --- | --- | --- |
| Datong | Yungang Grottoes and Huayan Temple | Carved between 460 and 494 AD, preserving 252 caves and 51,000 statues | About 16 km west of downtown Datong, about 2 hours from Beijing by high-speed train |
| Hunyuan in Datong and Yingxian in Shuozhou | Hanging Temple and Pagoda of Fogong Temple | The Hanging Temple was built in the Northern Wei on a cliff 75 meters above ground; the pagoda was built in 1056 and stands 67.31 meters tall | The Hanging Temple is about 64 km southeast of downtown Datong |
| Taiyuan | Shanxi Museum and Jinci Temple | Shanxi Museum houses about 400,000 cultural relics; the Hall of the Holy Mother at Jinci was built between 1023 and 1032 | Jinci is about 25 km southwest of Taiyuan, which is a major hub on the Datong to Xi'an high-speed railway |
| Pingyao in Jinzhong | Pingyao Ancient City, Shuanglin Temple, and Zhenguo Temple | Pingyao city wall is 6,163 meters in circumference; Shuanglin Temple has 2,052 painted sculptures; the Wanfo Hall of Zhenguo Temple was built in 963 | About 90 to 100 km from Taiyuan, with a station on the Datong to Xi'an high-speed railway |
| Lingshi in Jinzhong | Wang Family Compound | Covers an area of 8 hectares, preserving 231 courtyards and 2,078 rooms | Located in Lingshi County south of Pingyao, easy to visit along the way |
| Linfen | Xiaoxitian in Xixian and Yellow River Hukou Waterfall | The Main Hall of Xiaoxitian holds over 1,900 clay sculptures; Hukou Waterfall is up to 30 meters wide and about 50 meters deep | Linfen connects to Taiyuan and Xi'an through Yaodu Airport and Linfen West Railway Station |

Colossal seated Buddha and standing attendant at Cave 20 of Yungang Grottoes.Photo: [Patrick20242023](https://commons.wikimedia.org/wiki/File:%E4%BA%91%E5%86%88%E7%9F%B3%E7%AA%9F%E7%AC%AC20%E7%AA%9F%E6%AD%A3%E9%9D%A2.jpg) / Wikimedia Commons, [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0)

## Visiting Datong: Yungang Grottoes, Hanging Temple, and Ancient Architecture

The Yungang Grottoes sit in the Shili River valley at the southern foot of Mount Wuzhou, about 16 km west of downtown Datong. They were carved into sandstone cliffs about 2,600 feet long and 30 to 60 feet high. The site preserves 252 caves and 51,000 statues. The Five Caves of Tan Yao, excavated under the monk Tan Yao, mark the first peak of Northern Wei grotto art. The site was inscribed on the World Heritage List in 2001.

The Hanging Temple in Hunyuan County is about 64 km southeast of downtown Datong, first built over 1,500 years ago during the Northern Wei dynasty. The entire structure stands on a cliff 75 meters above the ground, supported by wooden crossbeams fitted into chisel holes in the rock. In the Three Religions Hall, Sakyamuni Buddha sits in the center, with Laozi on the left and Confucius on the right.

Inside Datong, you can find rare timber structures from the Liao and Jin dynasties alongside Ming dynasty remains. Huayan Temple was founded in 1038, and its Main Hall, rebuilt in 1140, covers a single-building floor area of 1,559 square meters. Shanhua Temple dates back to the Kaiyuan era of the Tang dynasty between 713 and 741, with its Main Hall built in the 11th century during the Liao dynasty. The city also preserves a Ming Nine-Dragon Screen that is 45.5 meters long and 8 meters high, as well as the Datong City Wall with a perimeter of 7,270.7 meters and a height of about 14 meters. Heading south toward Taiyuan, you can visit the Pagoda of Fogong Temple in Yingxian, built in 1056. Standing 67.31 meters tall, the pagoda uses 54 types of bracket sets (dougong) without a single iron nail or clamp.

The wooden Hanging Temple clings to the sheer cliff face of Mount Heng in Datong.Photo: [noeliashic](https://commons.wikimedia.org/wiki/File:%E6%82%AC%E7%A9%BA%E5%AF%BA_(Templo_Colgante).jpg) / Wikimedia Commons, [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0)

## Stopping in Taiyuan: Shanxi Museum and Jinci Temple in One Day

Taiyuan serves as the key rail hub linking Datong and Pingyao. Jinci Temple is located about 25 km southwest of downtown Taiyuan. Its signature building, the Hall of the Holy Mother, was built in the Northern Song dynasty between 1023 and 1032. Eight eaves columns along the front porch feature carved wooden dragons, and the hall houses 43 Song dynasty painted clay statues of maidservants.

Shanxi Museum in Taiyuan holds about 400,000 cultural artifacts and 110,000 ancient books. It has been open to the public for free with valid identification since March 2008, offering an organized look into local history. Frequent high-speed trains run south from Taiyuan to Pingyao, taking only about 30 minutes.

## Visiting Pingyao Ancient City: Tickets and Sights

The streets of Pingyao Ancient City are open 24 hours a day with free admission, but climbing the city wall and entering core paid attractions like Rishengchang Draft Bank, the Pingyao County Government Office, the Confucian Temple, and the City God Temple require a combination ticket. The current city structure mostly dates to 1370. The perimeter wall extends 6,163 meters and stands about 12 meters high, featuring 6 barbican gates, 4 corner towers, 72 watchtowers, and 3,000 battlements. It is called the 'Tortoise City' because its layout resembles the head, tail, and four legs of a tortoise.

The main buildings in town reflect the urban planning and financial growth of the Ming and Qing eras. Rishengchang on West Street, founded in 1823, was the first draft bank in Chinese history. The Pingyao County Government Office, founded in 1346, is one of the most complete surviving ancient county offices in the country. The Dacheng Hall of Pingyao Confucian Temple was rebuilt in 1163 during the Jin dynasty and remains the only Jin timber structure among Confucian temples in China. Today, more than 20,000 residents still live inside the walls, which protect nearly 4,000 traditional courtyard homes and storefronts.

Nearby Shuanglin Temple and Zhenguo Temple are part of the Pingyao World Heritage property. Shuanglin Temple sits about 6 to 7 km southwest of the walled city, where ten halls preserve 1,650 painted clay sculptures in good condition. Zhenguo Temple lies about 10 km northeast of town; its Wanfo Hall was built in 963 during the Five Dynasties period and preserves 11 clay sculptures from that era. Continuing south into Lingshi County brings you to the Wang Family Compound, which spans 8 hectares with 231 courtyards and 2,078 rooms. Pingyao polished lacquerware ranks among the four famous lacquerwares of China, while local cuisine highlights Pingyao beef, wantuo buckwheat cakes, and Jinzhong noodles.

Brick watchtowers line the old city wall of Pingyao, casting long shadows in the low sun.Photo: [Gisling](https://commons.wikimedia.org/wiki/File:Pingyao_city_wall.jpg) / Wikimedia Commons, [CC BY 3.0](https://creativecommons.org/licenses/by/3.0)

## How to Travel from Datong to Pingyao

Traveling by the Datong to Xi'an high-speed railway is the most convenient option between Datong and Pingyao. The line runs north to south through the province and connects to Xi'an in Shaanxi, linking cities such as Datong, Shuozhou, Xinzhou, Taiyuan, Jinzhong, Linfen, and Yuncheng. The train ride from Datong to Beijing takes about 2 hours, and travel time from Taiyuan to Xi'an is down to around 3 hours. Pingyao is about 90 to 100 km from Taiyuan, and high-speed trains from Taiyuan South Station to Pingyao Ancient City Station take only about 30 minutes.

## What Season Offers the Best Weather?

Datong and Pingyao experience four distinct seasons, with autumn generally cool and sunny, making it a comfortable time to visit. Pingyao has an average annual temperature of 10.2°C, with annual precipitation of about 540 mm concentrated in summer; winters and springs feature sharp temperature fluctuations and dry air. Datong lies in the Datong Basin at an average elevation of 1,040 meters. Its annual average temperature is 7.33°C, with an average of -10.5°C in January and 22.6°C in July. The average daily temperature variation reaches 13.2°C, and more than three-quarters of annual precipitation falls between June and September. Bring warm layers for morning and evening, along with sunscreen and water.

## Additional Heritage Sites and Landscapes Further South

If you extend your route toward Linfen, the Qianfo Nunnery (Xiaoxitian) in Xixian holds over 1,900 clay figurines in the Main Hall of its upper courtyard. Crafted between the Chongzhen and Shunzhi reigns, they are regarded as a pinnacle of Chinese suspended clay sculptures. The Feihong Pagoda at Guangsheng Upper Temple in Hongdong was built from 1515 to 1527, with 13 exterior tiers standing 47.31 meters high, making it the largest glazed pagoda in China. For natural scenery, the Hukou Waterfall on the Yellow River in Jixian spans up to 30 meters wide and about 50 meters deep, with a maximum waterfall surface of 30,000 square meters, located about 25 km southwest of Jixian county seat. Linfen connects to Taiyuan and Xi'an through Linfen Yaodu Airport and Linfen West Railway Station.

## Sources

[Linfen - Wikipedia](https://zh.wikipedia.org/w/index.php?title=%E4%B8%B4%E6%B1%BE%E5%B8%82&oldid=94239033)  
[Hukou Waterfall - Wikipedia](https://zh.wikipedia.org/w/index.php?title=%E5%A3%B6%E5%8F%A3%E7%80%91%E5%B8%83&oldid=86491288)  
[Qianfo Nunnery - Wikipedia](https://zh.wikipedia.org/w/index.php?title=%E5%8D%83%E4%BD%9B%E5%BA%B5&oldid=92021338)  
[Guangsheng Temple - Wikipedia](https://zh.wikipedia.org/w/index.php?title=%E5%B9%BF%E8%83%9C%E5%AF%BA&oldid=94258860)  
[Ancient City of Ping Yao](https://whc.unesco.org/en/list/812/)  
[Pingyao - Wikipedia](https://en.wikipedia.org/w/index.php?title=Pingyao&oldid=1385502426)  
[Ancient City of Pingyao - Wikipedia](https://zh.wikipedia.org/w/index.php?title=%E5%B9%B3%E9%81%A5%E5%8F%A4%E5%9F%8E&oldid=95389770)  
[Rishengchang - Wikipedia](https://en.wikipedia.org/w/index.php?title=Rishengchang&oldid=1364405672)  
[Shuanglin Temple - Wikipedia](https://en.wikipedia.org/w/index.php?title=Shuanglin_Temple&oldid=1367598550)  
[Zhenguo Temple - Wikipedia](https://en.wikipedia.org/w/index.php?title=Zhenguo_Temple&oldid=1367806513)  
[Pingyao Confucian Temple - Wikipedia](https://zh.wikipedia.org/w/index.php?title=%E5%B9%B3%E9%81%A5%E6%96%87%E5%BA%99&oldid=92583850)  
[Pingyao County Government Office - Wikipedia](https://zh.wikipedia.org/w/index.php?title=%E5%B9%B3%E9%81%A5%E5%8E%BF%E8%A1%99&oldid=92583765)  
[Pingyao County - Wikipedia](https://zh.wikipedia.org/w/index.php?title=%E5%B9%B3%E9%81%A5%E5%8E%BF&oldid=95389711)  
[Datong - Wikipedia](https://en.wikipedia.org/w/index.php?title=Datong&oldid=1384515727)  
[Yungang Grottoes](https://whc.unesco.org/en/list/1039)  
[Yungang Grottoes - Wikipedia](https://en.wikipedia.org/w/index.php?title=Yungang_Grottoes&oldid=1384730816)  
[Hanging Temple - Wikipedia](https://en.wikipedia.org/w/index.php?title=Hanging_Temple&oldid=1370834151)  
[Huayan Temple (Datong) - Wikipedia](https://en.wikipedia.org/w/index.php?title=Huayan_Temple_(Datong)&oldid=1368659806)  
[Shanhua Temple - Wikipedia](https://en.wikipedia.org/w/index.php?title=Shanhua_Temple&oldid=1368660270)  
[Datong Nine-Dragon Screen - Wikipedia](https://zh.wikipedia.org/w/index.php?title=%E5%A4%A7%E5%90%8C%E4%B9%9D%E9%BE%99%E5%A3%81&oldid=93696150)  
[Datong City Wall - Wikipedia](https://zh.wikipedia.org/w/index.php?title=%E5%A4%A7%E5%90%8C%E5%9F%8E%E5%A2%99&oldid=92021348)  
[Shanxi - Wikipedia](https://en.wikipedia.org/w/index.php?title=Shanxi&oldid=1384008986)  
[Datong-Xi'an High-Speed Railway - Wikipedia](https://en.wikipedia.org/w/index.php?title=Datong%E2%80%93Xi'an_high-speed_railway&oldid=1369032883)  
[Datong-Xi'an Railway - Wikipedia](https://zh.wikipedia.org/w/index.php?title=%E5%A4%A7%E8%A5%BF%E9%AB%98%E9%80%9F%E9%93%81%E8%B7%AF&oldid=95434042)  
[Jinci - Wikipedia](https://en.wikipedia.org/w/index.php?title=Jinci&oldid=1385253718)  
[Shanxi Museum - Wikipedia](https://en.wikipedia.org/w/index.php?title=Shanxi_Museum&oldid=1363577070)  
[Pagoda of Fogong Temple - Wikipedia](https://en.wikipedia.org/w/index.php?title=Pagoda_of_Fogong_Temple&oldid=1370924170)  
[Wang Family Compound - Wikipedia](https://en.wikipedia.org/w/index.php?title=Wang_Family_Compound&oldid=1315787271)  
[Mount Wutai - Wikipedia](https://en.wikipedia.org/w/index.php?title=Mount_Wutai&oldid=1369587160)  
All sources verified on November 17, 2026.

## FAQ

Do you need a ticket to enter Pingyao Ancient City?

The street areas of Pingyao Ancient City are open 24 hours a day with free admission, but climbing the city wall or visiting major paid attractions such as Rishengchang Draft Bank, the Pingyao County Government Office, the Confucian Temple, and the City God Temple requires a combination ticket.

How long does the high-speed train take from Beijing to Datong?

According to railway operational data, Datong sits about 250 km west of Beijing, and the high-speed rail line has shortened travel time from about 6 hours on regular trains to around 2 hours.

How many caves and Buddha statues survive at Yungang Grottoes?

According to World Heritage records, the Yungang Grottoes preserve 252 caves and 51,000 statues, mostly excavated between 460 and 494 AD when Datong served as the capital of the Northern Wei dynasty.

Do you need to purchase tickets in advance for Shanxi Museum?

Shanxi Museum has offered free admission since March 2008. Visitors can reserve entry with valid identification. The museum houses about 400,000 cultural relics and 110,000 ancient books.

Which religious figures are worshipped at the Hanging Temple in Datong?

The Hanging Temple is a distinctive temple combining Buddhism, Taoism, and Confucianism. In its Three Religions Hall, Sakyamuni Buddha is enshrined in the center, Taoist founder Laozi on the left, and Confucian master Confucius on the right.

## More guides

[Yunnan in December and January: Weather, Snow Mountains, and Seagulls](https://unclepandatravel.com/travel-guide/yunnan-in-december-january-weather-snow-seagulls)[Solo Travel in China: How Much More a Private Trip Costs](https://unclepandatravel.com/travel-guide/solo-private-china-tour-single-supplement)[Nanjing Road Walk: Old Brands and a Shopping Route](https://unclepandatravel.com/travel-guide/nanjing-road-pedestrian-street-shanghai-guide)[Fenghuang Ancient Town and Furong Town Travel Guide](https://unclepandatravel.com/travel-guide/fenghuang-ancient-town-furong-town-from-zhangjiajie)

Questions about your own trip?

Replies 08:30–22:00 your time · Free to ask.

[Email quote](https://unclepandatravel.com/quote)

---

- Source page: https://unclepandatravel.com/travel-guide/shanxi-travel-itinerary-pingyao-datong
- Language: English · Updated: 2026-11-26
- Operator: Hunan Panda International Travel Service Co., Ltd. (Uncle Panda Travel), licensed China travel agency, licence L-HUN-304745
- Contact: service@unclepandatravel.com · WhatsApp +8615580812229
- Site index for AI: https://unclepandatravel.com/llms.txt
