
Xianbei dynastic capital that fused steppe and Chinese city-building and launched state-sponsored Buddhist urbanism
Cradle of Northern Wei state Buddhism and the Yungang Grottoes, later a Liao and Jin Western Capital
In 398 the Xianbei ruler Tuoba Gui, Emperor Daowu, made Pingcheng, beneath modern Datong, the capital of the Northern Wei, transforming a frontier garrison into the political and cultural centre of northern China for nearly a century. The Tuoba court became a major patron of Buddhism and from about 460 sponsored the monumental Yungang Grottoes nearby, where more than fifty thousand carved images presented the emperors as earthly embodiments of the Buddha. After the Wei capital moved to Luoyang in 494, the city was renamed Datong in 1048 and later served as the Western Capital, or Xijing, of the Liao and Jin dynasties.
Pingcheng was a planned nomadic-dynasty capital that fused steppe and Chinese imperial city-building, and the cradle of Northern Wei state Buddhism, in which the throne harnessed religion to legitimise its rule and directly produced the Yungang Grottoes, now a UNESCO World Heritage Site. Its later role as a Liao and Jin secondary capital extended its urban importance across several further centuries.
Served as the Xianbei Northern Wei capital from 398 until 494 CE, when Emperor Xiaowen moved the capital to Luoyang; the planned grid city declined thereafter and its remains survive only as the buried Pingcheng ruins beneath modern Datong.
The reported ~1 million population is widely regarded as inflated, reflecting forced-resettlement claims in dynastic histories rather than a verifiable urban total.