History of Xian Ancient City Wall

The existing Xian Ancient City Wall was built from 1,370 to 1,378 AD under the order of the first emperor of Ming Dynasty – Zhu Yuanzhang (朱元璋). Long before the establishment of Ming Dynasty, Zhu Yuanzhang took an advice from a recluse: build up high walls, hoard abundant food supplies and take time to claim the throne. After he united the country and established Ming Dynasty, he started to build city walls all over the country. Xian Ancient City Wall was built at this time. Xian was once the capital city of Tang Dynasty (618 - 907 AD), once called Chang An (长安) at that time. The Ancient City Wall built in Ming Dynasty was constructed and enlarged on the foundation of imperial city wall of Tang Dynasty. Now, Xian Ancient City Wall is the largest and best preserved existing ancient city wall in China. Below are two recommended Xian Tour Packages including the Ancient City Wall:

- 3 Days Classic Xian Tour
- 4 Days Xian Highlights Tour with Mount Huashan Hiking

The Ancient City Wall Was an Ancient Defense Project

Chinese city walls were built as the defense systems to protect the cities or towns in China. Xian Ancient City Wall embodied the defense function perfectly. The rectangular city wall is 13.75km in length (about 4 hours walk), 12m in height, 12m – 14m in thickness at the top and 15m – 18m in thickness at the base. The width of the wall is thicker than its height, thus, the wall was stable as a mountain and the city was strongly fortified.

Five Defense Lines of the City Gate

The ancient weapons were backward and the city gate was the only access way to the city, thus, the city gate was the key point of city defense system. There are four principle gates of the city wall, and each of them has five defense lines.

As the first defense line, the moat surrounding the wall has drawbridges before each city gate. As the only access, the drawbridges are laid down in day time to allow the entry and exit of people, and are raised at night to cut off the access to the city. The second defense line is the floodgate tower, which controls the drawbridges and is responsible for announcing the night watches and giving an alarm. Behind the floodgate tower is the archery tower, which is located outside the gate tower. Over 30m in height, the archery tower has a vertical outer wall and is densely covered with arrow hole, convenient for observation and shooting. The fourth defense line is the enclosed space between archery tower and gate tower, called barbican. Barbican is a semicircular or quadrate small city built outside the city gate to enhance the defense of the city. The four barbicans of the Ancient City Wall cover over 7000m2, if the enemies enter into the barbican, the garrison army will kill them from a high point, just like shooting fish in a barrel. The last defense line is certainly the principle gate. It’s extremely painstaking to break up the five defense lines for the enemy troops.

Defense Structure on the City Wall

Except for the strong fortified city wall, there are four turrets at each corner of the city wall to assist the city gate in observing and defensing the surrounding enemy. There is a rampart tower extending out from the city wall every 120m, 20m in width and 12m in length, 98 rampart towers in total. The outer edge of the rampart towers and city wall is topped with crenellations for observation and shooting, called battlement. While the inner edge of the wall is topped with parapet to protect the soldier from falling off.

Ancient City Wall Map Tourist Map of Ancient City Wall
Click to enlarge it.
Yongding Gate Yongning Gate - the South Gate
Rampart Tower Rampart Tower

What You Can Do on the Ancient City Wall

Cycling on the wall

After you climb up the wall, the best way to visit is riding a bicycle around the wall. Of course, if you don’t know how to ride bicycle or you prefer more easy way, you can walk or take a battery car.

Time: about 2 hours

Rent fees: Regular bicycle: ¥45/3hrs, for overtime, ¥5 every 10mins. Tandem bicycle: ¥90/2hrs, for overtime, ¥10 every 10mins. The guarantee deposit is 200yuan per bike.

Where to rent: there are 19 city gates in total, and you can rent the bike at the four principle gates, for other small gates, you need to walk for a close distance to reach the rent site. Each rent site is on the wall, and you can rent and return at any of them.

Riding route: normally, people climb up the wall through the South Gate and ride a circle back to the South Gate. However, if you get tired, you can return the bike at any of the rent site.

Riding Notice: 1) UV in summer is very strong, so it’s suggested to visit the wall before 10:00 a.m. or after 17:00 p.m., and use sun block and wear hat and sunglasses to prevent sunburns; 2) There is no bike with child seat; 3) Bring a bottle of water and put in your small bag because there are not may vendors selling drinks on the Wall.

Cycling on the Wall Leisurely Cycling on the Wall
Cycling on the Wall Our clients on the Wall

Hanguang Gate - Real City Wall of Tang Dynasty

