 During his lifetime, Qutb al-Din Muhammad remained loyal to the Seljuk ruler of Khurasan, Sanjar.In 1113 or 1114 he helped a fellow Seljuk vassal, the Karakhanid Arslan Khan, stifle turmoil caused by the discontented religious classes in his realm.He also participated in Sanjar's military campaign against the Great Seljuk Mahmud II, who ruled in western Iran and Iraq, in 1119.