Founded in modern Xinjiang/Central Asia by displaced Khitans from the Khitan Liao, who had been defeated by the Jurchens.