The name Beshbalik first appears in history in the description of the events of 713 in the TurkicKul Tegin inscription. It was one of the largest of five towns in the Uyghur Khaganate in Mongolia. The Tibetans briefly held the city in 790. Established in 1902 as a county, it was known as Fuyuan until 1952, when its name was changed to Jimsar. The modern city Jimsar is located at 43°59'N, 89°4'East; It is a location of the Uyghur ancient southern capital Beshbalik or Beshbalyk. In modern Turkish "Beşbalık literally means "Five Fishes", the closest approximation of "Beshbalyk" would be "Beş" and "Baylık". However, not like today's meaning, "Balıq" means city in old turkik language, so the meaning of Beshbalik/Beshbalıq is "Five cities". This city name appeared in Yuan dynasty record as both 五城 or 别失八里. It became the Uyghur main capital after a disastrous results of the Yenisei Kirghiz attack on the Uyghur northern capitalKarabalgasun. After the attack, a significant part of the Uyghur Khaganate population fled to the area of the present Jimsar County and Tarim Basin in general in 840, where they founded the Kingdom of Qocho. The Uyghurs submitted to Genghis Khan in 1207. Beshbalik consisted of five parts: an outer town, the northern gate of the outer town, the extended town of the west, the inner town and a small settlement within the inner town. At first, the city was the political center of the Uyghur Idiquit and his Mongol queen, Altalun, daughter of Genghis Khan under the Mongol Empire in the first half of the 13th century. Alans were recruited into the Mongol forces with one unit called "Right Alan Guard" which was combined with "recently surrendered" soldiers, Mongols, and Chinese soldiers stationed in the area of the former Kingdom of Qocho and in Besh Balikh the Mongols established a Chinese military colony led by Chinese general Qi Kongzhi. Due to military struggles between the Chagatai Khanate and the Yuan Dynasty during the reign of Kublai Khan, the city was abandoned and lost its prosperity in the late 13th century. The History of Yuan records the name as both Wu-ch'eng 五城 and Bie-shi-ba-li 别失八里. Jimsar city was established in the south of the ruins of Beshbalik.