The Liao dynasty (; traditional Chinese: 遼朝; simplified Chinese: 辽朝; pinyin: Liáo cháo), also known as the Khitan State (Mos diau-d kitai huldʒi gur), officially the Great Liao (Chinese: 大遼; pinyin: Dà Liáo), was a Khitan-led imperial dynasty of China and empire ruled by the Yelü clan that existed between 916 and 1125. Founded around the time of the collapse of the Tang dynasty, at its greatest extent it ruled over Manchuria, the Mongolian Plateau, the northern part of the Korean Peninsula, southern portions of Siberia, and the northern tip of the North China Plain.

The dynasty rose from the consolidation of power among the Khitans in the 8th century and their expansionist campaigns in the latter half of the 9th century. Eventually the Yila chieftain, Abaoji, became the leader of the Khitans and proclaimed a Chinese-style dynastic state in 916. The Liao dynasty launched multiple military campaigns against neighboring states and peoples including the Kumo Xi, Shiwei, Tatars, Zubu, Khongirad, Balhae, Goryeo, Later Tang, and the Song dynasty. Its conquests include the Sixteen Prefectures (including present-day Beijing and part of Hebei) by fueling a proxy war that led to the collapse of the Later Tang (923–936). In 1004, the Liao launched an expedition against the Northern Song dynasty. After heavy fighting and large casualties between the two empires, both sides worked out the Chanyuan Treaty. Through the treaty, the Liao forced the Northern Song to recognize them as peers and heralded an era of peace and stability between the two powers that lasted approximately 120 years. It was the first state to control all of Manchuria.

The Liao dynasty was destroyed by the Jurchen-led Jin dynasty in 1125 with the capture of the Emperor Tianzuo of Liao. However, the remaining Liao loyalists, led by Yelü Dashi (who would become Emperor Dezong), established the Western Liao dynasty (or Qara Khitai), which ruled over parts of Central Asia for almost a century before being conquered by the Mongol Empire. Although cultural achievements associated with the Liao dynasty are considerable, and a number of various statuary and other artifacts exist in museums and other collections, major questions remain over the exact nature and extent of the influence of the Liao culture upon subsequent developments, such as the musical and theatrical arts.

Liao dynasty
Zeus1234 · CC BY-SA 3.0 via Wikimedia Commons

Names

The Great Khitan State (Chinese: 大契丹; pinyin: Dà Qìdān) was founded in 907 by Abaoji (Emperor Taizu of Liao). In 938 or 947 Abaoji's successor, Emperor Taizong of Liao, officially renamed the dynasty as Great Liao (Chinese: 大遼; pinyin: Dà Liáo). This was probably due to the inclusion of non-Khitan peoples in the state. The name was changed back to Great Khitan in 983 during the reign of the Emperor Shengzong of Liao due to a re-assertion of Khitan identity. In 1066 Emperor Daozong of Liao reintroduced the dynastic name Great Liao, and the title remained in official use until the dynasty's collapse. Both Great Khitan and Great Liao enjoyed about 100 years of usage.

In the Khitan script, the state's name included the words Khitan and Liao, but their order was reversed depending on which took precedence. When the state was called Great Khitan in Chinese, the corresponding Khitan language name was Great Khitan Liao (Great Qidun Hura), whereas when it was known as Great Liao in Chinese, the corresponding Khitan name was Great Liao Khitan (Great Hura Qidun). The full name in the Khitan language was thus either Great Central Khitan Liao State (Great Tiaudu Qidi Xura Guren) or Great Central Liao Khitan State (Great Tiaudu Xura Qidi Guren). It is uncertain what the word Liao (Hura) actually meant in the Khitan language. There are several theories for its possible meaning including black, broad, country, the Liao River, or simply a prestigious term whose original meaning had been lost.

