- Foundation
- About 15 min
- 5 practice questions
The Ghaznavid invasions and Mahmud of Ghazni
Explain why the 11th and 12th centuries were a turning point, describe how Mahmud of Ghazni defeated the Hindu Shahis and raided north India, and weigh the evidence on his motives.
If something looks wrong, please tell us.
By the end of this lesson you can
- Explain why control of the Khyber Pass mattered and how the Hindu Shahis resisted invaders.
- Describe Mahmud of Ghazni's campaigns in India and their effects.
- Use contemporary sources to discuss the reasons historians give for his raids.
In the last chapter, Arab attempts to conquer north India had little lasting effect. The 11th and 12th centuries tell a different story: Turkic powers from Central Asia and Afghanistan pushed much deeper into north India, despite stubborn resistance. At the same time, many Indian kingdoms flourished, built great monuments and sent fleets abroad. This chapter, called 'Turning Tides', looks at both sides.
The textbook offers a word of caution: history often records war and destruction more than peace and creativity. It is better to face such darker periods honestly to understand how they happened, while remembering that it would be wrong to hold anyone living today responsible for events of the past.
The Hindu Shahis and the Khyber Pass
In the 9th and 10th centuries, a powerful dynasty called the Hindu Shahis ruled from present-day Afghanistan and northern Pakistan to Punjab. With help from other Indian rulers, they resisted several invasions. Their resistance mattered because they controlled the Khyber Pass, one of the main passes through the Hindu Kush mountains. For at least 2,500 years it was a trade route linking India to Central Asia, used by merchants and Buddhist monks, and also the path many invaders took into the subcontinent.
Mahmud of Ghazni
The Ghaznavids, a Turkic power with their capital at Ghazna (Ghazni in Afghanistan), finally overran the Shahis. Their ruler Mahmud defeated King Jayapala and then, in 1008, his son Anandapala, after a long battle in northern Punjab, even though several north Indian rulers had sent help. This opened the way to the Indus plains. Mahmud took the title sultan, an Arabic word meaning authority or power, which came to mean a sovereign ruler.
In all, Mahmud led 17 campaigns into India, returning to Ghazni each time with huge booty. He met strong resistance, for example from the Chandellas of central India, and was nearly defeated a few times, but his large army's rapid marches and mounted archers usually won. In 1018 he reached Mathura, a very wealthy city whose magnificent temple his own court historian al-Utbi said no writer or painter could describe; Mahmud destroyed and plundered it, then surprised one of the last Pratihara rulers at Kannauj and destroyed temples there. In 1026 he attacked Somnath, a busy port in Saurashtra; despite strong local resistance and heavy losses he destroyed the Somanatha Shiva temple and seized its treasure. The temple was rebuilt and destroyed several times in later centuries; the present temple was built in 1950.
Mahmud died in Ghazni in 1030. Around then his nephew Salar Masud attacked the Gangetic region; according to oral history and a later chronicle, he was defeated and killed at Bahraich by the local ruler Suheldev. The textbook records that Mahmud's campaigns brought not only plunder but also the killing of many civilians and the capture of prisoners, including children, who were sold in Central Asian slave markets.
Mahmud of Ghazni's campaigns: key steps
- Defeats Jayapala The Hindu Shahi king is overcome.
- 1008 Defeats Anandapala in northern Punjab; the Indus plains lie open.
- 1018 Plunders Mathura, then Kannauj.
- 1026 Destroys and plunders the Somanatha temple.
- 1030 Mahmud dies in Ghazni.
Why did Mahmud raid India?
Mahmud never tried to set up permanent rule in India beyond Punjab, so historians have debated his motives. Many point to plunder: big temples held wealth gathered from devotees' offerings over centuries. Contemporary writers also show that Mahmud wanted to spread his version of Islam: his historian al-Utbi praised him for destroying temples and building mosques, and al-Biruni recorded that part of the Somnath image was taken to Ghazni and placed at a mosque door. Most historians therefore see both motives at work.
Turkic: describing peoples, languages and cultures historically linked with a vast region stretching across Central Asia to Turkey and Siberia.
Worked example 1: reading a source
Source: al-Biruni, who travelled with Mahmud, wrote that the Hindu Shahis, in all their greatness, never stopped wishing to do what was good and right, and were noble in feeling and bearing. Question: why is this remark striking? Reasoning: al-Biruni belonged to the conqueror's side, yet he praised the defeated dynasty. A writer has little reason to flatter a defeated enemy. Conclusion: the remark is strong evidence that the Shahis were respected rulers.
Worked example 2: using a map in words
Question: why did defeating Anandapala in northern Punjab matter so much? Reasoning: the Shahis guarded the Khyber Pass and the route down to the Indus. Once their power was broken, no strong kingdom blocked the way from Afghanistan into the plains. Conclusion: Mahmud gained easy access to the Indus plains and beyond, which made his later raids on Mathura, Kannauj and Somnath possible.
Key takeaways: The Hindu Shahis guarded the Khyber Pass and resisted invaders until Mahmud of Ghazni defeated Jayapala and Anandapala (1008). Mahmud led 17 campaigns, plundering Mathura (1018), Kannauj and Somnath (1026), but did not rule beyond Punjab. Sources suggest both plunder and religious aims. Indian rulers such as the Chandellas and Suheldev resisted.
Check your understanding
-
1. Why was control of the Khyber Pass important?
- It was the only route to Sri Lanka
- It was a main pass through the Hindu Kush, used by traders and invaders to reach the subcontinent
- It was a sea route to China
- It led only to Tibet
Show answer
Answer: B. The Khyber Pass is one of the main passes through the Hindu Kush; for centuries traders, monks and invaders used it to enter the subcontinent, so whoever held it could block or open the way.
-
2. Which dynasty did Mahmud of Ghazni overthrow to gain access to the Indus plains?
- The Chandellas
- The Paramaras
- The Hindu Shahis
- The Cholas
Show answer
Answer: C. Mahmud defeated the Hindu Shahi kings Jayapala and then Anandapala (1008), which opened the Indus plains to him.
-
3. How many campaigns did Mahmud lead into India according to the chapter?
- 17
- 7
- 3
- 27
Show answer
Answer: A. Mahmud conducted 17 campaigns in India, returning to Ghazni each time with booty.
-
4. Which local ruler, according to oral history and a later chronicle, defeated Salar Masud at Bahraich?
- Anandapala
- Jayapala
- Bhoja
- Suheldev
Show answer
Answer: D. According to oral history and a 17th-century chronicle, Suheldev resisted Salar Masud at Bahraich, where Masud fell in battle.
-
5. Assertion (A): Historians think Mahmud's raids had more than one motive. Reason (R): Temples held great wealth, and his own historian praised him for destroying temples and building mosques.
- Both A and R are true, and R explains A
- Both A and R are true, but R does not explain A
- A is true but R is false
- A is false but R is true
Show answer
Answer: A. Temple wealth points to plunder, and al-Utbi's praise points to a religious aim; together they explain why historians see more than one motive. R explains A.
Sign in to keep track of the lessons you finish.