The first recorded attack on the Somnath Temple was in 1026 CE, when Mahmud of Ghazni, the Turkic ruler of the Ghaznavid Empire, crossed the Thar desert and led a large cavalry into western India.
Source: How Gujarat’s Somnath Temple Was Attacked And Rebuilt Over Centuries