In 1124 the successor state established by Yelü Dashi in the Western Regions also officially adopted the dynastic name Great Liao. In historiography, however, this regime is more commonly called the Western Liao or Qara Khitai. The Qara Khitans used neither Western Liao or Qara Khitai to refer to themselves. They regarded themselves as the legitimate continuation of the Liao dynasty and continued to use the Khitan name, Great Liao Khitan (Great Liao in Chinese), as their self-designation. Western Liao is a Chinese designation and Qara Khitai is a Turko-Mongol term. Qara Khitai cannot be found in any Muslim sources before the Mongol invasions, after which Turko-Mongol speakers mistook the word for Liao (Hura) as qara (black). Muslim historians initially referred to the state as Khitai, which may have come from the Uyghur form, in which the final -n or -ń became -y. They adopted the name Qara Khitai after the Mongol invasions.

Liao dynasty
Qiushufang · CC BY-SA 4.0 via Wikimedia Commons

Due to the dominance of the Khitans during the Liao dynasty in Northeast China and Mongolia, and later the Qara Khitai in Central Asia where they were seen as Chinese, the term Khitai came to mean China to people near them in Central Asia, Russia, and northwestern China. The name was then introduced to medieval Europe via Islamic and Russian sources, and became Cathay. In the modern era, words related to Khitai are still used as a name for China by Turkic peoples, such as the Uyghurs in China's Xinjiang region and the Kazakhs of Kazakhstan and areas adjoining it, and by some Slavic peoples, such as the Russians and Bulgarians.

The Khitan imperial family used two different names for their surname, Yila and Yelü. Yila (Ila) was probably an older term and meant stallion, related to messenger, standard-bearer, warrior. Yelü (Yarud) was adopted at a later point, possibly in the 930s, and is related to the Khitan adjective for flourishing, prosperous.

History

Pre-dynastic history

Origins

The earliest reference to a Khitan state is found in the Book of Wei, a history of the Northern Wei dynasty (386–534) that was completed in 554. Several books written after 554 mention the Khitans being active during the late third and early fourth centuries. The Book of Jin (648) mentions the Khitans in the section covering the reign of Murong Sheng (398–401). The Samguk Sagi (1145) mentions a Khitan raid taking place in 378.

Liao dynasty
Anagoria · CC BY 3.0 via Wikimedia Commons

It is generally believed that the Khitans emerged from the Yuwen branch of the Xianbei people. Following a defeat at the hands of another branch of the Xianbei in 345, the Yuwen split into three tribes, one of which was called the Kumo Xi. In 388 the Kumo Xi itself split, with one group remaining under the name Kumo Xi and the other group becoming the Khitans. This view is partially backed up by the Book of Wei, which describes the Khitans originating from the Xianbei. Beginning in the Song dynasty, some Chinese scholars suggested that the Khitans might have descended from the Xiongnu people. While modern historians have rejected the idea that the Khitan were solely Xiongnu in origin, there is some support for the claim that they are of mixed Xianbei and Xiongnu origin. Beginning with Rashid-al-Din Hamadani in the fourteenth century, several scholars have theorized that the Khitans were Mongolic in origin, and in the late 19th century, Western scholars made the claim that the Khitans were Tungusic in origin (modern linguistic analysis has discredited this claim).

After splitting from the Yuwen, the Khitans and Kumo Xi fled to the region of Songmo (modern southern Hexigten Banner and western Ongniud Banner). According to the New Book of Tang, the territory of the Khitans rested on what is now the area south of Xar Moron River and east of the Laoha. The Khitans then faced a joint invasion by the Rouran Khaganate and Goguryeo, which caused them to migrate south to the east of Bailang River (modern Daling River).

By the time the Book of Wei was written in 554, the Khitans had formed a state in what is now China's Jilin and Liaoning Provinces. The Khitans suffered a series of military defeats to other nomadic groups in the region, as well as to the Northern Qi (550–577) and Sui (589–618) dynasties. Khitan tribes at various times fell under the influence of the Uighurs and Sui and Tang dynasties. In the Book of Sui (Volume 84), the Khitan are described as "bellicose in plundering and raiding borders" and "the most uncourteous and arrogant among all barbarians". According to the History of Liao, the Khitans were nomads who migrated according to the season. They depended on horses for their livelihood and let them graze openly while their men were demobilized. Their men drank kumiss and practiced archery to hunt for their daily needs. Due to their way of life, they often had the upper hand in military affairs.

