Stop 2 of 7

The Wall above Yongning Gate

永宁门城墙

This stop shows the scale of what remained after Chang'an was reduced.

25 min
A section of the wall and Yongning Gate in Xi'an.
YikyuenG · CC BY-SA 4.0; cropped/resized for app; ShareAlike applies
1234567

0 of 7 done

Audio guide · recorded voiceListen to the place’s story

Look around first

What to notice

  • Brick parapet
  • Southern line of the wall
  • Opening of Yongning Gate
  • Wards south of the wall

The story of the place

Text size

The deck and brick parapet above Yongning Gate lie on the southern boundary of Chang'an's former imperial city. Tang administrative offices and departments stood to the north, while residential wards extended to the south; the present wall later followed this old boundary. The base of the passage goes back to the eastern Anshang Gate, a side entrance to the officials' district, and after the internal walls were abolished, trading was permitted here not in designated markets but throughout the compact city. In the fourteenth century, Ming builders expanded Xi'an to the north and east, retained the southern line, and combined the three portals of Anshang Gate into the single brick vault of Yongning Gate.

In nine hundred four, the warlord Zhu Wen, seeking the complete submission of the Tang court, forced the emperor to move the capital from Chang'an to Luoyang. Residents were relocated according to lists. Palaces, government buildings, and private homes were dismantled, and the beams were floated down the Wei River. Three years later, Zhu Wen abolished the Tang dynasty and founded his own. Abandoned Chang'an was left without the court, without most of its residents, and without the means to maintain an enormous capital.

The military governor Han Jian inherited a city whose perimeter his garrison could no longer defend. He abandoned the ruined palace complex and the outer residential wards. For the new fortress, Han Jian chose the former imperial city—the district of Tang administrative offices and departments. After the reduction, about one-sixteenth of Chang'an's former area remained within the walls.

The people who had not left for Luoyang found themselves gathered in this cramped core. Han Jian ordered the demolition of the internal walls that had previously divided the residential wards and abolished designated market areas. Trade was now permitted throughout the new city: an arrangement devised for a populous capital hindered the survival of a small military center.

There were three gates in the southern wall of the former imperial city. Han Jian walled up the central Zhuque Gate, through which state ceremonies had once passed, but preserved the eastern Anshang Gate. Its foundation lies beneath present-day Yongning Gate. Thus a secondary entrance to an administrative district became one of the city's main gates.

In the fourteenth century, builders of the Ming dynasty expanded Xi'an to the north and east, while leaving Han Jian's southern line in its original place. They remade the old Anshang Gate from three rectangular passages into a single brick vault and named it Yongning Gate—“Gate of Eternal Peace.”

South of this wall, Chang'an's residential wards still extended in Tang times. Han Jian left them outside and drew the boundary of the former officials' city where the deck above Yongning Gate now lies.

Useful on site

Time at the stop25 min
Next stopSouthern Moat
Entranceby ticket

Paid access to the top. Local information for Yongning Gate from 2026 gives 8:00–22:00; official historical material gives the same basic schedule, but events and ticket offices should be checked on site.

Checked: June 29, 2026. Check the official source before visiting.

Access to the top may require payment and involves stairs; inside, it can be windy and there is little shade. A full circuit of the wall is not needed for this route.

Next step

Where to next

Return to ground level and approach the southern edge of the moat.

Stop 2 of 7Next: Southern Moat

Route completed

Walk completed

“The Wall and Towers of Old Xi'an” — 7 stops, about 3.5 km, 2.5–4 hours.

No App Store or Google Play

Guide On Map installs like an app

An icon appears on your home screen, the site opens without browser chrome, and downloaded routes stay handy.

Android · Chrome
  1. If “Install now” is below, tap it and confirm the install.
  2. If there is no button: menu ⋮ → “Install app”.
iPhone · Safari
  1. Tap the Share button at the bottom of Safari.
  2. Choose “Add to Home Screen”, then “Add”.
Home-screen iconFullscreen modeOffline routesWalk progress