喀喇汗国
It was the capital of the Kara-Khanid Khanate from the 10th century until it was taken by the Qara Khitai (Western Liao dynasty) in 1134. It was then captured by the Mongols in 1218. The Mongols called it Gobalik "Pretty City". It should not be confused with Karabalghasun, now Ordu-Baliq in Mongolia, which was the capital of the Uyghur Khaganate.