Complex sentence: Despite the conversion of some Karluks after the battle, the majority of Karluks did not convert to Islam until the mid 10th century when they established the Kara-Khanid Khanate, long after the Tang dynasty was gone from Central Asia.
Split into simpler sentences: Despite the conversion of some Karluks after the battle, the majority of Karluks did not convert to Islam until the mid 10th century when they established the Kara-Khanid Khanate. This was long after the Tang dynasty was gone from Central Asia.