Liao dynasty
Qiushufang · CC BY-SA 4.0 via Wikimedia Commons

Eight tribes

There were eight Khitan tribes that shared power by rotating leadership triennially. The Khitan federation presented tribute to the Northern Yan (409–436), which in return invested the Khitan khan as Prince Guishan. The Khitans also regularly presented tribute to the Northern Wei (386–534) court in the form of horses and animal skins. Trade occurred on the border in Helong (modern Chaoyang) and Miyun. In 553, the Khitans suffered a defeat to the armies of Northern Qi (550–577) and lost a large portion of their population as well as cattle. For a time they resided in Goguryeo. In 584, they submitted to the Sui dynasty (581–618). In 605, they were attacked by the Türks and lost 40,000 men and women. The eight tribes of old dispersed. Only two Khitan leaders are known from this period: Hechen and Wuyu. The title of Khitan chieftains was Mofuhe or Mohefu.

Dahe Confederation

In the early 7th century, the Dahe clan unified the Khitan tribes into a federation. The Hedahe were the leading tribe. The component tribes were largely autonomous and the Dahe were only responsible for foreign affairs. After the Dahe united the Khitans, leadership was selected from their lineage by "Shixuan", electing a leader based on their talent and ability. The other clans had the right to vote but not to be elected.

The Dahe Confederation submitted to the Tang in both 628 and 648, under the leadership of Mohui and Kuge respectively. Kuge was appointed the Governor-general of Songmo. The chieftains of the tribes were appointed as prefects. The Tang emperor bestowed the imperial surname Li on the Dahe and appointed their leader to a governorship that was "an office specifically created for the indirect management of the Khitan tribes". Some Khitan tribes were not included in the Dahe Confederation. The Neiji tribe led by Sun Aocao submitted to the Tang in 619. Aocao's great-grandson Sun Wanrong was appointed prefect of Guicheng.

Liao dynasty
Unknown authorUnknown author · Public domain via Wikimedia Commons

Towards the turn of the century, Tang control of the north began to slip. The Governor-general of Yingzhou, Zhao Wenhui, regarded the Khitan chieftains as his servants. The Khitan chieftain Sun Wanrong and his brother-in-law, the governor of Songmo, Li Jinzhong, felt insulted and bullied by Zhao. In 696, a famine occurred in Khitan territory and caused them to rebel. Li Jinzhong captured Yingzhou and declared himself "Wushang Khagan" (paramount khagan). The Tang were defeated at Xiashi Gorge (Lulong County) and continued to suffer defeats until Li Jinzhong died of disease. Qapaghan Qaghan of the Second Turkic Khaganate attacked the Khitans from the north while the Tang invaded from the south. The Khitans suffered a heavy defeat before Sun Wanrong rescued the situation and counterattacked, seizing Yingzhou and Youzhou. A 170,000 strong Tang army was defeated by the Khitans. Another 200,000 soldiers were sent against the Khitans but also failed to stop their advance. However the Türks sacking their capital, Xincheng, and the Kumo Xi defected from their ranks. After Sun Wanrong was killed by his servant, it took another fifteen years from 700 to 714 before the Tang were able to reassert control over the Khitans.

In 720, the military chief (Yaguan) Ketuyu attacked the reigning Khitan ruler, Suogu, who fled to Yingzhou seeking Chinese protection. General Xue Tai was ordered to punish Ketuyu but he failed and was captured along with Suogu and the Kumo Xi king Li Dapu. Ketuyu enthroned Suogu's cousin Yuyu as the new Khitan ruler and sent tribute to the Tang court, but the official in charge treated him with rudeness. Ketuyu murdered the Khitan ruler and defected to the Türks. Ketuyu suffered a defeat against the Tang in 732 and fled while his Kumo Xi allies surrendered to the Tang. In 734, Ketuyu defeated a Tang army with the support of his Türkic allies and then lost another battle against Tang forces under the command of Zhang Shougui. The Tang convinced a Khitan military official, Li Guozhe, to murder Ketuyu and the Khitan ruler Qulie, who had been enthroned by Ketuyu.

