# Karakhanid confederation emerges in the Tian Shan and Talas lands (c. 840 CE)

URL: https://allhistories.com/kazakhstan/timeline/840-karakhanid-confederation-emerges-in-the-tian-shan-and-talas-lands
Location: Balasagun, Chu Valley (near Tokmok, Kyrgyzstan)
Themes: Turkic states, Silk Road

In the decades after the Uyghur Khaganate collapsed in 840, a confederation of Turkic tribes, usually linked with the Karluks and neighbouring groups, began to gather power in the Chu and Talas valleys and the foothills of the Tian Shan. Balasagun served as its main centre in the ninth and tenth centuries, and traditional dynastic lists place the birth of the Karakhanid state in 840. The date is a convention rather than a documented event. Wikipedia notes that both the founding year and the first ruler are uncertain, and Taraz appears in the sources as a Karluk base rather than a Karakhanid capital. The region lay on the Silk Road between the Samanid lands to the south-west and the Tarim Basin to the east, which made it rich in trade and a frontier for steppe nomads. Over the next two centuries the confederation converted to Islam, took Bukhara and Samarkand, and divided into eastern and western khanates. Its rulers sponsored Turkic-language literature and scholarship, and its southern Kazakhstan towns, including Taraz and Sayram, became early Muslim urban centres on the steppe edge. At this point in the timeline (c. 840 CE), the region was held by Karluk and early Kara-Khanid chiefs, the best known being Bilge Kul Qadir Khan (840 – 920 CE). Other contemporary rulers included Oghuz yabghus (750 – 1055 CE) and Kimek khagans (743 – 1035 CE). The main location of this event lies outside present-day Kazakhstan.

## Why it matters
It marks the start of the first long-lived Turkic Muslim dynasty to rule parts of southern Kazakhstan, whose cities and literature shaped later steppe culture.

Ruler at the Time: [Karluk and early Kara-Khanid chiefs (incl. Bilge Kul Qadir Khan)](https://allhistories.com/kazakhstan/rulers/karluk-and-early-kara-khanid-chiefs-incl-bilge-kul-qadir-khan)

## Sources
- [Wikipedia — Kara-Khanid Khanate](https://en.wikipedia.org/wiki/Kara-Khanid_Khanate)
- [Encyclopaedia Britannica — Qarakhanid dynasty](https://www.britannica.com/topic/Qarakhanid-dynasty)
- [Encyclopaedia Britannica — Qarluq confederation](https://www.britannica.com/topic/Qarluq-confederation)

