In 1025 Mahmud raided Gujarat, plundering the Somnath temple and breaking its jyotirlinga. He took away booty of 2 million dinars. The conquest of Somnath was followed by a punitive invasion of Anhilwara.I. H. Qureshi et al., A Short History of Pakistan (Karachi Division (Pakistan): University of Karachi, 2000), (p.246-247) Some historians claim that there are records of pilgrimages to the temple in 1038 that do not mention damage to the temple. However, powerful legends with intricate detail had developed regarding Mahmud's raid in the Turko-Persian literature, which "electrified" the Muslim world according to scholar Meenakshi Jain.