Yaonian Confederation

The rebellion of Ketuyu ended Dahe supremacy in 730. Li Guozhe, chief of the Yishihuo tribe, and Nieli, also from the Yishihuo tribe, founded a new confederation. Nieli enthroned Zuwu Khagan from the Yaonian clan as the supreme ruler of the Khitans, while Nieli became the military chief. Although there was a khagan, the military chief's power actually exceeded that of the khagan throughout the duration of the confederation. The ten tribes of the Yaonian Confederation consisted of the Danlijie, Yishihuo, Shihuo, Nawei, Pinmo, Nahuiji, Jijie, Xiwa, Yaonian, and Yila. Other tribes are also mentioned: the Yishi, Pin, Chute, Wukui, Niela, Tulübu, and Tuju.

Liao dynasty
anonymous · Public domain via Wikimedia Commons

The Tang governor An Lushan launched two invasions into Khitan territory in 751 and 755. After being soundly defeated by the Khitans during the first invasion, An Lushan was successful in the second. An then led a rebellion against the Tang that included Khitan troops in his army. An had a Khitan eunuch named Li Zhuer who worked for him as a teenager but An Lushan castrated him. Li Zhuer was highly trusted by An Lushan, and he and two other men served as his personal attendants. Li Zhuer was approached by conspirators who wanted to kill An when he became ill and started abusing his subordinates. An was hacked to death by Li Zhuer and another conspirator, Yan Zhuang, who was beaten by An before. The An Lushan Rebellion marked the beginning of the end of the Tang dynasty.

Rise to power

Following the An Lushan Rebellion, the Khitans became vassals of the Uighurs while simultaneously paying tribute to the Tang, a situation that lasted from 755 until the fall of the Uighurs in 840. There were 29 recorded tribute activities to the Tang from 756 to 841. From 840 until the rise of Abaoji, the Khitans remained a tributary of the Tang dynasty. Towards the end of that period, the Khitans began a series of major conquests. Under the reign of Xianzhi Khagan (860?–882?), the Khitans subjugated the Kumo Xi and Shiwei. Two campaigns were launched against the Kumo Xi. Xianzhi captured 700 Xi households who were later settled as the Dieladieda tribe under Abaoji's reign. Saladi, Abaoji's father, captured 7,000 Xi households and moved them to Qinghe in the region of Raole (west of modern Ningcheng County). During the Xiantong reign period (860–874), Xianzhi sent envoys to the Tang court twice. According to the Zizhi Tongjian, during the Xiantong period, the Khitans' territory expanded drastically and by the time of Abaoji, all the Kumo Xi, Shiwei, Tatars, western Türks, and Jurchens had been defeated.

Abaoji (907–926)

Abaoji, posthumously Emperor Taizu of Liao, was born in 872 to the Yila chieftain, Saladi. According to the Later Tang envoy Yao Kun, who met the Khitan ruler in person, Abaoji was extremely tall (9 chi; over two meters).

By the time of Abaoji, the Yila had become the largest and strongest of the Khitan tribes, even though the Yaonian khans still held overall power. The Yila tribe descended from the Yishihuo, who settled closer to Han civilization than other Khitans. In the 730s, the Yila became a tribe independent of the Yaonian. Under the influence of Han culture, Yundeshi (820s–860s?), Abaoji's grandfather, became the first Khitan to practice and teach settled agriculture. Shulan, Abaoji's uncle, was the first Khitan to practice masonry and build walled cities. To their south, the Han people of Youzhou Jiedushi fled the rule of Liu Rengong, most of them ending up in Yila territory. Han farmers were resettled by Abaoji and Han craftsman taught the Khitans how to spin and weave. The adoption of agrarian culture, Han refugees, and more advanced labor organization made the Yila tribe far richer than other Khitans. Abaoji placed Han intellectuals such as Kang Moji, Han Yanhui, and Han Zhigu into his administration. Kang Moji was responsible for legal matters between Khitans and Han. Later he supervised the building of the capital city. Han Yanhui was made an official in charge of military affairs and oversaw the subdued Han population, settling them and making sure they did not flee. Han Zhigu participated in strategy and decision making. He later took charge of the department handling Han affairs and managed protocols of foreign affairs. He also combined Han institutions and Khitan customs to make them easier to understand for Khitans.

