Shanxi is a province in North China. Its capital and largest city is Taiyuan, and its next most populated prefecture-level cities are Changzhi and Datong.
The province's one-character abbreviation is 晋 (Jìn), after the state of Jin that existed there during the Spring and Autumn period (c. 770 – c. 481 BC). In later periods, Shanxi also became the political core of the Northern Wei, a Xianbei-founded dynasty whose early capital was located in present-day northern Datong. During the Ming and Qing dynasties, Shanxi merchants dominated China's commerce and finance. Their commercial networks extended to Russia, Japan, Korea, Central Asia, Southeast Asia, and South Asia. After the collapse of the Qing dynasty, Shanxi was governed for nearly four decades by Yan Xishan and functioned with a high degree of de facto autonomy within the Republic of China, serving as a major Kuomintang political and industrial stronghold in the north and being described as "the model province", before being incorporated into the state system of the People's Republic of China, where its role shifted toward that of a major energy-producing province.
The name Shanxi means 'west of the mountains', a reference to its location west of the Taihang Mountains. Shanxi borders Hebei to the east, Henan to the south, Shaanxi to the west and Inner Mongolia to the north. Shanxi's terrain is characterised by a plateau bounded partly by mountain ranges. Shanxi's culture is largely dominated by the ethnic Han majority, who make up over 99% of its population. Jin Chinese is the only major Sinitic variety in northern China that is not classified within the Mandarin group.
Shanxi possesses roughly one third of China's total coal reserves, a factor that has long shaped the province's industrial structure and energy role within the national economy. Despite this resource endowment, Shanxi's GDP per capita has remained below the national average, reflecting structural challenges associated with resource dependence, environmental constraints, and uneven economic diversification. The province hosts the Taiyuan Satellite Launch Center.
The province is also known for having by far the largest number of historic buildings among all Chinese provinces, with over 28,000 ancient structures in total and over 70% of China's surviving buildings built during or predating the Song dynasty. Shanxi has three UNESCO World Heritage Sites: Pingyao Ancient City, Yungang Grottoes, and Mount Wutai.
In the Spring and Autumn period (c. 770 – c. 481 BC), the state of Jin was located in what is now Shanxi. It underwent a three-way split into the states of Han, Zhao, and Wei in 403 BC, a traditional date sometimes taken as the start of the Warring States period (c. 473 – 221 BC). By 221 BC, all of these states had fallen to the state of Qin, which established the Qin dynasty (221–206 BC).
The Han dynasty (206 BC – AD 220) ruled Shanxi as Bingzhou.
During the invasion of northern nomads in the Sixteen Kingdoms period (304–439), several regimes including the Later Zhao, Former Yan, Former Qin, and Later Yan continuously controlled Shanxi. They were followed by Northern Wei (386–534), a Xianbei kingdom, which had one of its earlier capitals at present-day Datong in northern Shanxi, and which went on to rule nearly all of northern China.
The Tang dynasty (618–907) originated in Taiyuan. During the Tang dynasty and after, present day Shanxi was called Hédōng (河東), or "east of the (Yellow) river". Empress Wu Zetian, one of China's only female rulers, was born in Shanxi in 624.
During the first part of the Five Dynasties and Ten Kingdoms period (907–960), Shanxi supplied rulers of three of the Five Dynasties. Among the Ten Kingdoms, it was the only one located in northern China. Shanxi was initially home to the jiedushi (commander) of Hedong, Li Cunxu, who overthrew the first of the Five Dynasties, Later Liang (907–923) to establish the second, Later Tang (923–936). Another jiedushi of Hedong, Shi Jingtang, overthrew Later Tang to establish the third of the Five Dynasties, Later Jin, and yet another jiedushi of Hedong, Liu Zhiyuan, established the fourth of the Five Dynasties (Later Han) after the Khitans destroyed Later Jin, the third. Finally, when the fifth of the Five Dynasties (Later Zhou) emerged, the jiedushi of Hedong at the time, Liu Chong, rebelled and established an independent state called Northern Han, one of the Ten Kingdoms, in what is now northern and central Shanxi.
Shi Jingtang, founder of the Later Jin, the third of the Five Dynasties, ceded a piece of northern China to the Khitans in return for military assistance. This territory, called the Sixteen Prefectures of Yanyun, included a part of northern Shanxi. The ceded territory became a major problem for the Song dynasty's defense against the Khitans for the next 100 years because it lay south of the Great Wall.
The later Zhou, the last dynasty of the Five Dynasties period was founded by Guo Wei, a Han Chinese, who served as the Assistant Military Commissioner at the court of the Later Han which was ruled by Shatuo Turks. He founded his dynasty by launching a military coup against the Turkic Later Han Emperor however, his newly established dynasty was short-lived and was conquered by the Song dynasty in 960.
In the early years of the Northern Song dynasty (960–1127), the sixteen ceded prefectures continued to be an area of contention between the Song dynasty and the Liao dynasty. Later the Southern Song dynasty abandoned all of North China, including Shanxi, to the Jurchen Jin dynasty (1115–1234) in 1127 after the Jingkang Incident of the Jin-Song wars.The Mongol Yuan dynasty administered China into provinces but did not establish Shanxi as a province, since Shanxi was regarded as part of the core region of the empire. Shanxi only gained its present name and approximate borders during the Ming dynasty (1368–1644) which were of the same land area and borders as the previous Hedong Commandery of the Tang dynasty.
During the Qing dynasty (1644–1911), Shanxi extended north beyond the Great Wall to include parts of Inner Mongolia, including what is now the city of Hohhot, and overlapped with the jurisdiction of the Eight Banners and the Guihua Tümed banner in that area. For centuries, Shanxi served as a center for trade and banking. The "Shanxi merchants" were once synonymous with wealth. The well-preserved city and UNESCO World Heritage Site Pingyao shows many signs of its economic importance during the Qing dynasty. This commercial strength remained evident into the late Qing period: following the Boxer Uprising, Empress Dowager Cixi resided in Shanxi during her westward flight, during which substantial financial contributions were presented by local officials and merchants.
Early Republic of China (1912–1937)
With the collapse of the Qing dynasty, Shanxi became part of the newly established Republic of China, the administrative relationship between Shanxi and its northern frontier regions underwent significant reorganization. During the early Republican period, areas north of the Great Wall that had previously been governed through overlapping provincial and banner systems were gradually separated from Shanxi's provincial administration.
In 1928, Suiyuan was formally established as a separate province, marking an institutional shift in the governance of North China's frontier regions. Despite this administrative separation, Shanxi and Suiyuan remained closely connected in military, political, and economic terms throughout much of the Republican era.
From 1911 to 1949, during the period of the Republic of China's period of rule over Mainland China, Shanxi was mostly dominated by the warlord Yan Xishan until the Chinese Communist Party took full control in 1949; Communists had already set up secret bases in 1936, but did not completely overturn Yan and the Nationalist government until 1949. Early in Yan's rule he decided that, unless he was able to modernize and revive the economy of his small, poor, remote province, he would be unable to protect Shanxi from rival warlords. Yan devoted himself to modernizing Shanxi and developing its resources during his reign over the province. He has been viewed by Western biographers as a transitional figure who advocated using Western technology to protect Chinese traditions, while at the same time reforming older political, social and economic conditions in a way that paved the way for the radical changes that would occur after his rule.In the early 20th century, Shanxi products such as Fenjiu were exhibited internationally; Fenjiu received a medal award at the 1915 Panama–Pacific International Exposition, indicating that Shanxi maintained active commercial production and trade networks into the late Qing and early Republican periods.