Walking through the gate in Pingyao's walls is like stepping into a time machine. Inside its Ming-era fortifications, a Chinese city from another century has survived almost miraculously: cobbled streets lined with wooden shopfronts and red lanterns, temples with curved roofs, and thousands of grey courtyard houses where people still live. While almost every Chinese city tore down its walls and old neighbourhoods to modernise, Pingyao was left behind by development and survived whole, becoming the best window there is onto what a traditional city of late imperial China looked like.
But Pingyao isn't just a historical film set: at its peak it was one of the most important financial centres in China. Here, in the early 19th century, the country's first draft banks were born, and they came to move the money of the whole empire from these very streets. Touring the old Rishengchang bank, the county government office with its courtroom and dungeons, or climbing the walls to see the layout of the city lets you understand a China that survives nowhere else in such good condition.
This guide covers the essentials of Pingyao with a practical eye: what to see inside the walls with the combined ticket, how the tickets work, which temples in the surrounding area are worth a visit and how to make the most of the magic of sleeping in a traditional courtyard house. Small, pedestrian-friendly and steeped in history, Pingyao is one of the most charming stops on a trip through northern China, ideal between Datong or Beijing and Xi'an.
Pingyao has more than 2.700 years of history: there were settlements here as early as the Zhou dynasty, and the first rammed-earth walls date from that time. But the city we see today took shape mainly from the Ming dynasty onwards: in 1370 the great brick walls were rebuilt and the urban layout that survives almost intact was set. Its golden age, however, came in the late Ming and Qing dynasties, between the 16th and 19th centuries, when Shanxi merchants became some of the richest and most powerful in China. It was in Pingyao, around 1823, that the Rishengchang firm opened the country's first draft bank (piaohao), a system that allowed money to be transferred over long distances with bills of exchange and made the city the financial capital of imperial China for almost a century. With the fall of the empire, the arrival of modern banking and the wars of the 20th century, Pingyao declined and was left behind by development, which, paradoxically, saved its old town from demolition. In 1997 it was declared a UNESCO World Heritage Site. The full story is on our history page.
Read the full history ↓The historic heart of the country, the cradle of civilisation on the banks of the Yellow River: the imperial capitals, the Great Wall, the Buddhist grottoes and the Ming walled city of Pingyao.
Read the history of Northern China →No exact prices: a scale from $ (budget) to $$$$$ (luxury), with 2-3 options per category.
Origins, formation and what the sources say.
Although Pingyao is famous today for its Ming and Qing old town, its history goes back much further: more than 2,700 years, to the Western Zhou dynasty in the 8th century BC. Even then there was a walled settlement here, protected by rammed-earth walls, in a fertile part of the Shanxi loess plateau watered by tributaries of the Fen River. It was a good location: farmland, water and a position on the routes linking the heart of China with the north.
Over the following centuries, under the successive dynasties that ruled China, Pingyao was a modest county town, one of many administrative centres across the vast imperial map. It was neither a capital nor a great seat of power, but a provincial town with its local government, its market and its farming life. That very status as a middling town, neither too important nor entirely insignificant, would shape its fate: it let Pingyao grow and prosper at certain times, but it also kept the town on the sidelines of the sweeping changes that would wipe out the old quarters of China's big cities in the 20th century.
The town keeps the grid layout aligned with the cardinal points that is typical of traditional Chinese urban planning, with two main axes crossing at the centre and a street system that follows principles of harmony and hierarchy. On that ancient skeleton, century after century, the town we admire today was built, in an unbroken urban continuity that is exceptional in itself.
The Pingyao we see today took shape mainly from the Ming dynasty onwards. In 1370, just after the dynasty was founded, work began on the great rebuilding of the walls, which went from earth to the imposing brick enclosure that survives almost intact: a circuit of about six kilometres, with six monumental gates, seventy-two watchtowers and more than three thousand battlements. It was built as much for defence as to express the cosmic and social order that the Chinese set down in their cities.
Pingyao's wall is full of symbolism. Tradition says its plan imitates the shape of a turtle, a sacred animal associated with longevity, stability and protection: the south gate is the head, the north gate the tail, and the four side gates the animal's legs. This 'turtle city' would thus be protected and destined to endure. The numbers aren't random either: according to some interpretations, the seventy-two towers and three thousand battlements stand for Confucius's seventy-two disciples and three thousand virtues, building the Confucian ideal into the defences themselves.
Inside the walls, the town was organised around its two axes and its central market tower, with the temples, the government offices (the yamen), the shops and the courtyard houses laid out in a hierarchical order. That ensemble (walls, layout, temples, streets and thousands of traditional homes) is what has survived to this day, making Pingyao the most complete and best-preserved example of a traditional Han city of late imperial China, the main reason it was inscribed as a World Heritage Site.
Pingyao's great moment came between the 16th and 19th centuries, when merchants from Shanxi province became some of the richest and most powerful in all of China. These merchants, known for their business sense and their vast trading network, moved goods (salt, tea, silk, grain) across the length and breadth of the empire and even into Mongolia and Russia. As their trade grew, they ran into a practical and dangerous problem: carrying large amounts of silver along the roads of a huge and unsafe China was risky and expensive.
The solution was born in Pingyao. Around 1823, a dye business called Rishengchang, run by the entrepreneur Lei Lütai, changed its line of work and created China's first draft bank (piaohao). The idea was clever: instead of moving the silver physically, a customer could deposit money at one branch and receive a draft that let them withdraw it at another branch, hundreds or thousands of kilometres away, using a system of secret codes to prevent forgery. Long-distance banking had arrived in China.
It was a runaway success. Rishengchang opened branches all over the empire, and soon dozens of draft banks copying it sprang up in and around Pingyao. For almost a century, this small walled town in Shanxi was the financial heart of imperial China: a good share of the country's money passed through its courtyard houses, and its bankers financed trade, taxes and even the state itself. That wealth left its mark on the town: the courtyard mansions, the shops on Ming-Qing Street and the splendour you can still feel in Pingyao are the direct legacy of that golden century of banking.
Pingyao's financial splendour did not survive the collapse of the old imperial world. In the early 20th century, the arrival of modern Western-style banking, the creation of national banks, political instability, wars and finally the fall of the Qing dynasty in 1911-1912 made the draft-bank system obsolete. One after another, Pingyao's piaohao closed, and the town lost the financial role that had made it great. Without its banking industry, Pingyao went back to being a modest provincial town, and its economy stagnated.
Throughout China's turbulent 20th century (the warlord era, the Japanese invasion, the civil war, the 1949 revolution and the campaigns of the Mao years), Pingyao was left out of development. And here lies the great paradox of its history: that very decline and neglect were its salvation. While China's big cities tore down their walls and razed their old neighbourhoods to build avenues, factories and housing blocks in the name of progress, Pingyao, poor and without the means to modernise, kept its wall, its layout, its temples and its thousands of courtyard houses almost intact.
When, towards the end of the 20th century, China began to value its heritage again, it found that Pingyao had preserved something lost almost everywhere else: a complete traditional Han city, with its walled enclosure and its urban life from another age. In 1997, UNESCO inscribed the Ancient City of Pingyao on the World Heritage List, together with the nearby Shuanglin and Zhenguo temples, recognising its outstanding universal value as a testimony to the urban, cultural, social and economic development of imperial China.
Since its inscription as a World Heritage Site in 1997, Pingyao has become one of China's most distinctive cultural destinations and a magnet for travellers from all over the world who want to see what a city of imperial China was really like. Its walls, the Rishengchang bank turned into a museum, the county government office, the temples and Ming-Qing Street with its red lanterns offer an immersion that is hard to find anywhere else in the country with this degree of authenticity and completeness.
That success has also brought its challenges. Mass tourism, mostly domestic, has turned much of the old town into a string of souvenir shops, restaurants and guesthouses, and in high season, especially during the 'golden weeks', the small town fills to bursting. Striking a balance between protecting the heritage, the lives of the residents who still live in the courtyard houses and the pressures of tourism is Pingyao's big challenge today, as it is for so many heritage sites.
Even so, Pingyao keeps a genuine charm, especially when the tour groups thin out: at dawn, at dusk or at night, when the lanterns come on and the cobbled streets empty, it's easy to feel you've travelled back in time. Sleeping in a courtyard house, climbing the walls at sunset or getting lost in the little side streets lets you connect with the memory of the town that was, for a century, the financial heart of Asia's largest empire. Pingyao is not a rebuilt film set but a living town that has survived, and therein lies its incomparable value.