Abaoji held the title of Dama Yueshali, the commander of the khagan's personal guard, in the late 9th century. In 901, Abaoji was elected Yilijin (chieftain) of the Yila by the triennial council. None of the Khitans except the Yaonian used surnames at the time, but later in the 930s, Abaoji's clan adopted Yelü as their surname. At the same time their consort clan also began using the surname Xiao.

After his accession as leader of the Yila, Abaoji raided the Tang dynasty, attacked the Jurchens, and established superiority over the Shiwei and Kumo Xi. In 903, Abaoji was named Yüyue, the supreme commander of all Khitans, second only to the Yaonian Khagan. Two years later, he led 70,000 cavalry to Datong to form a blood oath with the Shatuo warlord Li Keyong. Abaoji and Li Keyong had a conversation about the Khitan way of succession. Abaoji was concerned that he would be replaced in three years and Keyong noted that there was also a practice of replacement for his post. He told Abaoji that he could just refuse to be replaced.

In 907, Abaoji demanded that he be made Khagan, and ascended as supreme leader of the Khitans with support from seven other tribes. Abaoji then slaughtered the other Khitan chieftains, alarming the Khitan elite, many of whom saw his action as a move towards Han-style emperorship. Abaoji's rule went unchallenged until 910, when he disregarded Khitan calls for another member of the family to assume the position of Khagan. In 912 and 913, members of Abaoji's family attempted armed insurrections. After the first insurrection was discovered and defeated, Abaoji pardoned the conspirators. After the second, only his brothers were pardoned, with the other conspirators suffering violent deaths. The brothers plotted rebellions in 917 and 918, both of which were easily crushed.

In 916, Abaoji assumed the title of Celestial Emperor, proclaimed a Chinese era name, and built a Confucian temple. He named his eldest son, Yelü Bei, from his primary consort, Shulü Ping, as heir apparent and demanded the entire nobility to swear fealty to him. Two years later, the Liao court was moved to the "Supreme Capital" (Shangjing), a newly built walled city with a grand park and imperial tents where the Chinese palaces would normally be located. Abaoji fostered the construction of 30 more walled cities for his captured ethnic Han subjects to inhabit. The Supreme Capital was joined by the "Eastern Capital" (Dongjing). Administration of the empire was divided between a Northern Administration overseeing steppe and tribal affairs and a Southern Establishment overseeing the settled and Han population. The two institutions were headed by chancellors, the northern one appointed by the Xiao consort clan, and the southern one appointed by the ruling Yelü clan.

In 917, Abaoji received naphtha as a gift from the state of Wuyue.

In 920, Abaoji ordered the development of a Khitan writing system known as the Khitan large script. While superficially similar to Chinese writing, it arbitrarily adds and reduces strokes to Chinese characters to compose words, making it completely unrecognizable to Han readers. In 925, the arrival of a Uyghur delegation led Abaoji to order his younger brother, Yelü Diela, to study the Old Uyghur language. Uyghur influence led to the development of a Khitan small script with more phonetic elements. The Khitan script was used for memorial inscriptions on wood and stone and record keeping in the Northern Administration. Almost no extensive documents written in Khitan script have survived, suggesting that few were ever produced. In the Southern Establishment, Chinese was the administrative language, which many Khitans learned, including Abaoji's sons. In a conversation with Yao Kun, an envoy from Later Tang, Abaoji said he spoke Chinese but did not speak it in the presence of other Khitans, because he feared that they would emulate the Han and grow soft.

