The Second Turkic Khaganate (Türük el, , known as Turk Bilge Qaghan country (Türük Bilgä Qaγan eli) in Bain Tsokto inscriptions) was a khaganate in Central and Eastern Asia founded by Ashina clan of the Göktürks that lasted between 682–744. It was preceded by the Eastern Turkic Khaganate (552–630) and the early Tang dynasty period (630–682). The Second Khaganate was centered on Ötüken in the upper reaches of the Orkhon River. It was succeeded by its subject Toquz Oghuz confederation, which became the Uyghur Khaganate. A few decades after the fall of Eastern Turkic Khaganate (630), Ashina Nishufu was declared qaghan in 679 but soon revolted against the Tang dynasty. In 680, he was defeated by Pei Xingjian. Shortly afterwards, Nishufu was killed by his men. Following Nishufu's death, Ashina Funian, another scion of the royal clan, was made qaghan and the Eastern Turks once again rebelled against Tang rule. The early stages of the rebellion brought about some victories for Funian, however later, Turks were once again defeated by Pei Xiangjin. According to Tonyukuk, the attempt to revolt against the Tang and set a qaghan on the throne was legitimate action. It was the people's fault that they deposed and killed Nishufu, and subduing themselves again to the Tang dynasty. The uprising in 679–681 was at first unsuccessful, although it led, in 682, to the withdrawal of Qutlugh into the Gobi desert. Once they had established themselves in the Yin Mountains, Qutlugh, his brother Bögü-chor, and his closest comrade-in-arms, Tonyukuk succeeded in winning the support of most of the Turks and conducted successful military operations against the imperial forces in Shanxi between 682 and 687. In 687 Ilterish Qaghan left the Yin Shan mountains and turned his united and battle-hardened army to the conquest of the Türk heartlands in modern-day central and northern Mongolia. Between 687 and 691 Toquz Oghuz and the Uyghurs, who had occupied these territories, were routed and subjugated. Their chief, Abuz kaghan, fell in battle.