One of the earliest mentions of the city comes from the Arab geographer Al-Muqaddasi, who described it in the 10th century as "a large city surrounded by seven walls, mosque located in the inner city."[1] In 1065, the city submitted to the Seljuq dynasty,[2] which was part of the transformation of the Kara-Khanid Khanate into a vassal of the Seljuqs.
Around the 1370s, when the region was under the control of Urus Khan, Tokhtamysh of the blue horde, heavily supported by Amir Timur, tried to conquer the region, aiming to rule the cities of Sawran, Otrar, Saganac, Seiram, Serai, and others.[3] The city provided the brick and tile for the construction of Mausoleum of Khoja Ahmed Yasawi, which was commissioned by Amir Timur in 1389; the mausoleum is 25 miles from the city.[4]
By the 15th century, the city had established diplomatic relations with the Ming dynasty, which recorded the name of the city in the Ming Shilu as 掃蘭 (saolan).[5] The poet Zayn al-Din Mahmud Vasifi visited the city from 1514 to 1515, and described the city's karez water infrastructure.[1]
Like Otrar, the city suffered with the decline of Silk Road, and struggles for power in the region.