On the south wall of the Xi'an City Wall, there are seven gates from west to east. Hanguang Gate is the westernmost gate. It has been more than 1400 years since Hanguang Gate was built. In the Tang Dynasty, Hanguang Gate was a well-known place. Hanguang Gate was connected to Hanguang Gate Street, which led directly north to the imperial palace where the emperor resided. The Honglu Temple, which received envoys from all over the world with different skin colors and languages, was also located inside Hanguang Gate. Merchants from the ancient Silk Road also entered Chang'an City through Hanguang Gate. It can be said that Hanguang Gate was an important node of the Silk Road and also served as the "customs" for entering Chang'an City.

In 1986, when the Xi'an City Wall was renovated, the Tang Hanguang Gate site was discovered. After archaeological excavation, it was found that the Tang Hanguang Gate had three gateways, with rectangular gate piers measuring 37.4 meters long from east to west and 19.6 meters wide from north to south. It is the most well-preserved Sui and Tang Dynasty gate site discovered so far. Among them, the middle gateway was the imperial road, which was used exclusively for the emperor's travel, while the east and west gateways were passages for civil and military officials to enter and exit the imperial city. The west gateway still retains the clear track marks of Tang Dynasty road surfaces. In addition, the incense ash found in the square brick shallow pit on the north side of the gate also confirms that the Tang Dynasty gate guards used the "incense-burning timekeeping" method to change shifts.

To protect the Hanguang Gate site, the government built a museum. In the museum, tourists can not only witness the Tang Dynasty city wall site more than 1400 years ago, but also see the cross-section of the city wall (including the content of soil sites from Sui and Tang, late Tang to Five Dynasties, Song, Yuan, Ming, Qing, and modern times) and the site of the Sui and Tang Dynasty water passage. Two special exhibitions, "The Development History of Chinese City Walls" and "Chang'an City in the Sui and Tang Dynasties," are also on display.

Xian Ancient City Wall Nearby Places to Go

In the area enclosed by the Ancient City Wall, there are several attractions which are very close to the wall. Since they are all in the city center, it will only cost you several minutes to get these attractions from the city wall.

Bell Tower and Drum Tower

All built in Ming Dynasty, the Bell Tower and Drum Tower are the landmark of Xian City. The two towers are only several minutes’ walk from each other, and they are located in the two sides of the Bell & Drum Tower Square. Xian Bell Tower and Drum Tower are the largest and best-preserved bell tower and drum tower in China. To ascend the tower, you need to pay 35yuan for each tower, while the combination ticket only costs you 50yuan.

Muslim Quarter

Next to the Bell Tower is the Muslim Quarter, where concentrates the essence of Xian food and snacks. Muslim style architectures stand amidst in the thousand year old Muslim Quarter. Popular not only in the tourists, but also the local people, Muslim Quarter is the best place to taste Shaanxi flavor.

Great Mosque

Very close to the Muslim Quarter and Drum Tower, the Great Mosque is a perfect combination of Chinese classic architecture and Muslim architecture. Built in the late fourteenth century, the mosque had been marked with a classic architecture style of Ming Dynasty. Except for the gorgeous buildings, the colored painting decoration in the mosque will also bring a visual feast for your eyes.

Drum Tower Drum Tower - Largest & Best-preserved One in China
Muslim Quarter Muslim Quarter - Paradise for ShaanxiFood

Useful Xian Ancient City WallTips

1. Tourist Facility

Tourist Center is at the South Gate, which provides services like storage, resting area, consultant, clinic, and others. Besides, there are 12 public toilets on the wall, and ask the staff for locations if you need.

2. How to Get to the Ancient City Wall

There are 8 different gates at Xian Ancient City Wall, namely the East Gate (Changle Gate, 长乐门), the South Gate (Yongning Gate, 永宁门), the West Gate (Anding Gate, 安定门), the North Gate (Anyuan Gate, 安远门), Heping Gate (和平门), Wenchang Gate (文昌门), Hanguang Gate (含光门), and Shangde Gate (尚德门). You can arrive at the City Wall based on your closest distance. Among all 8 gates, South Gate (Yongning Gate, 永宁门) is the most popular gate to get up to the Ancient City Wall.

A: Xian Railway Station is located very close to the wall, and you can ascend to the wall through Shangde Gate from Xian Railway Station.

B: In the city center, you can take bus 321, 323, 402, 405, K600, etc. and get off at Nanmen Stop (南门站: South Gate Stop), and ascend to the all through the South Gate.

C: Metro line 2 has connected the Ancient City Wall with other places in Xian, and you can take this subway to get off at South Gate (Yongning Gate, 永宁门) or Anyuanmen Stop (安远门) to get to the wall.

