Following the successful conquest of Northern Han in 979, Emperor Taizong - The second emperor of the Song Dynasty who completed the unification of China but failed to reclaim the Sixteen Prefectures from the Liao. of Song - The Song dynasty was an imperial dynasty of China that began in 960 and lasted until 1279. It was founded by Emperor Taizu of Song following his usurpation of the throne of the Later Zhou, ending the ... sought to reclaim the Sixteen Prefectures - A strategic region along the southern edge of the Great Wall, including modern-day Beijing and Datong. It was ceded by Shi Jingtang of Later Jin to the Khitan Liao in 936 AD, depriving China of its natural northern defenses and becoming a major source of conflict for centuries.For the Song Dynasty, reclaiming this lost territory was a matter of national pride and survival, but several major military expeditions failed to dislodge the Liao from the region. immediately. He marched his exhausted troops straight into Liao territory toward Youzhou (modern Beijing). However, the Liao reinforced the city, and at the Battle of Gaoliang River, the Song army was crushed by Khitan heavy cavalry. Taizong himself was wounded and escaped only by fleeing on a donkey cart. This defeat proved that the Khitan were a far more formidable foe than the southern kingdoms.
In 986, the Song launched a massive three-pronged offensive known as the Yongxi Campaign. While initially successful, poor coordination and a brilliant Liao counter-offensive led by Empress Dowager Xiao - The brilliant Khitan stateswoman and military leader who secured the Liao Empire's victory over the Song Dynasty. turned the tide. The legendary Song general Yang Ye - The legendary Song general known as 'Yang the Invincible,' whose life inspired the famous 'Generals of the Yang Family' legends. was left without support at Chenjiagu, where he was captured and later died. Following this second major failure, the Song adopted a defensive posture, constructing elaborate moats and planting massive forests along the border to hinder Khitan cavalry.
The conflict reached its climax in 1004 when Empress Dowager Xiao and Emperor Shengzong - The sixth emperor of the Liao Dynasty who led the empire to its greatest cultural and military peak, ruling under the regency of his mother, Empress Dowager Xiao, and later as a devout patron of Buddhism. led a massive Liao invasion deep into Song territory, reaching the southern bank of the Yellow River at Chanyuan. Facing a critical threat, the Song Emperor Zhenzong - The third emperor of the Song Dynasty who signed the Treaty of Chanyuan, securing long-term peace with the Liao, and is associated with the famous 'Wildcat for Crown Prince' legend. was persuaded to go to the front lines to boost morale. A stalemate ensued, and both empires, weary of decades of war, agreed to negotiate. The resulting Treaty of Chanyuan - A historic peace treaty signed in 1005 AD between the Song Dynasty and the Khitan Liao Empire. After decades of conflict, both sides agreed to recognize each other as equals (though the Song paid annual tribute in silk and silver). The treaty ended major hostilities and established a period of unprecedented stability and trade that lasted for over a century.While some later critics viewed the tribute as humiliating for the Song, the peace it bought allowed the dynasty to reach heights of cultural and economic prosperity. in 1005 established the two rulers as brothers and secured long-term peace in exchange for annual Song payments. This diplomatic settlement allowed both dynasties to flourish for the next century.