 Atsiz, however, challenged the rule of Ghiyath al-Din Mahmud and demanded the throne for himself, and requested aid from the Khwarazmian dynasty, who declined his request.Ghiyath al-Din Mahmud later died in 1212, and was succeeded by his son Baha al-Din Sam III, who was one year later carried by the Khwarazmians to Khwarezm, who finally agreed to help Atsiz, and made him ascend the Ghurid throne.One year later, however, Atsiz was killed by the Turkish "ghulam" Tajuddin Yildoz, and was succeeded by his cousin Ala al-Din Ali.