Almaliq was originally one of Karluk cities in the Turkic Kaganates. It is known from the accounts of the Persian historians and Chinese travelers of the Mongol era (13th to 15th centuries), in particular the 13th-century Daoist Qiu Chuji (Chang Chun).