Mu'izz ad-Din captured Multan in 1175, and in 1178, unsuccessfully invaded the Chaulukya kingdom in present-day Gujarat and northern Rajasthan. Subsequently, the Ghurids defeated the Ghaznavids, and conquered Lahore in 1186.[5]