GENERAL AWARENESS · MEDIEVAL INDIA SERIES

Mahmud of Ghazni, Muhammad Ghori and the Battles of Tarain

From the Arab conquest of Sindh to Mahmud's raids for treasure and Ghori's war for Delhi — and why the Indian kingdoms lost.

Punjab PolicePSSSBSSC6 MIN READEnglishਪੰਜਾਬੀ

The first arrival: the Arabs in Sindh (712). Long before the Turks, the Arabs reached India by sea and land. In 712 a young general, Muhammad bin Qasim, sent by Hajjaj bin Yusuf, the Umayyad governor of Iraq, captured the port of Debal and defeated and killed Raja Dahir, king of Sindh. Multan fell soon after. The Arabs ruled Sindh and Multan for a long time but could go no further: the Gurjara-Pratiharas in the north and the Chalukyas in the west held them back. The story of the conquest is told in the Chachnama, a Persian history written in the 13th century.

Map of the Ghaznavid empire centred on Ghazni and reaching into Punjab
The Ghaznavid empire — ruled from Ghazni (Afghanistan), it reached into Punjab, from where Mahmud raided deeper into India. Fig. 1

The Ghaznavids. In the 10th century a Turkish slave-commander, Alptigin, set up a kingdom at Ghazni in Afghanistan. His successor Sabuktigin fought the Hindu Shahi kings, who ruled from Waihind (near Peshawar) and guarded India's north-west gateway.

Mahmud of Ghazni (998–1030) was Sabuktigin's son and the first ruler to use the title Sultan. The Abbasid Caliph honoured him with the title Yamin-ud-Daula ('right hand of the state'). Mahmud was a raider, not a settler: he invaded India about 17 times between 1000 and 1027, mainly to carry off the treasure stored in rich temples and cities, which paid for his wars in Central Asia. The raids the exam asks about:

Medieval painting of a crowned ruler in a patterned robe
Mahmud of Ghazni putting on a robe of honour sent by the Caliph — a painting from Rashid al-Din's Jami al-Tawarikh, about 300 years after his time. Fig. 2
  • 1001 — near Peshawar, defeated the Hindu Shahi king Jayapala, who later burned himself to death out of shame.
  • 1008–09 — defeated Jayapala's son Anandapala in a great battle near Waihind.
  • 1009 — sacked the temple-fort of Nagarkot (Kangra).
  • 1014 — raided Thanesar.
  • 1018 — sacked Mathura and Kannauj, the old imperial city of the Pratiharas.
  • 1025 — his most famous raid, on the Somnath temple in Gujarat, ruled then by the Chalukya (Solanki) king Bhima I.
Two sides of a small dark coin with a lion on one side and an elephant on the other
A coin of the Hindu Shahi kings (Samanta Deva type) — the dynasty of Jayapala and Anandapala, who fought Sabuktigin and Mahmud. Fig. 3

Mahmud kept only Punjab, ruled from Lahore — so when the next invaders came, Punjab was already in Turkish hands.

Brightly lit temple at night with crowds in front
The Somnath temple, Gujarat, as rebuilt after Independence and opened in 1951. Mahmud raided the old temple here in 1025. Fig. 4

Scholars at Mahmud's court. Mahmud plundered India, but he also gathered famous scholars at Ghazni:

Colourful Persian court painting with a poet before the king
The poet Firdausi reading from the Shahnama before Sultan Mahmud — a Persian painting made about 500 years later (Tabriz, c. 1525). Fig. 5
  • Firdausi — the Persian poet who completed the great epic Shahnama ('Book of Kings'); legend says Mahmud underpaid him.
  • Al-Biruni — a scientist from Khwarizm who came to India with Mahmud's armies, learned Sanskrit, and wrote Kitab-ul-Hind (also called Tahqiq-i-Hind), in Arabic — a careful, respectful study of Indian astronomy, mathematics, religion, philosophy and customs. He complained that Indians of his time were unwilling to share their knowledge with outsiders.
  • Utbi — wrote Tarikh-i-Yamini, a history of Sabuktigin and Mahmud (named after Mahmud's title Yamin-ud-Daula).
  • Baihaqi — wrote a detailed history of the Ghaznavid court.
Early Persian painting of a ruler on a richly harnessed elephant with mounted soldiers, banners and a kneeling envoy
Mahmud of Ghazni riding an elephant while the Kara-Khanid ruler Ilig Khan submits — from Rashid al-Din's Jami al-Tawarikh, painted 1306–14. Mahmud took war elephants from India back to Central Asia. Fig. 6

Muhammad Ghori — the invader who came to stay. About 150 years after Mahmud, the Ghurids of Ghor in central Afghanistan overthrew the Ghaznavids. Mu'izz-ud-din Muhammad bin Sam, known in India as Muhammad Ghori, ruled from Ghazni (from 1173) while his elder brother ruled Ghor. Unlike Mahmud, he wanted to conquer and rule north India.

Image
Map of the Ghurid empire from Afghanistan across north India
The Ghurid empire of Muhammad Ghori, stretching from Ghor and Ghazni across north India to Bengal (after J. E. Schwartzberg's Historical Atlas of South Asia). Fig. 9
  • 1175 — took Multan, his first Indian conquest.
  • 1178 — tried to enter India through Gujarat but was defeated near Mount Abu (battle of Kasahrada) by the Solanki (Chalukya) army, fighting in the name of the boy-king Mularaja II and his mother Naikidevi. He turned to Punjab instead.
  • 1186 — took Lahore from the last Ghaznavid, Khusrau Malik, ending Ghaznavid rule in India.
  • 1189–91 — captured Tabarhindah (Bathinda), a frontier fort of Prithviraj Chauhan (Prithviraj III), king of Ajmer and Delhi.
An open old Persian manuscript with dense lines of script
A 14th-century Persian manuscript of Utbi's Tarikh-i-Yamini — the history of Sabuktigin and Mahmud. Fig. 10

The two battles of Tarain. Prithviraj marched out to recover Bathinda, and the two armies met at Tarain (today Taraori, near Karnal in Haryana).

Two tall brick towers standing on a dry plain
The towers of victory at Ghazni, Afghanistan, built by later Ghaznavid sultans in the 12th century. Fig. 11
  • First Battle of Tarain (1191) — the Rajput army won. Ghori was badly wounded in a clash with Govindaraja (the Tomara chief of Delhi, Prithviraj's ally) and was carried off the field. Prithviraj then besieged Bathinda but did not pursue the retreating Turks.
  • Second Battle of Tarain (1192) — Ghori returned with a large cavalry army. Instead of a head-on charge, he sent mounted archers in waves to harass the Rajput lines and pretended to retreat, then struck the tired army late in the day. The Rajputs were routed; Prithviraj was captured and soon put to death. Govindaraja died in the battle.
Old page with an ornate frame around a small photograph of a portrait painting, titled in Persian
Muhammad Ghori (Shihab-ud-din / Mu'izz-ud-din Muhammad bin Sam) as imagined in the 1881 album Tawarikh-i-Ghuri — a late portrait, not a likeness from life. Fig. 12

Tarain II is one of the turning points of Indian history: it opened the road to Delhi, which Ghori's general Qutb-ud-din Aibak took in 1193. The later Hindi epic Prithviraj Raso, credited to the court poet Chand Bardai, turned Prithviraj into a hero of legend — its romantic stories (such as his elopement with Jaichand's daughter Samyogita) are not reliable history.

Massive brick fort walls with a gateway and garden in front
Qila Mubarak, Bathinda (Punjab) — the old Tabarhindah fort that Ghori took from Prithviraj's kingdom before the First Battle of Tarain. Fig. 13

After Tarain. In 1194 Ghori defeated Jaichand (Jayachandra), the Gahadavala king of Kannauj and Varanasi, at Chandawar (near Etawah), and the Ganga valley lay open. His commander Bakhtiyar Khalji pushed east: around 1193–1200 his troops overran Bihar, destroying the great Buddhist monasteries of Odantapuri, Nalanda and Vikramashila; around 1204 he surprised the old Sena king Lakshmana Sena at Nadia in Bengal and set up his base at Lakhnauti. Bakhtiyar died in 1206 after a disastrous expedition towards Tibet.

A tall decorated brick minaret in a narrow mountain valley
The Minaret of Jam in Ghor, Afghanistan — built by the Ghurid dynasty, Ghori's family, in the late 12th century. UNESCO World Heritage Site. Fig. 14

In 1206 Ghori was murdered in his camp at Damyak on the Jhelum while returning from crushing a revolt of the Khokhars of Punjab; many books name the Khokhars as the killers, others name a group of Ismaili assassins. He left no son, and his Indian conquests passed to his slave-general Qutb-ud-din Aibak.

Two sides of a small green-brown coin showing a seated bull and a horseman with Nagari letters
A jital of Prithviraj Chauhan — a bull on one side, a horseman on the other, and his name 'Sri Prithvi Raja Deva' in Nagari script. Fig. 15

Why did the Indian kingdoms lose? Historians usually give these reasons:

Two sides of a gold coin, one with a horseman, the other with Nagari letters
A gold coin struck in Bengal by Bakhtiyar Khalji in Ghori's name, dated Samvat 1262 (1204 CE) — the horseman design and Nagari script were copied from Indian coins like Prithviraj's. Fig. 16
  1. Disunity. The Rajput kingdoms were rivals — the Chauhans, Gahadavalas, Chandelas and Solankis fought each other and rarely combined against the invaders. Prithviraj and Jaichand were bitter enemies.
  2. Cavalry and tactics. The Turks fought as fast-moving mounted archers on fine horses from Central Asia, used feigned retreats and attacked the flanks; Indian armies relied more on war elephants and foot soldiers, and on the courage of a head-on charge.
  3. Organisation. Turkish commanders led professional troops paid through the iqta system and bound by personal loyalty; Indian armies were often assembled from the levies of many chiefs.
  4. An open frontier. Once the Hindu Shahis fell (early 11th century), no strong kingdom guarded the north-west passes, and Punjab was already in Turkish hands when Ghori came.
Long ruined rubble-stone fort wall beside trees
Walls of Qila Rai Pithora, Delhi — the fort city of Prithviraj Chauhan (Rai Pithora), built around the older Tomara fort Lal Kot. Fig. 17
FROM RAIDS TO RULE
  1. 712
    Arabs conquer Sindh

    Muhammad bin Qasim defeats Raja Dahir

  2. 998
    Mahmud becomes ruler of Ghazni

    first ruler to use the title Sultan

  3. 1001
    Mahmud defeats Jayapala

    near Peshawar — first of about 17 raids

  4. 1008–09
    Mahmud defeats Anandapala

    battle near Waihind; Nagarkot sacked

  5. 1018
    Mathura and Kannauj sacked
  6. 1025
    Mahmud raids Somnath

    Gujarat

  7. 1175
    Muhammad Ghori takes Multan

    his first invasion

  8. 1178
    Ghori defeated at Kasahrada

    by the Solankis, near Mount Abu

  9. 1186
    Ghori takes Lahore

    end of Ghaznavid rule in Punjab

  10. 1191
    First Battle of Tarain

    Prithviraj Chauhan wins

  11. 1192
    Second Battle of Tarain

    Ghori wins; Prithviraj captured and killed

  12. 1194
    Battle of Chandawar

    Ghori defeats Jaichand of Kannauj

  13. c. 1204
    Bakhtiyar Khalji takes Nadia

    Bengal; base at Lakhnauti

  14. 1206
    Ghori murdered at Damyak

    Aibak takes over the Indian conquests

Mahmud of GhazniMuhammad Ghori
Years998–10301173–1206
AimPlunder temple treasure; fund Central Asian warsConquer and rule north India
RaidsAbout 17 (1000–1027)Several, 1175–1206
Big winsJayapala 1001, Anandapala 1008–09, Somnath 1025Lahore 1186, Tarain 1192, Chandawar 1194
DefeatsKashmir (Lohkot) raids failedKasahrada 1178, Tarain 1191
Kept in IndiaPunjab only (Lahore)Most of north India, left to Aibak
CourtFirdausi, Al-Biruni, Utbi—
Raider vs ruler — the comparison the exam keeps coming back to.
QUICK CHECK
TCS Question Bank — Which of the following Indian rulers was defeated by Mahmud Ghazni in his first attack in the year 1001 AD?
Tap an option to answer
QUICK CHECK
TCS Question Bank — The First Battle of Tarain was fought in the year ______.
Tap an option to answer
QUICK CHECK
TCS Question Bank — Muhammad Ghori attacked Tabarhinda (Bhatinda) in 1191, a strategic point for _____.
Tap an option to answer
Don't mix upRemember
Raider vs rulerMahmud of Ghazni raided and went home; Muhammad Ghori stayed and founded Turkish rule
Tarain winners1191 = Prithviraj; 1192 = Ghori. Tarain is near Karnal — not Panipat
Jayapala vs JaichandJayapala (Hindu Shahi) lost to Mahmud, 1001; Jaichand (Gahadavala, Kannauj) lost to Ghori at Chandawar, 1194
Al-Biruni vs FirdausiAl-Biruni = Kitab-ul-Hind, a book on India; Firdausi = Shahnama, a Persian poem — both at Mahmud's court
Ghori's first defeatKasahrada (1178), near Mount Abu, by the Solankis — before Tarain
First Sultan title vs first Sultan of DelhiMahmud first used the title 'Sultan'; Aibak was the first Sultan of Delhi (1206)
Exam traps for this section.

Image credits for the figures on this page

Frequently Asked Questions

Who won the two Battles of Tarain?

Prithviraj Chauhan won the first (1191); Muhammad Ghori won the second (1192), which opened north India to Turkish rule.

How many times did Mahmud of Ghazni invade India?

About 17 times, between 1000 and 1027. He was a raider, not a settler: he came mainly to carry off temple and city treasure, including Somnath in 1025.

More in Indian History

← All Indian History notes