"It seems that whenver the temples became centres of power concentration, they became targets of expeditions".
Somnath had become a centre of political power of Mahmood's rivals in India.
"purpose of the raid was economic, perhaps even iconoclastic, but not communal."
Somanatha - The Many Voices of a History