Ghurid dynasty
Thirteen months later, Muhammad was freed from captivity, and once again invaded the domains of Ghiyath, capturing Herat. Muhammad then invaded the Ghurid heartland of Ghur, and captured Ghiyath. Ghiyath then agreed to recognize Muhammad's authority, and remained ruler of the Ghurid dynasty until he was assassinated in 1212. He was succeeded by his son Baha al-Din Sam III.