Pingyao is famous for being intact, which is slightly the wrong reason. The town survived because it stopped being important. It was a county seat, not a capital, and when the trade that made it rich moved elsewhere, nobody had the money to pull down the old walls and build a new city on the site. What is left is a complete Ming-and-Qing commercial town, and the most interesting thing inside those walls is not the architecture. It is the accounting.
What the wall actually is
The present wall was built in 1370, the third year of the Ming Hongwu reign, and it is a defensive envelope rather than a pretty rampart. It runs about 6.4 kilometres around the old town, roughly square with the corners slightly rounded, and carries 72 watchtowers and a set of gates with barbicans in front. Local accounts describe the plan as a turtle — the south gate as the head, the north gate as the tail, four gates as legs — which is the kind of folklore that tells you how a town liked to imagine itself.
The wall is rammed earth faced with brick, thick at the base and tapering upward, wide enough on top for men to walk and move supplies. What you see today has been repaired repeatedly, and the repair is visible if you look: new brick meets old brick, and some stretches are more reconstruction than conservation. That is normal for a living town, but it matters when people call Pingyao "the best-preserved" — preserved is a process, not a state.
Why a county town got rich
Shanxi merchants had been trading north and west for centuries, moving tea, cloth, iron and grain across the grassland frontier. Pingyao sits in a basin with routes running out of it in several directions, and by the early nineteenth century the surrounding counties had produced a class of merchants with capital, branches, and relatives in the right places.
The problem they had was physical. China's currency was silver, weighed and assayed locally, and a merchant in one province who owed money in another had two bad options: send the metal, which was slow and could be robbed, or trust a stranger's letter of credit. The Shanxi firms solved this by becoming the trusted stranger.
The invention, in 1823
In 1823 a dye business in Pingyao, Xiyucheng, was reorganised into a remittance house under the name Rishengchang. Its manager, Lei Lüta, is the figure most closely associated with the model. The firm took silver in one city, issued a draft, and paid out silver in another city against that draft. Nothing metal moved. What moved was a piece of paper and a set of instructions sent separately.
The slogan later attached to the firm was huì tōng tiān xià — exchange across the world. It was advertising, but accurate enough: within a few decades Shanxi draft banks had branches in the major commercial cities, and the network became the empire's informal clearing system.
How a draft was made hard to forge
The interesting part is the verification, because a draft that can be copied is worthless. The banks used several overlapping checks. The paper itself was special, with a printed border and a serial number recorded in a ledger. The handwriting of the issuing clerk was known to the paying branch. Seals and signatures were compared. And the amount, date and destination were disguised using a private code — the miya, a secret verification cipher keyed to a poem or phrase known only to the firm's staff and changed periodically.
Because the cipher was changed, a stolen draft from the previous period would decode into nonsense at the counter. Add the practice of sending the advice letter by a separate courier, and the system required a forger to beat several independent checks at once. It is a very modern-looking solution to a very old problem, arrived at without computers or telegraphs.
The firms also paid their staff in shares of profit rather than only wages. Senior employees could hold a dǐng shēn gǔ, a notional stake that entitled them to a division of the year's earnings. It tied the people who knew the codes and the customers to the long-term health of the house, which is one reason the system held together across distances nobody could supervise directly.
What happened when the silver stopped
The draft banks were an imperial-era solution, and they were overtaken by imperial-era problems. Modern joint-stock banks, the telegraph, railways, and the political collapse after 1911 all changed the terms. Remittance by wire and by rail made the old courier-and-cipher model expensive rather than clever. The great houses contracted, merged, and closed; the last of the old draft banks did not survive the middle of the twentieth century.
Pingyao's wealth went with them. The commercial firms left, the population thinned, and the town's fabric stopped being renewed. That is the mechanism behind the UNESCO inscription in 1997: the place is a complete specimen precisely because it missed the twentieth-century rebuilding boom that flattened so much of the rest of China.
Reading the streets now
The old town is a grid of lanes lined with courtyard houses, shopfronts, temples and guild halls. The courtyards are deep rather than wide, with a gate on the street, a screen wall inside to stop direct view, and rooms arranged by seniority. Shopfronts on the main streets are two-storey, with a wooden facade above the counter, because retail and storage shared the same narrow plot.
Some of the most-photographed buildings are restorations, and several courtyard houses are now museums or guesthouses. The Rishengchang site is preserved as a museum of the draft-bank system, which is the right way to see it: not as a merchant's house, but as an office where a financial technology was operated.
The town is also a working place, not a stage set. People live in the lanes behind the main streets, schools and shops operate, and the wall is a municipal boundary as much as a monument. That mix is why the place feels different from a rebuilt "ancient street", and it is also the thing most at risk from the very tourism that pays for the repairs.