Pre-Imperial China In the
Spring and Autumn period (), 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 (221 BC). By 221 BC, all of these states had fallen to the
state of Qin, which established the
Qin dynasty (221–206 BC).
Imperial China 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. in
Ruicheng, depicting
Chaoyuan Tu (朝元图), a formal audience of Daoist deities assembled in processio to
Yuanshi Tianzun.|leftThe
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. , Shanxi, drawn during the
Kangxi Emperor reign of the Qing dynasty.|leftFor 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) (閻錫山),
warlord of Shanxi during the Republic of China.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. In 1918 there was an outbreak of
bubonic plague in northern Shanxi that lasted for two months and killed 2,664 people. Yan's interactions with the Western medical personnel he met with to discuss how to suppress the epidemic inspired him to modernize and improve Shanxi's medical infrastructure which he began by funding the Research Society for the Advancement of Chinese Medicine, based in Taiyuan, in 1921. Highly unusual in China at the time, the school had a four-year curriculum and included courses in both Chinese and Western Medicine. The main skills that Yan hoped physicians trained at the school would learn were: a standardized system of diagnosis; sanitary science, including
bacteriology; surgical skills, including
obstetrics; and, the use of diagnostic instruments. Yan hoped that his support of the school would eventually lead to increased revenues in the domestic and international trade of Chinese drugs, improved
public health, and improved
public education. Yan's promotion of a modern curriculum and infrastructure of Chinese medicine achieved limited success, but much of the teaching and publication that this school of medicine produced was limited to the area around Taiyuan: by 1949 three of the seven government-run hospitals were in the city. In 1934 the province produced a ten-year-plan that envisaged employing a hygiene worker in every village, but the
Japanese invasion in 1937 and the subsequent
civil war made it impossible to carry these plans out. Yan's generous support for the Research Association for the Improvement of Chinese Medicine generated a body of teaching and publication in modern Chinese medicine that became one of the foundations of the national institution of modern traditional Chinese medicine that was adopted in the 1950s., a Zoroastrian temple in Jiexiu.Yan invested in Shanxi's industrial infrastructure, and by 1949 the area around Taiyuan was a major national producer of coal, iron, chemicals, and munitions. Yan was able to protect the province from his rivals for the period of his rule partially due to his building of an arsenal in Taiyuan that, for the entire period of his administration, remained the only center in China capable of producing field artillery. Yan's army was successful in eradicating banditry in Shanxi, allowing him to maintain a relatively high level of public order and security. Yan went to great lengths to eradicate social traditions which he considered antiquated. He insisted that all men in Shanxi abandon their Qing-era queues, giving police instructions to clip off the queues of anyone still wearing them. In one instance, Yan lured people into theatres in order to have his police systematically cut the hair of the audience.Yan attempted to eradicate the custom of
foot binding, threatening to sentence men who married women with bound feet, and mothers who bound their daughters' feet, to hard labor in state-run factories. He discouraged the use of the traditional
lunar calendar and encouraged the development of local
boy scout organizations. Like the Communists who later succeeded Yan, he punished habitual lawbreakers to "redemption through labour" in state-run factories. After the failed attempt by the
Chinese Red Army to establish bases in southern Shanxi in early 1936 Yan became convinced that the Communists were lesser threats to his rule than either the Nationalists or the Japanese. He then negotiated a secret anti-Japanese "
United Front" with the Communists in October 1936 and invited them to establish operations in Shanxi. Yan, under the slogan "resistance against the enemy and defense of the soil", attempted to recruit young, patriotic intellectuals to his government in order to organize a local resistance to the threat of Japanese invasion. By the end of 1936 Taiyuan had become a gathering point for anti-Japanese intellectuals from all over China.
Second Sino-Japanese War and the Chinese Civil War (1937–1949) The
Marco Polo Bridge Incident in July 1937 led the
Imperial Japanese Armed Forces to invade China, and Shanxi was one of the first areas the Japanese attacked. When it became clear to Yan that his forces might not be successful in repelling the
Imperial Japanese Army, he invited Communist military forces to re-enter Shanxi.
Zhu De became the commander of the
Eighth Route Army active in Shanxi and was named the vice-commander of the Second War Zone, under Yan himself. Yan initially responded warmly to the re-entry of the arrival of Communist forces, and they were greeted with enthusiasm by Yan's officials and officers. Communist forces arrived in Shanxi just in time to help defeat a decisively more powerful Japanese force attempting to move through the strategic
Pingxing Pass. The
Battle of Pingxingguan was the largest battle won by the Communists against the Japanese. File:华北交通写真-山西古迹志114自大中楼看大云寺-山西临汾.png|Datong photographed by Japanese archaeologists and historians Hibino Takeo and Mizuno Seiichi. File:华北交通写真-山西古迹志115大云寺砖塔-山西临汾.png|Linfen, photographed during the same archaeological survey. File:Dazhong Pavilion, Linfen, Shanxi.jpg|Dazhong Pavilion, Linfen File:华北交通写真-铁佛-大云禅寺-城内-山西临汾.png|Iron head of a Buddhist statue from Dayun Chan Temple (大云禅寺), Linfen. After the Japanese responded to this defeat by outflanking the defenders and moving towards
Taiyuan, the CCP avoided decisive battles and mostly attempted to harass Japanese forces and sabotage Japanese lines of supply and communication. The Japanese suffered, but mostly ignored the Eighth Route Army and continued to advance towards Yan's capital. The lack of attention directed at their forces gave the CCP time to recruit and propagandize among the local peasant populations (who generally welcomed Communist forces enthusiastically) and to organize a network of militia units, local guerrilla bands and popular mass organizations. During the
Battle of Xinkou, the Chinese defenders resisted the efforts of Japan's elite
Itakagi Division for over a month, despite Japanese advantages in artillery and air support. By the end of October 1937, Japan's losses were four times greater than those suffered at Pingxingguan, and the Itakagi Division was close to defeat. Contemporary Communist accounts called the battle "the most fierce in North China", while Japanese accounts called the battle a "stalemate". In an effort to save their forces at Xinkou, Japanese forces began an effort to occupy Shanxi from a second direction, in the east. After a week of fighting, Japanese forces captured the strategic
Niangzi Pass, opening the way to capturing Taiyuan. Communist guerrilla tactics were ineffective in slowing down the Japanese advance. The defenders at Xinkou, realizing that they were in danger of being outflanked, withdrew southward, past Taiyuan, leaving a small force of 6,000 men to hold off the entire Japanese army. A representative of the Japanese Army, speaking of
the final defense of Taiyuan, said that "nowhere in China have the Chinese fought so obstinately". The Japanese suffered 30,000 dead and an equal number wounded in their effort to take northern Shanxi. A Japanese study found that the battles of Pingxingguan, Xinkou, and Taiyuan were responsible for over half of all the casualties suffered by the Japanese army in North China. Yan himself was forced to withdraw after having 90% of his army destroyed, including a large force of reinforcements sent into Shanxi by the central government. Throughout 1937, numerous high-ranking Communist leaders, including
Mao Zedong, lavished praise on Yan for waging an uncompromising campaign of resistance against the Japanese. Possibly because of the severity of his losses in northern Shanxi, Yan abandoned a plan of defense based on positional warfare, and began to reform his army as a force capable of waging guerrilla warfare. After 1938 most of Yan's followers came to refer to his regime as a "guerrilla administration". After the
surrender of Japan and the end of the
Second World War,
Yan Xishan was notable for his ability to recruit thousands of Japanese soldiers stationed in northwest Shanxi in 1945, including their commanding officers, into his army. By recruiting the Japanese into his service in the manner that he did, he retained both the extensive industrial complex around Taiyuan and virtually all of the managerial and technical personnel employed by the Japanese to run it. Yan was so successful in convincing surrendered Japanese to work for him that, as word spread to other areas of north China, Japanese soldiers from those areas began to converge on Taiyuan to serve his government and army. At its greatest strength the Japanese "special forces" under Yan totaled 15,000 troops, plus an officer corps that was distributed throughout Yan's army. These numbers were reduced to 10,000 after serious American efforts to repatriate the Japanese were partially successful. Yan's Japanese army was instrumental in helping him to retain control of most of northern Shanxi during much of the subsequent
Chinese Civil War, but by 1949 casualties had reduced the number of Japanese soldiers under Yan's command to 3,000. The leader of the Japanese under Yan's command, Hosaku Imamura, committed suicide on the day that Taiyuan fell to Communist forces. Yan Xishan himself (along with most of the provincial treasury) was airlifted out of Taiyuan in March 1949. Shortly afterwards
Republic of China Air Force planes stopped dropping food and supplies for the defenders due to fears of being shot down by the advancing Communists. The
People's Liberation Army, depending largely on their reinforcements of artillery, launched a major assault on April 20, 1949, and succeeded in taking all positions surrounding Taiyuan by April 22. A subsequent appeal to the defenders to surrender was refused. On the morning of April 22, 1949, the PLA bombarded Taiyuan with 1,300 pieces of artillery and breached the city's walls, initiating bloody street-to-street fighting for control of the city. At 10:00 am, April 22, the
Taiyuan Campaign ended with the Communists in complete control of Shanxi. Total Nationalist casualties amounted to all 145,000 defenders, many of whom were taken as POWs. The Communists lost 45,000 men and an unknown number of civilian laborers they had drafted, all of whom were either killed or injured. The fall of Taiyuan was one of the few examples in the Chinese Civil War in which Nationalist forces echoed the defeated
Ming loyalists who had, in the 17th century, brought entire cities to ruins resisting the invading Manchus. Many Nationalist officers were reported to have committed suicide when the city fell. The dead included Yan's nephew-in-law, who was serving as governor, and his cousin, Yan Huiqing (閻慧卿), who ran his household.
Liang Huazhi, the head of Yan's "Patriotic Sacrifice League", had fought for years against the Communists in Shanxi until he was finally trapped in the massively fortified city of Taiyuan. For six months Liang put up a fierce resistance, leading both Yan's remaining
Republic of China Army forces and his thousands of Japanese mercenaries. When Communist troops finally broke into the city and began to occupy large sections of it, Liang barricaded himself inside a large, fortified prison complex filled with Communist prisoners. In a final act of desperation, Liang set fire to the prison and committed suicide as the entire compound burned to the ground.
People's Republic of China (1949–present) Soon after the
Chinese Communist Revolution,
Mao Zedong assigned
Kang Sheng to carry out
land reform in Shanxi. Kang encouraged the populace to have numerous farmers from a variety of socioeconomic backgrounds denounced as "landlords", beaten, arrested, and executed. In some areas of the province as many as one in five residents were denounced as landlords, and his program was copied throughout the rest of the new
People's Republic of China. Shanxi became the site of Mao's "model brigade" of
Dazhai: a utopian communist scheme in
Xiyang County that was supposed to be the model for all other peasants in China to emulate. If the people of Dazhai were especially suited for such an experiment, it is possible that decades of Yan's socialist indoctrination may have prepared the people of Shanxi for Communist rule. After the death of Mao, the experiment was discontinued, and most peasants reverted to private farming under the
reform and opening up. Beyond land reform and the
Dazhai campaign, the early decades of the People's Republic of China saw Shanxi transformed into one of the country's primary bases for coal production and heavy industry, a role reinforced during successive phases of socialist industrialization and national defense planning. During the
Cultural Revolution (1966–1976), political upheaval and institutional disruption significantly affected the province's administrative, educational, and industrial systems, Shanxi was affected by the "Destroy the Four Olds" campaign, though the full extent of damage to the province's cultural heritage remains unquantified. During the preceding Great Leap Forward, timber from some historic buildings had been stripped for use as fuel in backyard furnaces, though the scale is difficult to assess precisely. Notable incidents of destruction during the decade include: the demolition of the Shun Emperor Mausoleum in Yuncheng; the smashing of a pair of stone lions approximately six meters tall before the Yuncheng Guan Yu Temple, with the five cubs carved on the body of the female lion shattered; the destruction of Buddhist and Luohan statues within the Yuqing Chan Courtyard at Sima Guang's tomb in Xiaxian County; and the near-total destruction of over a hundred temples and historic sites within Taiyuan, from which the director of the provincial museum was able to salvage only a small number of clay sculpture fragments. Mount Wutai's Buddhist community was also devastated: before the Cultural Revolution, the mountain housed approximately 304 monks and nuns, of whom 239 were forcibly relocated to their home regions and 36 were sent back under supervised labor; of 124 temples that had existed before the Cultural Revolution, only 63 remained by 1977, with fewer than ten in relatively intact condition. In 1969, two temples on Mount Wutai, the Wulang Temple and Jingang Cave, both originally founded in the
Tang dynasty and rebuilt during the Ming and Qing, were razed with explosives to make way for a villa for
Lin Biao, with their architecture, statuary, and cultural artifacts destroyed entirely and their monks expelled. Following the introduction of economic reforms in the late 1970s, Shanxi experienced slower diversification compared with coastal regions, as its economy remained heavily dependent on coal and state-owned enterprises. In the 1990s and 2000s, the rapid expansion of coal extraction brought both economic growth and serious challenges, including industrial accidents, environmental degradation, and governance issues. In the mid-2010s, Shanxi became the focus of a large-scale anti-corruption campaign that reshaped the province's political leadership. Since then, provincial authorities have pursued economic restructuring and diversification, though structural constraints associated with resource dependence continue to pose challenges. == Geography ==