 Almost immediately after its founding , the Liao dynasty began a process of territorial expansion , with Abaoji leading a successful conquest of Balhae . Later emperors would gain the Sixteen Prefectures by fueling a proxy war that led to the collapse of the Later Tang ( 923 – 936 ) and would establish tributary relationships with Goryeo and Song China after failing to conquer Goryeo . 
