The Tang Chinese expansion was checked following the Battle of Talas in modern-day Kyrgyzstan, when the Chinese Empire was defeated by the Arabs. However, China remained strong enough to process a significant weight until the An Lushan Rebellion that led China to be completely crippled. The weakening of Chinese Empire partly traced from the rebellion, and thus, it weakened the expansion process of China to an insignificant level, as China could not deal with repeated raids and invasions from the Uyghurs and Turkic nomads, as well as the Tibetans; losing territories to both of them as well. This was just the slow process of other territorial losses China suffered in the aftermath of the rebellion.