Seventeen times, one ruler crossed into India. He never once stayed to govern it. This article covers Mahmud of Ghazni, the raids, the sack of Somnath, and a less-discussed side of his reign: the Persian court he built at Ghazni with the same wealth.
Timeline
- 998 CE: Mahmud becomes ruler of Ghazni, succeeding his father Sabuktigin.
- 1000-1027 CE: He conducts seventeen raids into India, aimed at plunder rather than permanent conquest.
- 1025-1026 CE: He sacks the Somnath temple in Gujarat, his most infamous and best-recorded raid.
- 1030 CE: Mahmud dies at Ghazni. He is remembered as the first ruler in the region to formally hold the title Sultan, and as the patron who turned Ghazni into a major Persian cultural centre.
The Seventeen Raids into India Need to Know

- Mahmud of Ghazni raided India seventeen times between 1000 and 1027 CE. This is the traditional count used in most textbooks and sources.
- His raids sought plunder, not permanent territory. Conquered regions usually went back to local rulers as tributaries, not direct Ghaznavid rule.
- Indian raids were only part of a much larger military career. Across his 32-year reign, Mahmud led 35 major and 11 minor campaigns in total, including many in Central Asia.
- Almost everything historians know about the Indian raids comes from Persian and Arabic chroniclers, not from independent Indian records. That gap makes the confident number “seventeen” harder to fully verify than it looks in summary form.
- Mahmud received the title Yamin-ud-Daula from the Abbasid Caliph al-Qadir Billah. He is widely considered the first regional ruler to formally adopt the title Sultan.
- Mahmud’s court chronicler Al-Utbi recorded his campaigns in a work known as the Tarikh-i-Yamini.
- During the siege of the Chandela fortress of Kalinjar, ruler Vidyadhara avoided outright defeat through negotiation rather than battle.
The Sack of Somnath, 1025 CE Need to Know
- Mahmud left Ghazni on 18 October 1025 with a large cavalry force, reported by chroniclers at around 30,000 horsemen plus irregular infantry, and marched toward the Somnath temple in Gujarat.
- He reached Somnath in early January 1026 and stormed the temple after a short siege. Chroniclers say Mahmud personally broke the temple’s Shiva Linga and looted its treasury.
- Contemporary Muslim chroniclers put the defenders’ deaths at around 50,000 and the plunder at a huge sum in gold and jewels. No independent Hindu source from the period confirms these exact figures.
- Historians disagree on how much of this account is fully reliable. Historian Romila Thapar has pointed out that Hindu sources stay silent on the raid, and that a pilgrim’s account from 1038 CE describes visiting Somnath without mentioning damage.
- What’s beyond real dispute: the raid happened, the temple was looted, and it became the most-cited symbol of Mahmud’s India campaigns. It is remembered very differently across different traditions of Indian and Pakistani history writing.
- See ArtnCulture0124 — Somnath Temple: A Thousand Years of Destruction and Rebuilding for the temple’s full history across its many rebuildings.
Al-Biruni and the Kitab-al-Hind Good to Know
- Mahmud patronised the scholar Al-Biruni, who accompanied his campaigns and studied India closely.
- Al-Biruni’s resulting work, Kitab-al-Hind, remains a major source on Indian society, science and philosophy of the period.
- Mahmud’s raids differ sharply from later invasions. Muhammad Ghori’s later campaigns aimed at establishing permanent rule, unlike Mahmud’s plunder-focused expeditions. See MedHist0002 — Muhammad Ghori and the Ghurid Conquest.
- See MedHist0001 — Arab Conquest of Sindh and the Ghaznavids for the earlier Arab conquest of Sindh. It also covers the Ghaznavids’ rise more broadly.
Ghazni as a Persian Cultural Capital Good to Know
- Mahmud’s raids funded something else entirely. He turned Ghazni into one of the major cultural centres of the Islamic world, rivalling Baghdad in his own time.
- After conquering Ray and Isfahan, Mahmud brought their libraries back to Ghazni. He gathered scholars, poets and architects at his court, and even asked the Khwarizmshah’s court to send its own scholars to Ghazni.
- His court poets included Unsuri, Asjadi and Farrukhi, all major names in early Persian literature.
- The poet Ferdowsi is closely linked to Mahmud’s court, though the real story is more complicated than popular legend suggests. Ferdowsi began his epic Shahnameh under earlier Samanid patronage, not Mahmud’s. He revised parts of it later to honour the Ghaznavid dynasty, and presented the finished epic to Mahmud around 1010 CE.
- A famous story claims Mahmud underpaid Ferdowsi for the Shahnameh, and that Ferdowsi wrote a bitter satire against him in return. Modern scholars treat this story with caution. Some details, like Ferdowsi’s journey to Ghazni, are plausible, but much of it cannot be independently confirmed.
- Ghazni’s rise as a Persian literary centre is one of Mahmud’s less-discussed legacies. It sits alongside the raids as part of the same reign, funded in part by the same plunder that paid for his armies.
Test Yourself
Legacy: Plunder, Not Permanent Rule Great to Know
- Seventeen raids without a single attempt at settlement reveal a deliberate strategy. Ghazni’s economy ran partly on Indian plunder, not on ruling Indian land.
- The Sultan title mattered as much as the raids themselves. Formal recognition from the Abbasid Caliph gave Mahmud religious legitimacy that military conquest alone could not.
- Al-Biruni’s Kitab-al-Hind is an odd companion to the raids that funded it. A genuine scholarly study of Indian science, philosophy and society grew directly out of a campaign built on plunder, much like Ghazni’s Persian literary scene did.
- Mahmud’s approach set up a contrast later invaders broke from. Ghurid and Delhi Sultanate rulers who followed, including MedHist0051 — Balban, chose permanent rule and centralised administration over repeated raiding, a different calculation about what conquest was for.
Beyond the answer
Browse all medieval-indian-history topics →
📚 Keep reading
ArtnCulture0124 — Somnath Temple: A Thousand Years of Destruction and RebuildingMedHist0001 — Arab Conquest of Sindh and the GhaznavidsModHist0246 — K.M. Munshi: Constitution-Maker and Somnath's RebuilderIndReligion0021 — Kashi Vishwanath TempleUPSC CSP 2022 — General Studies Paper I (Full Question Paper)❓ Practice this topic
During which two Mughal emperors' reigns did Tavernier make his six voyages to India, between 1630 and 1668?The 115-carat rough diamond Tavernier acquired in 1666 was later cut down and sold to Louis XIV as which famous diamond?In which year did Tavernier publish “Les Six Voyages,” recording diamond prices and mining techniques from his travels?Jean-Baptiste Tavernier's book gave the first detailed European technical description of which diamond mines?🎲 Take a Medieval Indian History Quiz
Leave a Reply