Complex sentence: The Kara-Khanids converted to Islam, whereas the Uyghur state in eastern Xinjiang remained Manicheaean, but later converting to Buddhism.
Split into simpler sentences: The Kara-Khanids converted to Islam. The Uyghur state in eastern Xinjiang remained Manichaean, but later converted to Buddhism.