According to the travel notes of Genghis Khan's chief adviser Yelü Chucai, the city of Almaliq was situated between the Tian Shan mountains and the Ili River. There were many crab apple trees around Almalik. The native people called them "almaliq", thus giving the name to the city.