In 1173 Mu'izz ad-Din took the city of Ghazni from Mahmud of Ghazni which he did to avenge the death of his ancestor Muhammad ibn Suri. He used this city as a base for expansion into northern India. In the meantime, he helped his brother Ghiyath to win over Khwarazmian Empire for the lordship of Khorasan in Western Asia. In 1175, Mu'izz captured Multan from the Hamid Ludi dynasty, which were Muslim Pashtun, and also took Uch in 1175. He also occupied the Ghaznavid principality of Lahore in 1186, which was the last place of safety of his Persianised enemies. After the death of Ghiyath in 1202, he became the successor of the Ghurid Empire and ruled until his assassination in 1206.