Pingyao (Chinese: 平遥; pinyin: Píngyáo) is a Chinese city and county in central Shanxi province, China. It lies about 715 km from Beijing and 80 km from the provincial capital, Taiyuan. During the Qing Dynasty, Pingyao was a financial center of China. It is now renowned for its well-preserved ancient city wall, and is a UNESCO World Heritage Site.
The city walls of Pingyao were constructed in the 3rd year of the Hongwu Emperor (1370). The walls have six barbican gates. The north and south sides have one gate each. The east and west sides have two gates each. This pattern is similar to that of a turtle (the head, tail, and four legs), earning Pingyao the moniker “Turtle City.” The walls measure about 12 meters high, with a perimeter of 6,000 meters. A 4-meter wide, 4-meter deep moat can be found just outside the walls. Aside from the four structured towers at the four corners, there are also 72 watchtowers and more than 3,000 battlements. In 2004, part of the southern walls collapsed but were reconstructed. However, the rest of the city walls are still largely intact and are considered among the best-preserved ancient city walls on this scale. This makes the city walls the centerpiece of the Heritage Site.