 He fled westward to the Qara Khitai, where he became an advisor.However, he rebelled three years later and usurped the throne of Qara Khitai.His regime proved to be short-lived however because the Mongols under Genghis Khan would soon invade Central Asia including the Qara Khitai.