 The reign of Emperor Shengzong from 982 to 1031 represented the height of the Liao dynasty 's power . Shengzong oversaw successful military campaigns against the Chinese Song dynasty and the Korean Goryeo Dynasty , and both campaigns secured long @-@ term peace agreements with terms favorable to the Liao . In 990 Liao emperor recognizes a " king of Xia " . 
