Xi'an's Ancient City Wall: Cycling the Ming Ramparts of the Silk Road Capital

Posted: October 02nd 2026


There is no better way to understand Xi'an than to ride around it. The city's Ming-era city wall forms a complete 13.74-kilometer rectangle of rammed earth and gray brick, and on top of it runs a broad, paved walkway wide enough for a bicycle, a pair of pedestrians walking side by side, and the occasional electric shuttle cart. Rent a bike at the South Gate, push off, and in about ninety minutes of relaxed pedaling you will have circled the footprint of one of the most important cities in human history — the eastern terminus of the Silk Road, the capital of thirteen dynasties, and the place the world once knew as Chang'an.

This guide covers what the wall actually is, how it was built and defended, why it survived when almost every other Chinese city wall did not, and how to plan a ride that works with your schedule and the light.

The Wall You See Today: A Ming Fortress on Tang Foundations

Travelers are often surprised to learn that the wall is not one single structure from one single era. It is a palimpsest — a surface that has been written on repeatedly.

The story begins in 582 CE, when Emperor Wen of the Sui dynasty ordered the construction of a new capital called Daxing. Its imperial city — the walled government quarter inside the larger metropolis — set the alignment that everything since has followed. The Tang dynasty inherited and expanded that city as Chang'an, which grew into one of the largest and most cosmopolitan urban centers on earth, home to merchants, monks, and envoys from Persia, Central Asia, Korea, and Japan.

When the Tang collapsed, Chang'an shrank. In 904 CE the warlord Han Jian pulled the population back into the old imperial city and rebuilt its defenses on a much smaller footprint. That reduced enclosure — known to historians as the New City — was reused by the Five Dynasties, Song, Jin, and Yuan administrations as the seat of the Fengyuan prefecture.

Then came the Ming. In 1370, the third year of the Hongwu reign, the founding emperor Zhu Yuanzhang ordered the city expanded and refortified. Expansion ran until 1373 to make room for the princely palace of his son Zhu Shuang; formal construction of the wall proper began in 1374 under the general Feng Sheng and was completed in 1378. The Ming builders reused the Han Jian enclosure for the south and west sides and pushed the east and north faces outward — by roughly 1,300 to 1,435 meters on the east and 800 to 864 meters on the north — creating the horizontally rectangular outline you can still trace on a map today.

The result measured about 13.7 to 13.74 kilometers around, with walls roughly 12 meters high, 12 to 14 meters wide at the top, and 15 to 18 meters thick at the base. The thickness is the giveaway: this was not a decorative barrier but an engineered defensive platform. The top was deliberately made broad enough to march troops, move supplies, and mount artillery — a design choice that gives the wall its distinctive proportions and, conveniently for us, its usefulness as a cycling route.

The interior encloses about 11.3 square kilometers of what residents still simply call the old city, with the Bell Tower and Drum Tower sitting almost exactly at its center.

The Defense System: Duntai, Crenellations, and a Wall That Outgrew Its Own Height

Once you are up on the wall, look outward. The rhythm you notice — a bastion jutting out every few hundred paces — is the signature of a carefully layered defensive scheme.

Bastions and towers

Along the outer face, extensions project beyond the wall line at regular intervals. In Chinese these are called duntai, or horse-face platforms. On the Xi'an wall they appear roughly every 120 meters, project about 10 meters out from the wall face, and number 98 in total. Their purpose was geometric: from a projecting platform, defenders could fire along the wall face at attackers who would otherwise be shielded by the wall itself. Towers on ninety-four of them were rebuilt in the Qing period as lower, single-eave guardhouses after the original two-story Ming towers proved too conspicuous a target for firearms.

Crenellations and inner parapet

The top carries two different parapets. On the outer edge stands a higher crenellated wall — about 1.76 meters — pierced by 5,984 battlements that gave archers and arquebusiers cover while firing. On the inner edge runs a lower, unbroken parapet about 0.88 meters high to keep people and animals from falling into the city. That asymmetry is a small lesson in how these structures were used: the outer edge is for fighting, the inner edge is for walking.

The four gates and their barbicans

Four main gates pierce the rectangle at the cardinal points, and their names form a small piece of statecraft. The east gate is Changle (Perpetual Joy), the west Anding (Stability), the south Yongning (Perpetual Peace), and the north Anyuan (Far-reaching Pacification). Read the first characters together and you get Chang'an Yongding — a blessing on the city and, by extension, on the empire, since Xi'an was the Ming dynasty's gateway to the northwest.

Each gate was protected by a barbican: an enclosed outer courtyard, joined to the main wall, with a gate tower facing outward and an archer's tower overlooking the approach. Yongning Gate at the south is the most complete survivor of this system and the only gate that still has its drawbridge.

Why This Wall Survived: Repairs, Neglect, and a Modern Rescue

