The Liao dynasty proved to be a significant power north of the Central Plain and it gradually expanded to occupy other territories including the Sixteen Prefectures.
By that time the Khitan are still described as the lower level of nomadic civilization, their 'confederation' still being an anarchist system of isolated tribes, each tending his own sheep and horses and hunting on his private territory.
[2] Li Jinzhong declared himself "Wushang Kehan" (無上可汗: "paramount khaghan") and killed Zhao Wenhui after capturing Yingzhou.
Sun Wanrong assisted him as general who successfully led tens of thousands of troops marching southward and conquered several other towns of Tang dynasty.
The first significant Chinese response was to send an army led by twenty-eight generals, but they were defeated by Khitans in the Battle of Xiashi Gorge (near modern Lulong County of Hebei Province) in the eighth month of 696.
Empress Wu sent one of his best generals, Wang Xiaojie, assisted by Su Honghui and some other top warriors, with a third army of 170,000 men, to put down the rebellion.
Due to the unfamiliarity to the local geography and terrains, Wang Xiaojie's force was ambushed by Sun Wanrong at the Dongxia Rocky Valley (东峡石谷).
[2] In a fourth campaign during May 697, Empress Wu sent Lou Shide and Shatuo Zhongyi with 200,000 troops to stop Sun Wanrong's from going further south.
[7] When Li-Sun died, his brother-in-law Sun Wanrong replaced him and engaged the Turks in an aggressive policy of "plunder to strengthen" as the best way to revitalize his Empire.
By attacking Khitan on their rear the Turks provided an inestimable help to Tang which also worked for themselves by crushing that eastern rising power.
Along with the final victory they freed some Turkish prisoners held in six Chinese northern border prefectures since 670–674, gained the submission of both the Khitan and the Xi, plundered a large amount of seed-grain, silk, farming implements and iron as well as winning noble titles for Qapaghan and the asked for imperial marriage with Wu Zetian.
In hope of resuming good relations with the Chinese Tai was not executed and an envoy was sent to humbly apologize while Ketuyu enthroned Suogu's cousin Yuyu (李鬱于, 720–722/724).
A second major campaign came in the fourth month of 733 when Guo Yingjie was ordered to lead 10,000 troops, assisted by Xi warriors, to crush Khitan.
[8] Ketuyu, seeing the Khitan forces exhausted by repetitive Tang campaigns, pretended to surrender in the twelfth month of 734 and was murdered, together with his puppet King Yaonian Qulie (遙輦屈列, 730–734), by his subordinate Li Guozhe (李過折).
[citation needed] In contrast, Xu Elian-Qian supports the theory that Chinese interferences in Khitan internal changes caused the aggression to Ketuyu's reactions.
When Ketuyu was personally mistreated, in Chang'an in 730, this resentment led him to choose the larger of consequence of diplomatic opposition by turning his submission to the Turks.
In times of weakness in the central power, such as in the 680's, this loose rein policy meant largely independence for the subordinate population who chose their own chief etc.
Also in prosperous times such as Xuanzong's reign, and his courage in facing the 720's coup, Tang officials immediately sent an army to support the dethroned pro-Tang king clearly interfering in Khitan internal affairs.
As the consequence of this systematic bribery he was promoted to commandant at Yingzhou (Ying prefecture) and Jiedushi (military governor) of the Pinglu army[13] in 742 to face and defeat the northern threat from Khitans, Xi, Balhae and Heishui Mohe.
An Lushan was hacked to death in his stomach and abdomen by Li Zhuer and another conspirator, Yan Zhuang (Yen Chuang) (嚴莊) who was beaten by An before.
But for some reason[18] the Khitans soon turned into an open rebellion against Tang in the ninth month of 745 killing the princesses and starting military operations.
Huge previous pressures from An Lushan combined with the Chang'an courts praise for him may have been seen Khitan as presenting an impasse against which they eventually revolted.
This claim is difficult to believe: can Khitan have been that naive to let An Lushan kill thousands of them, several times, in the same kind of "free food traps".
In 752, to punish this audacity and insult, a 200,000 strong army including both Chinese and barbarian infantry and cavalry went northwards to meet the Khitan.
He selected a dozen able generals and some 8,000 soldiers from amongst the surrendered Khitan, Xi, and Tongluo (同羅) tribesmen organizing them into an elite corps known as the Yeluohe (曵落河, "the brave").
Uighurs were focusing on economic exchanges, were the protectors of the diplomatic stability and left large political and internal freedom to their vassals.
The new "Steppe Lords" were relatively peaceful while the Tang dynasty was later greatly weakened by the An-Shi rebellion of 755–763 providing a new intra-China situation with a weak center and with provincial generals pacification and strengthening of their respective provinces.
The Khitans chose to stay as a calm self-defensive power enjoying most of the Manchurian plain and working to improve their daily situation.
While previous centuries had seen successive Turko-Chinese provocations or recall to obeisance, and the following wars had prevented Khitan gaining any notable expansion, the 8th-century situation eventually allowed one.
[26][27] The Jurchens sexual habits and norms were seemed lax to Han Chinese, such as marrying with an in-law, which was one of China's "Ten Heinous Crimes".