During his reign, Abaoji attacked numerous neighboring peoples and expanded Liao territory exponentially. Against the steppe nomads, he led campaigns in 908 against the Shiwei, in 910 the Kumo Xi, in 912 the Zubu, in 915 the Khongirad, and again in 919 to subdue the Khongirad. From 922 to 923, he raided the Jin and its successor, Later Tang. A year later he attacked the Tatars. His campaigns continued right up until his death in 926 with the conquest of Balhae and the creation of the puppet Kingdom of Dongdan. Most of Balhae's population was relocated to what is now Liaoning. The destruction of Balhae resulted in three independent groups beyond Khitan control: the northwestern Balhae people in modern Heilongjiang, the Balhae people west of the Yalu River, and the state of Jeongan in the upper valley of the Mudan River that emerged after the dissolution of Dongdan.

Abaoji died of typhoid fever at the age of 54 on 6 September 926.

Taizong (926–947)

Yelü Deguang, posthumously Emperor Taizong of Liao, was the second son of Shulü Ping (Empress Yingtian) and not the first in line for the Khitan throne. His elder brother, the 26-year old heir apparent Yelü Bei, was disliked by the conservative Khitan elites for his intellectual pursuits. As a polymath, Yelü Bei was skilled in painting, writing in both Khitan and Chinese languages, and possessed a large personal library. He also had a taste for Chinese culture, music, medicine, and prognostication. Chinese-style primogeniture was also not a custom among the Khitans, who had elected their leader since the time of the Dahe Confederation, which was why Abaoji had them swear allegiance to Yelü Bei when he announced him as heir apparent. Bei's mother, Shulü Ping, who was exceptionally powerful in her own right, commanding thousands of horsemen and leading troops on campaign, took control of all military and civil affairs as regent, after having cut off her right hand to be buried with her husband. Shulü Ping herself disproved of her first son as heir due to his Chinese leanings and used all her influence to have Bei set aside for his younger brother, Deguang, who had participated in the 922–923 and 924–925 campaigns. Toward the end of 927, Bei approached his mother and formally withdrew his claim. Deguang succeeded the throne.

Bei was still ruler of the Dongdan Kingdom in former Balhae, given to him by his father after participating in its conquest. Taizong, who still regarded him as a threat, ordered in 929 that the capital of Dongdan and all its inhabitants be moved to the Eastern Capital (Dongjing). Dongdan lost its semi-autonomous status. In 930, Bei fled by sea to the Later Tang court and was received by Li Siyuan as an honored guest. In 937, he was killed by Shi Jingtang, who overthrew Later Tang and ruled Later Jin (Five Dynasties) as a puppet of the Khitans.

In 929, the Khongirad rebelled. In the same year, Taizong sent his younger brother, Yelü Lihu, to attack the Later Tang at Datong. In 933, Taizong led a campaign against some Tangut tribes. The most important expansion of Khitan territory during this period, however, came from political instability in the south. In 933, the Later Tang emperor died. His son, Li Conghou, lasted only five months before his adoptive brother, Li Congke, killed him. Li Congke ordered a powerful governor, Shi Jingtang, to be transferred for closer supervision by the court, leading to his rebellion. Hard pressed by Li Congke, Shi Jingtang sought aid from the Khitans. Taizong led a 50,000 strong cavalry force to his aid and defeated the Later Tang army near Taiyuan. On 28 November 936, Shi Jingtang was invested as emperor of Later Jin by the Khitans. In 938, the puppet emperor of Later Jin transferred the Sixteen Prefectures over to the Khitans, granting them access to the strategic fortifications of northern China and the Central Plains. A new "Southern Capital" (Nanjing) was constructed at modern Beijing. Shi Jingtang behaved as a vassal and even allowed Khitan envoys to cross his territory to contact Southern Tang, his geopolitical rival.

