After the death of Shams al-Din Eldiguz, in 1175, the Seljuq Sultan Arslan Shah tried to escape from the yoke of the Grand Atabeg of Azerbaijan but failed, and was poisoned to death by Shams ad-Din's son, the new Grand Atabeg Muhammad Jahan Pahlavan (c. 1174–1186).
Pahlavan transferred his capital from Nakhchivan to Hamadan in western Iran, and made his younger brother, Qizil Arslan Uthman, the ruler of Azerbaijan.
[1] Arslanshah marched to Azerbaijan together with the emirs against the Eldeniz government, but Muhammad Jahan Pahlavan eliminated his rival and replaced him with his son Togrul III and proclaimed himself as Toghrul’s atabeg.
Muhammad Jahan Pahlavan entrusted the management of Azerbaijan and Arran to his son Nusrat al-Din Abu Bakr and made Qizil Arslan his governor.
Besides, he gave Rey, Isfahan and the rest of Iraq to his sons, Kutluq Inanj Mahmud and Amir Amiran Omar, and Hamadan to Uzbek.