In the beginning of the 19th century, the upper part of the Talas River Valley was again invaded by newcomers. This time it was the Qipchaq soldiers of the Khanate of Kokand. They built a few small fortresses for guarding the border and the caravan route mainly on the ancient cities ruins. Due to the comparatively advantageous position of the fortress which was built on the ruins of ancient Taraz a new town began quickly to grow around it. At first it was named Namangan-i Kochek ("little Namangan"), as the first settlements were from the Persian populated city Namangan, now in Uzbekistan and uzbekified. In 1856 it was renamed Aulie-Ata, in the honor of Karakhan the founder of Karakhanid dynasty. Mullahs, using a legend about the mausoleum of Karakhan in 12th built a new mausoleum with minarets, which had nothing in common with the older one. This new mausoleum preserved the ancient name, "Aulie-Ata" ("holy father"). The town took the same name. By this time the city had become a considerable trade craft center. Annually, a large spring fair was held there. The products of craftsman and agriculture were changed for the things of cattle-breeders. Large consignments of livestock bought at the fair were sent to Tashkent and Fergana through the Karrabul Pass in the Talas-Alatau. The caravan way passed through the city to the north-through Akmolinsk (Nur-Sultan) and Petropavlovsk (Petropavl), to Omsk.