In 558–603, Chach was part of the Turkic Kaganate. At the beginning of the 7th century, the Turkic Kaganate, as a result of internecine wars and wars with its neighbors, disintegrated into the Western and Eastern Kaganates. The Western Turkic ruler Tong Yabghu Qaghan (618-630) set up his headquarters in the Ming-bulak area to the north of Chach. Here he received embassies from the emperors of the Tang Empire and Byzantium. In 626, the Indian preacher Prabhakaramitra arrived with ten companions to the kagan. In 628, a Buddhist Chinese monk Xuanzang arrived in Ming Bulak.