The Jin general, Puxian Wannu, rebelled against the Jin dynasty and founded the kingdom of Eastern Xia in Dongjing (Liaoyang) in 1215. He assumed the title Tianwang (; lit. Heavenly King) and the era name Tiantai (). Puxian Wannu allied with the Mongols in order to secure his position. However, he revolted in 1222 after that and fled to an island while the Mongol army invaded Liaoxi, Liaodong, and Khorazm. As a result of an internal strife among the Khitans, they failed to accept Yelü Liuge's rule and revolted against the Mongol Empire. Fearing of the Mongol pressure, those Khitans fled to Goryeo without permission. But they were defeated by the Mongol-Korean alliance. Genghis Khan (1206–1227) gave his brothers and Muqali Chinese districts in Manchuria.