Shi Jingtang died in 942. His nephew and successor, Shi Chonggui, came under the influence of an anti-Khitan court led by the army commander Jing Yanguang. In 943, Shi Chonggui revoked the trading privileges of the Khitans in Kaifeng and confiscated their property, sending their representative back to the Khitan court. Taizong invaded in the following year but suffered a defeat in 945, having to escape the battle on a camel. However, with persistence, the Khitans wore down the Jin forces, and in 946, the Jin commander in chief, Du Chongwei, surrendered. In early 947, Taizong entered Kaifeng unopposed. The Jin emperor and his family were exiled to the Supreme Capital. The Jin army was disarmed and disbanded, their horses confiscated. With this great victory, Taizong formally adopted a dynastic name, the "Great Liao". With the conquest of Later Jin, the Liao acquired the Jade Seal of State Transmission (chuanguo yuxi). Ideologically, the Liao therefore regarded itself as the legitimate successor of the Later Jin, and the ruler of China. It hence chose the Water element, the element that follows the Metal element, the dynastic element of the Later Jin, according to the sequence of creation of the Five Elements (wuxing). It also chose the Water element's corresponding color black as its dynastic color.

His victory did not last. Having brought inadequate supplies, the Khitans wantonly looted the city and plundered the countryside provisions, and imposed harsh levies on the local populace, causing them to become resentful and attack them. Rather than stay and govern the conquered city, the Khitans decided to ship everything of value, from Jin officials and palace women to maps and music instruments, back to the Supreme Capital. Taizong also faced another threat from Taiyuan, where Liu Zhiyuan announced a new Later Han (Five Dynasties) dynasty. The occupation of Kaifeng lasted three months before Taizong withdrew. Shortly before reaching Liao territory, Taizong suddenly fell ill and died near modern-day Shijiazhuang at the age of 45 on 18 May 947.

Shizong (947–951)

Yelü Ruan, posthumously Emperor Shizong of Liao, was the son of Yelü Bei. Emperor Taizong of Liao had apparently come to an agreement with his brother Bei and chose Bei's son as his successor. Taizong had raised Ruan after Bei's departure in 930 and the relationship between them was as close as father and son. Ruan participated in the invasion of Later Jin, earning himself the reputation of a capable warrior and commander. Upon Taizong's death, Ruan declared himself emperor before "his father's coffin". However Ruan's grandmother, Shulü Ping (Empress Yingtian), opposed the succession and favored her third son, Yelü Lihu, Taizong's younger brother.

Shulü Ping proclaimed her son Lihu as emperor and sent and sent Lihu with an army to attack Ruan while he was on his way back to the Supreme Capital but was defeated. His mother then led her own army to confront Ruan. The two armies faced each other on the Xar Moron River, south of the Supreme Capital, for several days. The deadlock was resolved by a royal cousin named Yelü Wuzhi and ultimately Lihu, who the Khitan nobility viewed as cruel and spoiled, was unable to gain enough support to further challenge Shizong. After a peace was brokered, Ruan formally assumed the role of emperor and the title of emperor. Shizong exiled both Empress Shulü Ping and Yelü Lihu from the capital, ending their political ambitions. Shizong hoped this would secure his position but he quickly became disillusioned as the internal situation of the Liao remained unstable. In 948, the second son of Taizong, Yelü Tiande, conspired to murder the emperor. The conspiracy failed and the conspirators' lives were spared. Among them, Xiao Han, a nephew of Shulü Ping, conspired against Shizong again in the following year. Despite being spared again, Xiao Han returned to his old ways a third time, resulting in his execution.

In 947, a planned invasion of Goryeo was aborted when the Khitans realized that enemy defenses were more formidable than they had thought.

From 949 to 950, Shizong invaded Later Han. In late 951, Shizong decided to invade Later Zhou. Before the army set off, Shizong and his entourage got drunk after making sacrifices to his father. Chage, the son of Abaoji's younger brother, Anduan, took advantage of the situation to kill Shizong. Chage was executed. Shizong died at the age of 33 and had not produced a son of age to inherit the throne. Shizong's rule was characterized by a series of rebellions from within his extended family. Although ruling for only four years, Shizong oversaw the formalization of the dual government system, which brought the structure of the Southern Establishment closer to the model used by the Tang dynasty.

Muzong (951–969)

