After the devastating invasions by Timur and subsequent enfeeblement of the Kingdom of Georgia, it soon faced a new threat. Timur's death in 1405 marked the beginning of the end of his Empire, unified only by fear and blood of the subjected peoples. Turkomans, particularly the Kara Koyunlu clan, were among the first to rebel against Shah Rukh who ruled most of the Persia and Mawerannahr. Qara Yusuf, ruler of the Kara Koyunlu, defeated Shah Rukh, captured Baghdad, and repulsed Timurids from western Persia. After they established themselves as the new leading power in the middle east. They took advantage of the temporary weakness of Georgians and launched attacks against them, apparently in which, George VII of Georgia was killed. Constantine I of Georgia, fearing further encroachment, allied himself with the Shirvanshah Ibrahim I to counter Turkoman advance and engaged them in the Battle of Chalagan, in which he was defeated and taken captive. In captivity Constantine behaved very proudly, which infuriated Qara Yusuf to such an extent, that he ordered his, his half-brother David's and 300 Georgian nobles' execution. Kara Yusuf put Constantine to death by his own hand.