Yelü Abaoji (872-926), of the Diela branch of the Khitan, was the founder of the Liao dynasty, temple name Taizu. As the Tang collapsed into chaos the Khitan rose; succeeding as chief of the tribal confederation, Abaoji put down the revolts of his brothers, abolished the three-year elective khanship, and in 916 proclaimed himself emperor, naming the state Khitan — his son Deguang later called it Liao. He employed Chinese advisers like Han Yanhui to create institutions, build walled towns and develop agriculture, joining steppe custom to Chinese officialdom, and ordered a Khitan large script devised on the model of the Chinese characters. Abroad he campaigned east and west, subduing the Xi, Shiwei and other tribes; in 926 he destroyed Balhae in the east, annexing its lands as the client state of Dongdan — and died at Fuyu city on the return north that same year. Abaoji fixed hereditary imperial rule for the Khitan; the pattern of the Yelü imperial house and the Xiao consort clan sharing power dates from him. His state stood on steppe tradition yet opened the century-long north-south confrontation with the Northern Song — the greatest political variable of tenth-century East Asia.