Mahmud Ghazni, the Turkic ruler of the Ghaznavid dynasty, launched numerous raids into the Indian subcontinent, with the raid on Somnath in 1025 CE being one of his most infamous exploits. The Somnath temple was a wealthy and important Hindu shrine.