the command of the army, led to the execution of Kamal Ai-Aba, Saifuddin Rus and several of the Sultan's opponents, and the desertion of his allies. Qizil Arslan had declared Sanjar b. Suleiman-Shah as the Seljuk Sultan of Iraq, and reinforced by troops sent by the Caliph now invaded Hamadan, Toghrul, unable to resist the invasion, first retreated to Isphahan, then to Urmia. He was joined by an army led by his brother in law Hasan Kipchiq, and Toghrul also tried to get help from the Ayyubids and the Caliph, even sent his infant son as hostage to Baghdad in a futile gesture. Toghrul invaded Azerbaijan and sacked the towns of Ushnu, Khoy, Urmiya and Salmas. Qizil Arslan reconciled with his nephews and defeated and captured Toghrul when he again invaded Azerbaijan in 1190. Qizli Arslan imprisoned Toghrul and his son Malik Shah in Kuhran fortress near Tabriz. Qizil Arslan, encouraged by the Caliph, soon declared himself Sultan, married Innach Khatun, his brother's widow, and was poisoned by her in September, 1191. His nephews began to rule independently, and one of the Mamluks of Jahan Pahalvan, Mahmud Anas Oglu, freed Toghrul III from his prison in May 1192. Events of 1192–1194 Toghrul eluded the pursuers sent by Abu Bakr and quickly assembled an army from his supporters and Turkmens, then marched east and defeated the army of Qutlugh Inanch Muhammad and Amir Amiran Umar near Qazvin on June 22, 1192, and won over a large part of the enemy soldiers after his victory. Qutlug-Inach and Amiran Omar then attacked Abu Bakr in Azerbaijan and was beaten, Aimiran Umar sought refuge with his father in law Shirvanshah Akhsitan I (1160-1196), while Qutlug-Inach moved to Rey. Toghrul occupied Hamadan, secured the treasury and came to rule over Isphahan and Jibal, but did not attempt to negotiate an agreement with Abu Bakr, against Qutlug Innach. Qutlugh Innach now appealed to Khwarazmshah Ala ad-Din Tekish for aid, and Tekish invaded and captured Rey in 1192, forcing Qutlug Innach to flee the city. Toghrul's Truce with Tekish Sultan Toghrul III opened negotiations with Tekish, and eventually agreed to become a vassal of Khwarizm, marriage of his daughter The Tekish's son Yunus Khan, and in return Tekish kept Rey, garrisoned his newly acquired territory, collected taxes, then installed Tamghach as the governor, and returned home to quell the rebellion of his brother Sultan Shah. Toghrul now