Internal turmoil largely halted Chinese expansion in the 19th century. In 1867 Yakub Beg led a rebellion that saw Kashgar declaring its independence as the Taiping and Nian Rebellions in the heartland of the Empire prevented the Chinese from reasserting their control.