Ancient City Wall - Location Map Click to Enlarge the Location Map of Ancient City Wall

3. Weather Notice

The weather in Xian is rather dry compared to the southern cities in China, so it’s better to drink more water and use some moisturizers. Strong UV is also a problem in summer, thus, use sun block, hat and sun glasses to protect your skin from the sun burns.

4. Best Visit Time

Mar – Jun / Sep – Nov are the best visiting time. Not too cold or too hot in spring and autumn, thus the two seasons are the best travel time. If you visit in summer, it’s advised to visit in the morning or the late afternoon.

How to Plan a Xian Tour

How to Get to Xi’an: You can fly to Xi’an by international flights from Hong Kong, Macau, Seoul, Bangkok, Kuala Lumpur, Nagoya, etc., or take domestic flights / high speed bullet trains to Xi'an from major domestic cities, such as Beijing, Shanghai, Chengdu, Guangzhou, Hangzhou, etc.

Best Time to Visit Xi’an: The best time to visit Xi’an is March to May (in spring) & (September to November (in autumn) for the weather at this time is fine with beautiful scenery, which can offer more comfortable experience for outdoor sightseeing and activities.

Top Attractions to Visit in Xi’an: Terracotta Warriors, Giant Wild Goose Pagoda, Shaanxi History Museum, Grand Tang Dynasty Ever Bright City, Ancient City Wall, Mount Huashan, Muslim Quarter, Bell Tower, etc.

As the ancient capital city of China for 13 dynasties, ruled by 73 emperors, Xian has left massive cultural heritages and relics for you to explore. Within about two days, you can finish visiting the main sites, which include the incredible man-made wonder, the Terracotta Warriors, the Giant Wild Goose Pagoda, and the Muslim Quarter where you can get to try the local cuisines. Besides, biking around the Ancient City Wall and tracing back the history at Shaanxi History Museum and watching the Tang Dynasty Show, all of these activities are definitely unmissable for your stay in Xian. Now, it is available to have 144 hours Visa-Free Transit in Xian, and you can go for a history and culture tour or photography tour to explore all the stunning attractions in the city even without applying for a visa.

If you have more time, you can head to Luoyang, Hukou Waterfall, and the famous Mt. Huashan, which is about 120km away from the city area. Besides, you can start your Silk Road trip from the terminal Xian and travel along the route Marco Polo has visited, or you can regard Xian as your midway in China and start your trip from Beijing, Shanghai and even Lhasa to the west of Xian. China Discovery has designed many classic China tour packages including Xian for you. Let us customize one for you.Contact Us Now

Top-Recommended Xian Tour

☛ 2 Days Xian City Break

☛ 4 Days Xian Highlights Tour with Mount Huashan Hiking

☛ 5 Days Beijing Xian Highlights Tour by High Speed Train

Travel Xian with China Discovery

Want to travel in and around Xian and don't know how to arrange your day by day itinerary? Travel Xian with us, and all of your problems will be solved. In every city, our professional local guide and driver will escort you from your hotel, train station, airport to all attractions with comfortable private car with speed and convenience and let you catch the highlights of every site and city, so you can get really relaxed on the way and focus on what you are interested. The tour can be tailor made according to your plan, time and interests and demands. If you are interested, please feel free to contact us and tell us your needs, and we will customize a memorable tour for you!

We have helped many global travelers enjoy their memorable trips to Xian for the past few years. Among them, a special team of over 50 VIPKID teachers from North America traveled with us to see their dear studends in China with amazing experience in Xian and shared us their special travel story! Travel with China Discovery to create your wonderful Xian trip memories!

Recommended Xian Tours

Top 3 Xian tours chosen by most customers to explore Xian in the best way. Check the detailed itinerary, or tailor your own trip now with us.

Tourist Visited World Famous Terracotta Warriors in Ancient Capital Xian

8 Days China Golden-triangle Destinations Tour

Shanghai / Xian / Beijing

Our customers visited Terracotta Warriors in Xian

3 Days Classic Xian Tour (Best Highlights Plus Enjoyable Pace)


Our guest Lewis cycling on the Ancient City Wall of Xian in 2017

2 Days Xian City Break (Pick Up from Hotel, Train Station or Airport)


Start planning your tailor-made holiday to China by contacting one of our specialists. Once inquired, you’ll get a response within 0.5~23.5 hours.

Customize a Trip

Have a question? Get answers from our travel experts or guests

  • Your Question:
  • Your Name:
  • Your Email:
  • Submit