 His military actions against the Khokhar rebels in 1205-1206 gained attention of the Ghurid Emperor Mu'izz ad-Din, who manumitted him even before his master Aibak was manumitted.After Mu'izz ad-Din's death in 1206, Aibak became a practically independent ruler of the Ghurid territories in India, with his headquarters at Lahore.After Aibak's death, Iltutmish dethroned his unpopular successor Aram Shah in 1211, and set up his capital at Delhi.