Yelü Dashi
After the end of the Northern Liao dynasty, a general Yelü Dashi rejoined Emperor Tianzuo. In 1123, the Jurchens captured Emperor Tianzuo's palace at Qingzhong (south of present-day Hohhot), capturing members of his family. Emperor Tianzuo fled to Western Xia and sought refuge there. Later, Emperor Tianzuo expressed his intention to attack the Jurchens, but Yelü Dashi withheld his support, considering it folly as the Jurchens were too strong. In 1124, Yelü Dashi fled to the west with a band of his followers, and established the Western Liao dynasty. In 1125, Emperor Tianzuo was captured by the Jin dynasty, ending the Liao dynasty.