Answer
In 756, An Lushan, a general of mixed Sogdian and Göktürk descent serving the Tang dynasty, declared himself emperor and established the Yan state. This marked the beginning of the An Lushan Rebellion, a major uprising that lasted for eight years and significantly weakened the Tang dynasty.