China built hundreds of fortified cities. Almost none kept their walls into the twentieth century. Xi'an's survived through a combination of geological luck, repeated state investment, and a late twentieth-century decision to treat the wall as heritage rather than obstacle.

  • 1568: Under the Ming, the provincial governor Zhang Zhi faced the outer face and top of the rammed-earth wall with gray brick — the surface you touch today.
  • 1636: Governor Sun Chuanting added outer suburban earthworks to counter rebel armies during the dynasty's final crisis.
  • Qing era: The wall was repaired twelve times. The largest project came in 1781 under Governor Bi Yuan, who standardized the wall's width, extended the base outward while drawing the top inward, added three to five courses of brick to the outer face, paved the top with two layers of brick, and installed brick drainage chutes along the inner face at intervals of 40 to 60 meters.
  • 1983 onward: The Shaanxi and Xi'an governments launched a large-scale restoration, rebuilding demolished gate towers, restoring the south gate's drawbridge, and creating the ring park that now circles the wall.
  • 2004: A final link was completed — the section behind the railway station, built over in the twentieth century — closing the circuit. After eleven years of repair, the full 13.74 kilometers became continuously walkable.

The wall is listed as a Major Historical and Cultural Site Protected at the National Level, and it anchors the Xi'an City Wall–Beilin historical scenic area, which was designated a National 5A-level tourist attraction in October 2018.

Cycling the Circuit: A Practical Plan

The classic ride is a full loop, and the standard route simply follows the perimeter: South Gate to West Gate to North Gate to East Gate and back to the South Gate. Because the wall is a closed rectangle, you cannot get lost — only decide where to stop.

Where to start

Yongning Gate, the South Gate, is the usual entry point. It is the wall's formal front door, the best preserved of the four gates in terms of layout, and the closest to the Bell Tower neighborhood where most visitors stay. It is also the busiest, and in the middle of the day you may queue for a bicycle.

How long it takes

At a comfortable cruising pace with photo stops, allow two to three hours for the full loop. A focused rider who barely stops can finish in about an hour and a half. The terrain is flat — the only slopes are the ramps and stairways used to get up and down.

Bicycle rentals

Bicycles are rented on the wall itself, with stations concentrated near the major gates. Both single and tandem bikes are available, and tandem bikes are a practical option for families with one confident rider and one passenger. Rental windows and prices change with the season and with demand, so confirm the current hours and deposit when you arrive rather than planning around a figure you read online.

Timing your ride

  • Early morning: The quietest window. Locals use the wall and the ring park below for exercise, the light is soft, and photography along the east and north stretches is at its best.
  • Late afternoon into evening: The wall is illuminated at night, and the effect of riding above a glowing city is the single most memorable thing about the experience. Note that bicycle rental typically closes before the wall itself does, so return your bike before the rental station shuts if you want to keep walking.
  • Avoid the midday peak in high season if you want unobstructed stretches — the South Gate section in particular fills up.

What to bring

  • Sunscreen and a hat. There is essentially no shade anywhere on the top, and the brick radiates heat.
  • Water. Vendors exist but are spaced out.
  • A light layer in shoulder season — the wall is elevated and exposed to wind.
  • A fully charged phone. The wall is 12 meters above street level for its entire length, and there is no graceful way down except at the gates.

Combine it with the neighborhoods below

The wall works best as the spine of a day, not the whole of it. The Bell Tower and Drum Tower sit at the center of the old city within easy walking distance of the South Gate. Below the wall runs a moat and ring park, with the moat around the wall long established as a green belt. Since 2022 the moat has also carried smart tour boats — a slower, lower perspective on the same fortifications, and a pleasant way to end an afternoon if your legs have had enough.

A Wall as a Calendar

Xi'an's wall is not a ruin kept behind glass. It hosts the city's International Marathon, which has been run on the South Gate section since the mid-2000s, and it hosts the New Year lantern festival that has drawn residents up onto the battlements for four decades. In spring the ring park fills with blossom; in winter the gray brick and the lanterns trade places as the city's defining image.

That is the real case for riding it. A monument you can look at tells you what a city was. A monument you can pedal around at dusk, with the Bell Tower lit up in the middle and street noise rising over the parapet, tells you what a city still is.

Frequently Asked Questions

How long is the Xi'an city wall?

The Ming city wall measures approximately 13.74 kilometers around — a closed, roughly rectangular circuit with four main gates at the cardinal points.

How many gates does the wall have?

Four original Ming gates remain as the principal entrances: Changle (east), Anding (west), Yongning (south), and Anyuan (north). Additional openings were cut through the wall from the early twentieth century onward for traffic, and the wall today has around eighteen gateways in total, though only the four originals belong to the Ming defensive design.

Can you cycle on the city wall?

Yes — cycling is the standard way to cover the full circuit. Bicycles are rented at stations on the wall near the main gates, single and tandem options are usually available, and the paved top is flat for its entire 13.74-kilometer length.

How high and how thick is the wall?

Roughly 12 meters high, 12 to 14 meters wide along the top, and 15 to 18 meters thick at the base. The breadth of the top is what makes walking and cycling possible.

When was the Xi'an city wall built?

The present wall is Ming work. Expansion began in 1370 under the Hongwu emperor; formal construction ran from 1374 to 1378. It stands on foundations laid for the Sui and Tang imperial city, first built in 582 CE — which is why locals describe the site as having more than 1,400 years of continuous wall history.