Yelü Jing, posthumously Emperor Muzong of Liao, succeeded his cousin, Emperor Shizong of Liao. Muzong was a heavy drinker and spent most of his time either hunting or sleeping. The Chinese called him the "Sleeping Prince". The first half of his reign was marred by continued instability within his family. A younger brother of Shizong, Louguo, hatched a plot with one of his uncles to defect to Later Zhou. He was executed when the plot was discovered. In 953, a son of Yelü Lihu named Wan also conspired against the emperor. Wan was spared but his co-conspirators were executed. In 959, Dilie, one of Louguo's co-conspirators, plotted rebellion. The next year, Wan's older brother, Xiyin, was arrested for plotting rebellion. Lihu was implicated and died in prison.

During Muzong's reign, the Liao assisted Northern Han in fending off an attack by Later Zhou in 952. The Zhou attacked Han again in 954, and the Khitans once again came to their aid. The Khitans captured some Han troops by mistake and handed them back. On some occasions, Han envoys would visit the Liao to discuss strategic matters. Emperor Shizong of Later Zhou believed that the Liao dynasty were poised to invade the Zhou. In 958, the Han reported renewed attacks by the Zhou. In the following year, the Zhou invaded Liao territory, taking some border prefectures. Muzong headed south to confront the Zhou invasion but the Zhou emperor fell sick and had to return to Kaifeng. He died soon after and the Zhou invaders withdrew. In 960, the Zhou were replaced by the Song dynasty, which attacked Han in 963, and was repelled with the aid of the Khitans. Border skirmishes occurred between the Liao and Song in 963 and 967.

There were minor troubles with the Shiwei and Khongirad in 965, but otherwise the northern frontier remained calm for the Liao.

In 969, Muzong spent an entire month drinking and began to act violently and irrationally, butchering some of his bodyguards. On 12 March, six of his personal attendants murdered him. He was 37 years old. Muzong was the second and last Liao emperor to succeed Abaoji who was not a direct descendant of Yelü Bei.

Jingzong (969–982)

Yelü Xian, posthumously Emperor Jingzong of Liao, was the son of Emperor Shizong of Liao. During his reign, the Five Dynasties and Ten Kingdoms period came to an end with the rise of the Song dynasty, which replaced Later Zhou in 960. The Song had defeated all the competing states except for Northern Han by 978. Realizing their precarious situation, the Han strengthened their ties to the Liao with monthly courtesy missions starting in 971. In 974, the Song began negotiations with Liao for a possible neutrality treaty. The diplomatic efforts ended in failure and the Song invaded Han in 976 and 977, both times being repelled by Liao intervention. With the conquest of Wuyue in 978, the Song concentrated all their forces on an invasion of Han. This time they intercepted Liao forces en route to Han and crushed them. In the summer of 979, Emperor Taizong of Song took Taiyuan and annexed Northern Han. Taizong then made the disastrous mistake of attempting to invade Liao. His already overextended and tired troops advanced on the Supreme Capital. Initial skirmishes ended in the Song army's favor but they lost a crucial pitched battle on the Gaoliang River. Taizong was wounded and fled south in a donkey cart. Capitalizing on the Liao victory, Jingzong launched a punitive expedition in 980, and defeated a Song army. In another campaign in 982, the Liao army was defeated and Jingzong was forced to retreat.

Aside from conflict with the Song, the Liao also experienced trouble with the Tanguts in 973. In 975, conflict with remnants of the Balhae people led to an invasion of Jeongan, which failed. The Jurchens looted Liao territory in 973 and 976. In 981, captured Chinese soldiers attempted to enthrone a son of Xiyin but the plot failed, and Xiyin was forced to commit suicide.

In 977, an examination hall was established outside the Southern Capital.

During Jingzong's reign, much of the administrative and military affairs were handled by his empress, Xiao Yanyan (Empress Chengtian). Jingzong was often ill and unable to oversee matters of state on many occasions. All the officials and generals went to Xiao Yanyan to discuss important matters. Once a decision was made, Jingzong would be informed of the matter so that it could be promulgated in his name. It was said that even in matters of war with the Song, the real decision maker was the empress, who was the true ruler of the Khitans..