MGU History Series · Library Textbook Edition · Volume II — Early Medieval and Sultanate South Asia
Part VIII — Islamic Frontiers and the Delhi Sultanate
39

Ghaznavids, Ghurids, and the Transformation of North India

Indian History: South Asia from the Indus Civilization to the Present

Chapter Opening

In the early eleventh century, a ruler seated in a mountain city in what is now eastern Afghanistan commanded armies drawn from Turkic, Persian, Afghan, Arab, and Indian communities, patronized poets who wrote in Persian, hosted scholars who studied astronomy and Sanskrit, and sent expeditions across the passes toward the plains of the Punjab and beyond. His name was Mahmud, his capital was Ghazni, and for the better part of a millennium his campaigns have been remembered in South Asia in sharply different ways: as imperial statecraft, as plunder, as holy war, as a catastrophe for particular temples and cities, and as the opening scene of a long drama of invasion and resistance. The historian's task is to see what lies beneath these later memories.

Chapter 38 traced the arrival of Muslim merchants on the western coast, the Arab conquest of Sindh, and the formation of early Muslim communities in the Indus region and along the Indian Ocean shore. That story was largely one of commerce, frontier governance, and community formation at the southwestern edge of the subcontinent. This chapter turns northwest. The next great transformation did not grow automatically out of Arab Sindh. It arose instead from political changes in Afghanistan, eastern Iran, Khurasan, and Central Asia, where new dynasties built on Turkic military power and Persianate court culture came to look southeast across the Hindu Kush toward the Punjab and the Ganges plain.

The chapter's central argument is a comparison. The Ghaznavids and the Ghurids were both Central Asian-oriented Muslim dynasties that intervened in northern South Asia, but their interventions produced different results. Mahmud of Ghazni combined imperial warfare, revenue-seeking campaigns, dynastic competition, and religious legitimation, and he established durable Ghaznavid rule chiefly in the Punjab; his famous expeditions into the Ganges plain, Rajasthan, Gujarat, and the Himalayan foothills were not a conquest of northern India. About a century and a half later, the Ghurids under Muʿizz al-Din Muhammad ibn Sam, remembered as Muhammad of Ghor, pursued sustained territorial expansion across the Punjab and Ganges plain. They relied on commanders, military slaves, garrisons, revenue assignments, and accommodations with local powers. Their victories did not instantly create the Delhi Sultanate, but the military and political networks they established made a Delhi-centered successor state possible after Ghurid authority fragmented.

That comparison requires resisting a familiar simplification: the idea of a single, continuous series of "Muslim invasions" in which one undifferentiated force repeatedly struck an undifferentiated "Hindu India." The evidence does not support that picture. The Ghaznavids and Ghurids were rival dynasties with different origins, strategies, and interests, and the Ghurids destroyed the Ghaznavids before moving into northern India. The states they confronted, among them the Hindu Shahis, the Chahamanas, the Gahadavalas, the Chandellas, the Chaulukyas of Gujarat, and the Pratihara remnant at Kannauj, pursued their own regional interests and often fought one another. Religious identity mattered a great deal to rulers, chroniclers, and temple communities, but it was not the sole organizing principle of politics on either side.

The chapter also confronts difficult evidence and difficult memory. Many of our principal sources are Persian chronicles written at or near Muslim courts, often for patrons who wished to present their rulers as champions of Islam. Sanskrit inscriptions, Jain and regional narratives, coins, archaeological remains, and later epic traditions provide other perspectives, but they are fragmentary and sometimes much later. Few episodes illustrate the problem better than the Ghaznavid expedition to Somnath in 1025–26, which has been retold in colonial, nationalist, and communal narratives with details that cannot be traced to contemporary evidence. Section 39.9 examines that episode explicitly as an exercise in source criticism.

The chapter is organized in four movements. Sections 39.1 through 39.4 establish the Central Asian and frontier background: the post-Abbasid political world, the rise of Ghazni, and the Hindu Shahi kingdom that stood in its path. Sections 39.5 through 39.11 examine the Ghaznavid empire and its relationship to South Asia, including the motives for Mahmud's campaigns, the politics of temple targets, Somnath, the governance of the Punjab, and the Persianate culture of Ghazni. Sections 39.12 through 39.16 follow the rise of the Ghurids and the campaigns of Muʿizz al-Din Muhammad, culminating in Tarain and Chandawar. Sections 39.17 through 39.19 turn to the institutions through which conquest became governable territory, the crisis of succession after 1206, and a final synthesis.

The chapter ends at the formation of a political foundation, not at the mature Delhi Sultanate. Chapter 40 examines the early Delhi sultans, the consolidation of Delhi rule, the developed iqta system, and the Mamluk Sultanate as a state. This chapter's task is to explain how a Central Asian dynasty's conquests created the conditions from which such a state could emerge, without suggesting that the outcome was inevitable.

Learning Objectives

By the end of this chapter, students should be able to:

  1. Explain how political fragmentation in the eastern Islamic world and the rise of Turkic military elites produced the Ghaznavid state.
  2. Describe the Hindu Shahi kingdom and the political geography of the northwestern frontier as a political world in its own right, not merely as an obstacle to Ghazni.
  3. Analyze the multiple motives behind Mahmud of Ghazni's Indian campaigns and explain why single-cause explanations are inadequate.
  4. Distinguish among raids, punitive expeditions, tribute demands, and territorial annexation in the Ghaznavid record.
  5. Evaluate competing interpretations of temple attacks, using both Persian chronicle evidence and Sanskrit and archaeological evidence.
  6. Assess the Somnath episode of 1025–26 by separating near-contemporary evidence from later elaboration and memory.
  7. Explain why the Punjab became durable Ghaznavid territory while the Ganges plain did not.
  8. Interpret al-Biruni's relationship to Ghaznavid power and to Indian intellectual traditions without reducing him to a court historian.
  9. Compare Ghaznavid and Ghurid strategies of expansion and the institutions each relied on.
  10. Reconstruct the Battles of Tarain (1191 and 1192) and Chandawar (1194), distinguishing historical evidence from later epic tradition.
  11. Explain the military-slave institution and delegated command as political mechanisms rather than as plantation-style slavery.
  12. Evaluate why 1206 is a useful political threshold for the formation of Delhi rule while resisting the claim that a fully formed Sultanate appeared instantly.

Guiding Historical Questions

Questions for Historical Inquiry

  1. Why did the political center of Muslim expansion into South Asia shift from Sindh toward Afghanistan and Central Asia after the Arab conquest?
  2. What kinds of evidence allow historians to reconstruct Mahmud of Ghazni's campaigns, and whose perspectives do those sources represent or omit?
  3. How should historians weigh revenue, security, prestige, dynastic competition, and religious legitimation in explaining Ghaznavid expansion?
  4. Why did Punjab become durable Ghaznavid territory while campaigns farther east remained episodic?
  5. How have the Somnath episode and Mahmud's reputation been remembered differently by Persian chroniclers, regional communities, colonial historians, and modern nationalists?
  6. In what ways were Ghurid methods of expansion structurally different from Ghaznavid methods?
  7. What does the contrast between the two battles of Tarain reveal about the roles of command, organization, and political context in medieval warfare?
  8. How did commanders who began as military slaves become rulers and governors, and what does that suggest about political legitimacy in this world?
  9. Why did Ghurid conquests produce a Delhi-centered successor state only after Ghurid authority collapsed?
  10. How can historians treat a period so heavily shaped by later communal and nationalist memory with evidence-based precision?

Historical Context

By the late tenth century the political map of northwestern South Asia and its borderlands was complex. In the Punjab and the Indus plains, regional powers, local chiefs, and the Muslim rulers of Multan and Mansura coexisted with the remnants of earlier imperial systems. In the Ganges plain, the Gurjara-Pratihara kingdom centered on Kannauj, whose rise and decline Chapter 34 examined, had fragmented, leaving a landscape of competing houses. In Rajasthan, in central India, in Gujarat, and in the Himalayan foothills, the dynasties examined in Chapters 31, 34, 35, and 36 were consolidating regional states, building forts and temples, and fighting for resources and prestige. The northwest also remained a corridor: the Khyber and other passes had long carried merchants, soldiers, pilgrims, and migrants between the Indus basin and the lands of Afghanistan, Iran, and Central Asia.

To the west and north, the eastern Islamic world had undergone a transformation. The Abbasid caliphate, nominally supreme since the mid-eighth century, no longer governed its eastern provinces directly. Regional dynasties such as the Samanids, based in Bukhara and Khurasan, ruled in the caliph's name while building Persianate court cultures and recruiting Turkic military slaves in large numbers. These slave soldiers, trained and promoted within the armies of their masters, sometimes rose to command provinces. This was the political world in which the Ghaznavid state took shape, and Section 39.2 examines it in detail.

Historians studying this period rely on a mixture of evidence. Persian and Arabic chronicles, such as the works of al-ʿUtbi, Gardizi, Baihaqi, and, for the Ghurids, Hasan Nizami and Minhaj-i Siraj Juzjani, provide narrative accounts, though most were written for ruling patrons and some long after the events described. Al-Biruni's study of India, composed under Ghaznavid rule, provides a remarkable outside observer's account of Indian science, religion, and society. Sanskrit inscriptions and court poems document the regional states that Ghaznavid and Ghurid armies confronted. Coins, including bilingual issues minted in the Punjab, show how Ghaznavid rule presented itself locally. Architectural and archaeological remains at Ghazni, Lahore, Ajmer, and Delhi supplement the written record. Students should remember that the voices of villagers, artisans, merchants, and ordinary soldiers appear only rarely and indirectly.

This chapter builds directly on three earlier chapters and prepares for one later chapter. Chapter 38 owns Arab Sindh and early Islamization; Chapter 39 picks up Multan only as a political target. Chapter 35 owns Rajput state formation, political culture, and forts; Chapter 39 reactivates that material only as needed to understand Tarain and Ghurid expansion. Chapter 40 owns the mature early Sultanate. The present chapter ends where the foundations are laid.

Chronology Preview

Date or PeriodEvent or DevelopmentWhy It Matters
c. 962Alptigin, a Turkic commander formerly in Samanid service, establishes himself at GhazniOrigin of the political-military base from which the Ghaznavid dynasty would emerge (Section 39.3)
977–997Reign of Sabuktigin at Ghazni; conflict with the Hindu Shahi ruler JayapalaBegins sustained Ghaznavid pressure on the northwestern frontier (Sections 39.3–39.4)
998–1030Reign of Mahmud of GhazniThe Ghaznavid empire reaches its greatest extent; the Indian campaigns take place (Sections 39.5–39.9)
1001Mahmud defeats Jayapala near PeshawarOpens the sequence of Mahmud's campaigns against the Shahis and their successors (Section 39.7)
1018–19Campaigns toward Mathura and Kannauj in the Ganges–Yamuna regionDeepest and most spectacular raiding, but not conquest (Sections 39.7–39.8)
1025–26Expedition to Somnath on the Saurashtra coastSource-critical case study; later ideological importance (Section 39.9)
1020s onwardLahore and the Punjab brought under durable Ghaznavid governanceThe principal territorial addition to the Ghaznavid state in South Asia (Section 39.10)
1040Seljuq victory over the Ghaznavids at DandanqanGhaznavids lose Khurasan; their center of gravity shifts toward Ghazni and the Punjab (Section 39.12)
1150–51Ghurid ruler Ala al-Din Husayn sacks GhazniMarks the rise of Ghur as a rival to the Ghaznavids (Section 39.12)
1173–74Ghiyath al-Din Muhammad takes Ghazni and installs his brother Muʿizz al-Din as ruler there under his senior authorityProvides the base for Ghurid expansion toward South Asia (Sections 39.12–39.13)
1175–1186Muʿizz al-Din takes Multan and Uch, suffers a defeat in Gujarat, and captures Lahore in 1186Ends the Ghaznavid dynasty and brings Ghurid power to the Punjab (Section 39.13)
1191–1192First and Second Battles of Tarain against Prithviraj III ChahamanaDefeat and then decisive victory; opens the way to Delhi and the Ganges plain (Section 39.15)
1194Battle of Chandawar against Jayachandra Gahadavala (traditional date)Extends Ghurid power toward Kannauj and Varanasi (Section 39.16)
1206Death of Muʿizz al-Din Muhammad; contested succession among his commandersGhurid dominions fragment; Aibak at Lahore begins the Delhi-centered political foundation (Section 39.18)

Dates for Ghaznavid and Ghurid campaigns rest chiefly on Persian chronicles that sometimes differ among themselves. Where a date is conventional rather than certain, this chapter says so.

Major People, Groups, and Places

Reference — People, Groups & Places

Mahmud of Ghazni (r. 998–1030)
Ghaznavid ruler who built an imperial state from Ghazni, campaigned repeatedly in northwestern and northern South Asia, and incorporated the Punjab into his dominions.
Sabuktigin (r. 977–997)
Mahmud's father; a Turkic military commander who consolidated Ghazni and began conflict with the Hindu Shahis.
The Samanids
Persianate dynasty at Bukhara whose military slaves, including the founders of Ghazni, created the political system from which the Ghaznavids emerged.
The Hindu Shahis
Dynasty ruling in the Kabul valley, Gandhara, and the western Punjab; resisted Ghazni until its defeat in the early eleventh century.
Jayapala and Anandapala
Successive Shahi rulers who confronted Sabuktigin and Mahmud.
Al-Biruni (973–after 1048)
Scholar from Khwarazm who studied Indian astronomy, philosophy, and religion; author of an extensive account of India.
Lahore
Principal Ghaznavid city in the Punjab and later last refuge of the dynasty.
Somnath
Temple on the Saurashtra coast, attacked in 1025–26; subject of extensive later memory.
The Ghurids (Shansabanis)
Dynasty from the highlands of Ghur in central Afghanistan that overthrew the Ghaznavids and expanded into northern India.
Ghiyath al-Din Muhammad and Muʿizz al-Din Muhammad ibn Sam
Ghurid brothers who shared rule; the latter, Muhammad of Ghor, led the Indian campaigns.
Prithviraj III (Chahamana)
Ruler of Sakambhari and Ajmer who defeated the Ghurids at the First Battle of Tarain and lost the second.
Jayachandra (Gahadavala)
Ruler of the Kannauj–Varanasi region defeated at Chandawar.
Qutb al-Din Aibak
Turkic military slave and Ghurid commander who administered Ghurid conquests in India and acted as the leading figure at Lahore and Delhi after 1206.
Tarain
Battlefield in the region north of Delhi where the Ghurids were defeated (1191) and then victorious (1192).
Delhi and Ajmer
Strategic centers taken by the Ghurids after Tarain.
Hasan Nizami and Minhaj-i Siraj Juzjani
Persian chroniclers of Ghurid conquest and early Delhi rule.

Core Vocabulary Preview

The following terms appear throughout the chapter. Students should understand each before proceeding.

GhulamMamlukPersianateGhaziGhaza Abbasid caliphateSamanidsKhurasanTransoxianaHindu Shahis IqtaTributeBootyGarrisonDelegated command ChahamanaGahadavalaIsmailiChronicleSource criticism Bilingual coinagePanegyricSuccession crisis
Section 39.1

From Sindh to the Central Asian Frontier: A New Political World

The Arab conquest of Sindh in the early eighth century, examined in Chapter 38, was in one sense a frontier of the Umayyad caliphate pushed to the lower Indus. But it did not become the beginning of a continuous eastward advance. For roughly three centuries after Muhammad ibn Qasim, Muslim rule in the subcontinent remained a regional phenomenon concentrated in Sindh and Multan, where local Arab dynasties ruled from Mansura and Multan with considerable independence from Baghdad, while Muslim merchant communities settled in ports along the western coast. Indian rulers, for their part, did not experience these small states as an existential threat. The great regional powers of the period, the Pratiharas, Palas, and Rashtrakutas examined in Chapters 31 and 34, fought one another, not the rulers of Multan.

What changed in the late tenth century was not the strength of the Sindh frontier but the arrival of a different kind of political actor from the northwest. The new actors came not along the coast from Arabia but down the passes from Afghanistan, with military and administrative traditions shaped by Turkic cavalry warfare, Persianate bureaucracy, and the competitive politics of the eastern Islamic world. Their base lay in the highlands and valleys of eastern Afghanistan, in cities such as Ghazni and, later, Firuzkoh in Ghur, not in the lower Indus.

This shift matters because it changes the questions historians ask. A narrative that treats all Muslim presence in South Asia as a single stream, flowing from Muhammad ibn Qasim to Mahmud of Ghazni to Muhammad of Ghor to the Delhi Sultanate, misses the real discontinuities. The Arab governors of Sindh were not the ancestors of the Ghaznavids in any institutional sense, and the Ghaznavids and Ghurids were rivals, not partners. Understanding the Ghaznavid and Ghurid interventions therefore means looking first at the world to the northwest: at Khurasan, at the Samanid and Turkic military system, and at the geography of the passes through which armies and traders moved.

It also means recognizing that the northwestern frontier was not an empty threshold. The Kabul valley, Gandhara, and the Punjab were inhabited by organized political societies with their own rulers, forts, temples, monasteries, and trading communities. Section 39.4 turns to them directly. The point of this opening section is to establish the chapter's orientation: the story that follows begins in Central Asia and Afghanistan, and it reaches South Asia as one dimension of a larger dynastic and imperial history.

Section 39.2

The Collapse of Abbasid Political Unity and the Rise of Regional Dynasties

In the eighth century the Abbasid caliphs governed from Baghdad a vast territory stretching from North Africa to the borders of Central Asia. By the ninth and tenth centuries, however, direct caliphal control over distant provinces had weakened. Governors established hereditary dynasties; local rulers accepted the caliph's name on coins and in Friday sermons while governing independently; and rival claimants, among them Shia dynasties in Iran and Iraq and the Fatimid caliphate in Egypt, competed for religious and political authority. The result was not a collapse of Islamic civilization but its political fragmentation into a plural system of regional states sharing language, law, scholarship, and trade networks.

In the east, the most important of these states was the Samanid dynasty, which governed Transoxiana and Khurasan from Bukhara from the late ninth century. The Samanids were Persian in culture and patronized the revival of Persian as a literary language alongside Arabic. Their court sponsored poets, historians, physicians, and scientists, and their cities, including Bukhara, Samarqand, Nishapur, and Balkh, were prosperous centers of trade along routes linking China, Central Asia, Iran, and the Mediterranean. Persian prose and verse flourished, and many features of the later Persianate court culture of South Asia trace their origins to this eastern Iranian milieu.

The Samanids also relied on a particular military system. Their armies included large contingents of Turkic soldiers, many of them acquired as boys through warfare or trade on the Central Asian steppe frontier, then trained, converted to Islam, and promoted within the army. Such soldiers, known as ghulams, owed their position to their patron and were often more reliable than local aristocratic levies. Over time, ghulam commanders accumulated wealth, land assignments, and personal followings, and in periods of dynastic weakness they could become kingmakers or founders of states. The Ghaznavid dynasty would be one such creation, and Section 39.17 examines the same institution in its Ghurid and early Delhi forms.

The region also faced pressure from the steppe. In the late tenth century the Qarakhanids, a Turkic confederation that had accepted Islam, expanded into Transoxiana and challenged the Samanids, while later in the eleventh century the Seljuq Turks, another Turkic group, moved into Khurasan and Iran. The Ghaznavids rose in the interstices of this competition, and their eventual defeat by the Seljuqs would help redirect their energies toward the Punjab, a connection taken up in Section 39.12.

Historical Vocabulary
Persianate

Persianate describes cultures, courts, and institutions shaped by the Persian language and the literary, administrative, and artistic traditions associated with it, whether or not the people involved were ethnically Persian. Ghaznavid and Ghurid rulers were Turkic or Ghurid in origin, yet their courts used Persian for literature, administration, and chronicle-writing.

The term matters here because it explains how the Ghaznavid court at Ghazni, a Turkic military regime in a Persian cultural setting, would transmit Persian bureaucratic and literary models into South Asia. Historians use "Persianate" rather than "Persian" or "Islamic" to avoid conflating language, ethnicity, and religion.

Section 39.3

Alptigin, Sabuktigin, and the Rise of Ghazni

The origins of the Ghaznavid dynasty lie in the Samanid military system. Alptigin, a Turkic commander in Samanid service who rose to a senior post in Khurasan, became entangled in a succession dispute at Bukhara in the early 960s. Having backed the losing candidate, he withdrew to the eastern Afghan highlands and established himself at Ghazni around 962. He died the following year, but his small power base survived under a succession of former lieutenants.

The decisive figure was Sabuktigin, a Turkic ghulam of Alptigin's household who emerged from this succession as ruler of Ghazni in 977. Persian sources describe him as an able and ambitious commander who consolidated authority in the surrounding region, extended his control over parts of eastern Afghanistan, and recognized the nominal overlordship of the Samanids while acting largely independently. His power rested on a cavalry army composed of Turkic ghulams and other troops, supported by revenues from agricultural valleys, trade routes, and tribute.

Ghazni itself occupied a strategic location. Lying on the high plateau of eastern Afghanistan on a route connecting Kabul, Kandahar, and the Iranian plateau, it controlled passes toward the Indus basin. From Ghazni, an army could descend via Kabul, the Khyber route, or the Gomal and Bolan passes onto the plains. For a ruler seeking resources, status, and security beyond what the Afghan highlands could provide, the lowlands of the Indus and Punjab were an obvious direction.

Persian chroniclers record that Sabuktigin conducted campaigns against the Hindu Shahi ruler Jayapala beginning in the late 980s. The sources suggest that Sabuktigin took a number of forts in the region between Ghazni and the Kabul valley and defeated an alliance that Jayapala assembled. The extent of Ghaznavid territorial gain from these wars is not entirely clear in the sources. What is clear is that by Sabuktigin's death in 997, Ghaznavid power had pushed against the Shahi frontier and that his son would inherit a hardened rivalry. In the same period Sabuktigin supported the Samanids against the Qarakhanids, an involvement that helped him secure recognition and resources and also drew Ghazni more deeply into the politics of Khurasan.

Section 39.4

The Hindu Shahis and the Northwestern Frontier

The Hindu Shahis are often introduced only as the first victims of Ghazni, and the result is a distorted view of them. In fact they were the heirs of a long-lived northwestern dynasty. Earlier rulers known as the Turk Shahis had governed the Kabul valley and Gandhara from the seventh and eighth centuries; around the ninth century a dynasty traditionally called the Hindu Shahis took over, and by the late ninth century its capital had moved from Kabul toward the Indus at Udabhandapura, known in Muslim sources as Waihind or Hund. The Shahi kingdom thus bridged the Afghan highlands and the Punjab, controlling key routes and revenue from agricultural valleys, trade, and tribute from neighboring chiefs.

The kingdom's religious and cultural world was plural. Its territory had been a center of Buddhist institutions in earlier centuries, as Chapters 20 and 21 showed for Gandhara, and by the ninth and tenth centuries it included Shaiva, Vaishnava, and Buddhist patronage alongside Muslim merchant and soldier communities. Shahi coinage and inscriptions show rulers participating in the political culture of the wider Indian world, including the practice of making donations and building temples. Jayapala, who ruled in the late tenth century, controlled a kingdom of real resources; Persian sources describe his armies as substantial and credit him with assembling allies from neighboring Indian rulers against Sabuktigin.

Geography shaped the conflict. The route from Ghazni to the Indus plain ran through narrow valleys and passes, with forts commanding key points. Control of Kabul, Peshawar, the Khyber and adjoining routes, and the crossing of the Indus at Waihind meant control over movement between the Afghan highlands and the Punjab. A Shahi defeat in this zone exposed the whole western Punjab to attack, and the Shahis understood this. Their struggle against Ghazni was therefore a defense of a political order they had built, not merely a religious confrontation.

After Jayapala's defeat by Mahmud in 1001, Persian sources record that he abdicated and died, in the account later chronicles repeated, by self-immolation. His son Anandapala continued the struggle, reportedly assembling a coalition of Indian rulers against Mahmud, but the Shahi kingdom was progressively reduced. Later Shahi princes retreated to the Salt Range and the Punjab hills. By the 1020s the dynasty had effectively lost its capacity to block the passes. Its fall opened the Punjab to Ghaznavid power, the first step in a process examined in Sections 39.7 and 39.10.

Map Study

Ghazni to the Punjab and Ganges Plain: Routes of Expansion

Using a physical and political map of Afghanistan, the Punjab, and northern India c. 1000–1200, students should locate and identify:

  • Ghazni, Kabul, Peshawar, and the Khyber route
  • The Indus crossing at Waihind (Udabhandapura) and the Salt Range
  • Multan, Uch, and the Sindh frontier examined in Chapter 38
  • Lahore and the rivers of the Punjab
  • Thanesar, Tarain, Delhi, Mathura, Kannauj, and the Ganges–Yamuna region
  • Nagarkot (Kangra) in the Himalayan foothills
  • Ajmer, Ranthambore, Gwalior, and the principal Rajput forts
  • Somnath on the Saurashtra coast and the desert route returning through Sindh
  • Firuzkoh and the highlands of Ghur in central Afghanistan

Map Analysis Questions:

  1. Which geographic features made the Punjab easier for a Ghazni-based ruler to hold than the Ganges plain?
  2. Why might Mahmud's deepest campaigns have been raids rather than annexations, given the distance from Ghazni?
  3. How does the location of Tarain and Delhi relate to routes between Lahore and the Ganges plain?
  4. Why is it historically misleading to draw modern national borders on a map of these campaigns?
Section 39.5

Mahmud of Ghazni and the Making of an Empire

When Sabuktigin died in 997, he reportedly designated his younger son Ismaʿil as heir, but Mahmud, who had commanded forces in Khurasan, challenged the succession. Within about a year Mahmud had defeated his brother and taken the throne at Ghazni. Succession through force among brothers was normal in this political world, and Mahmud's early reign shows his determination to secure his base before turning outward.

Mahmud's first great task was to define his relationship to the declining Samanids. Their dynasty was collapsing under Qarakhanid pressure, and by 999 Bukhara had fallen. Mahmud, who had already received recognition from the Abbasid caliph al-Qadir in Baghdad, together with honorific titles asserting his role as a defender of the caliphate's order, arranged an understanding with the Qarakhanid ruler under which the Oxus formed a rough boundary between their spheres. In effect he inherited Khurasan and the Samanid lands south of the river. Caliphal recognition mattered not because Baghdad could enforce anything, but because it gave Mahmud religious legitimacy in competition with other dynasties and answered rival claims, including those of Shia powers.

Over the next two decades Mahmud's armies extended Ghaznavid rule across eastern Iran, into Khwarazm, and into parts of the Iranian plateau. His empire at its height spanned much of Afghanistan, eastern Iran, Khurasan, the Punjab, and Sindh frontier regions, one of the largest states of the eastern Islamic world. It was held together by a professional army of Turkic ghulams, Afghan and Indian troops, and a Persian-trained bureaucracy that collected revenue, issued coinage, and managed correspondence. Ghazni, enriched by plunder and trade, became a showcase capital with palaces, gardens, mosques, and a court that sheltered poets, historians, and scholars.

Mahmud's regime also depended on constant campaigning. A ghulam-based army required pay, plunder, and promotion, and a ruler who could not deliver them risked rebellion. Conflicts with the Qarakhanids, campaigns against Shia and Ismaili rulers in Iran and Multan, and expeditions against Hindu rulers all supplied wealth, prestige, and opportunities for military reward. When we turn to the Indian campaigns in the next sections, we should therefore view them as part of this larger imperial system and not as a separate religious mission or a single geopolitical project.

Section 39.6

Why Did Mahmud Campaign in India?

The question of motive has dominated modern writing about Mahmud, and it has produced competing single-cause explanations. Some writers, drawing on Persian chronicles that celebrate the ruler as a champion of Islam, have emphasized religious zeal. Others, noting the enormous quantities of plunder recorded, have emphasized economic motives. A more convincing account recognizes that several motives operated together and that different campaigns may have had different emphases.

Revenue and booty. The Ghaznavid army and court needed resources, and the plains of the Punjab and the temple towns of the Ganges plain held coined and uncoined wealth that Ghaznavid armies could carry back. Persian chroniclers repeatedly record the quantities of gold, silver, jewels, elephants, and captives taken, and Ghazni's monumental building programs and patronage were in part financed this way. Elephants in particular were militarily valuable, and Indian war elephants became an important component of Ghaznavid armies.

Frontier security. Shahi power controlled the passes between Ghazni and the Indus plain. A ruler who sought to hold his Afghan base safely, protect trade, and keep the plains from becoming a refuge for rivals had reason to subordinate or destroy the Shahis. Campaigns against Multan likewise addressed a regional power connected, through its Ismaili ruling community, to the Fatimid rivals of the Abbasid caliphate whom Mahmud claimed to oppose.

Dynastic expansion and prestige. Warfare against distant, wealthy, non-Muslim rulers brought fame, validated command, and rewarded military followers. Chroniclers such as al-ʿUtbi, writing for the Ghaznavid court, shaped these campaigns into narratives of heroic achievement, and the sense of dynastic glory was an important political resource in a competitive world.

Religious legitimation. Persian sources frame the campaigns in the vocabulary of holy war, and the caliph's recognition and titles supported this framing. Rhetoric of this kind should not be erased: it shaped how rulers, chroniclers, and audiences understood the campaigns, and it appears in inscriptions and coinage. But it was also a language of political justification suited to the expectations of a Muslim ruling elite and the caliphal court, and a chronicle's claim to piety is not a complete explanation of strategy. Mahmud also campaigned against Muslim rivals, including Shia and Ismaili rulers and fellow Sunni Qarakhanids, so religion alone cannot account for who became a target.

This section therefore rejects a one-cause explanation. Revenue, security, prestige, dynastic competition, and religious legitimation operated together, and the relative weight of each varied by campaign and by audience.

Historical Vocabulary
Ghazi and Ghaza

Ghaza (Arabic ghazw) originally meant a raid, and in Islamic frontier tradition it came to mean armed struggle against non-Muslim neighbors, with religious merit attached. A ghazi was a participant in such warfare. Persian chroniclers often applied the term to Ghaznavid and Ghurid rulers and warriors.

The vocabulary shows how rulers and chroniclers presented campaigns, not necessarily what motivated every soldier or what every campaign accomplished. Historians treat it as an important part of the evidence while also asking what political, economic, and dynastic purposes it served.

Section 39.7

Mahmud's Indian Campaigns: Raiding, Warfare, and Political Strategy

Older textbooks often organize Mahmud's South Asian career as a series of "seventeen invasions." That number derives from a nineteenth-century compilation of the Persian record, and different campaign lists count differently depending on which expeditions are treated as distinct. This chapter therefore avoids treating the number as an organizing fact and instead sorts the campaigns by their character.

Campaigns against the Shahis and the frontier. Mahmud's earliest South Asian wars continued his father's conflict. In 1001 he defeated Jayapala near Peshawar. Later campaigns in 1004–05 moved against Bhatia (Bhera) in the Punjab, and in 1008–09 Mahmud defeated a coalition led by Anandapala in a major battle in the Waihind region. In 1009 he took the temple-fortress of Nagarkot in the Kangra hills, which Persian sources describe as holding great wealth. These campaigns brought the Shahi heartland and the western Punjab under Ghaznavid control or influence.

Campaigns against Multan and Muslim rulers. In 1005–06 Mahmud moved against the ruler of Multan, Abu'l-Fath Daud, a member of the Ismaili community, and incorporated the city into his sphere. This episode is a reminder that not all of Mahmud's South Asian wars were against non-Muslim rulers. It also shows how Ghaznavid expansion absorbed the regional Muslim polities examined in Chapter 38.

Deep raids into the Ganges plain and beyond. In 1014 Mahmud attacked Thanesar, a sacred center in the region north of Delhi. In 1018–19 he led a major expedition along the Yamuna to Mathura and Kannauj. Persian chroniclers describe the wealth of Mathura and its temples and report that the Pratihara ruler at Kannauj, Rajyapala, abandoned his capital without a major fight. Later campaigns, including expeditions in the early 1020s against the Chandellas of the Kalinjar region in Bundelkhand, brought tribute or plunder but not annexation. The deepest of these expeditions, Somnath in 1025–26, is the subject of Section 39.9.

These expeditions differed in kind. Some were raids aimed at seizing wealth and returning quickly. Others were punitive campaigns after a ruler had withheld tribute or sheltered an enemy. Some involved tribute demands and treaties that left rulers in place. Only some led to territorial annexation, and nearly all of that was in the Punjab and Shahi lands. A campaign into the Ganges plain, hundreds of kilometers from Ghazni across rivers and hostile territory, could not easily be converted into rule. Mahmud sought wealth and submission from many rulers, but he did not attempt to govern the Gangetic plain.

Strategy also exploited political divisions. Indian rulers did not form a single, permanent coalition against Ghazni. Anandapala's alliance in 1008–09 was exceptional, and in many cases regional rulers regarded events elsewhere as someone else's problem. Rival kingdoms could even use Ghaznavid pressure to their own advantage. This helps explain why a ruler with relatively limited forces and a distant base could succeed repeatedly against much larger states.

Multiple Perspectives

A Ghaznavid Campaign into the Ganges Plain: Reconstructed Perspectives

Note: these perspectives are analytical reconstructions based on the kinds of evidence discussed in this chapter, not quotations from named individuals.

The ruler and court at Ghazni: A successful campaign supplied wealth to pay troops and patrons, elephants for the army, and prestige in a competitive imperial system. The ruler's chroniclers presented the expedition as both a triumph of Islam and a demonstration of dynastic power. Failure or delay could threaten military loyalty.
A temple community in the path of the army: A temple was a religious center for worship and ritual, an institution holding land and movable wealth, a node of pilgrimage and local authority, and often a recipient of royal patronage. Its priests, servants, and dependent communities faced destruction, looting, death, or enslavement, and the loss could be not only religious but also economic and political.
A merchant or townsperson: Merchants and townspeople might see the army as a threat to property and trade, or as a force that could be bargained with. Some communities paid tribute or negotiated terms to spare their city. Muslim merchants and communities already living in the region could be affected differently from their neighbors.
A Turkic or Afghan soldier in the Ghaznavid army: The campaign offered pay, plunder, and promotion, together with exposure to disease, hardship, and the risk of battle. Soldiers of different backgrounds served under the same command, and Indian troops also served in Ghaznavid forces.
The court chronicler: Writers such as al-ʿUtbi shaped campaigns into literary narratives for patrons, emphasizing victory, piety, and the ruler's virtue. They preserve valuable detail but also shape what is remembered and what is omitted, including the perspective of the defeated.
Section 39.8

Temples, Wealth, and the Politics of Sacred Targets

Many of Mahmud's most famous expeditions targeted temples: Nagarkot, Thanesar, Mathura, and later Somnath. Understanding why requires first understanding what a major temple was in early medieval South Asia. As Chapter 37 showed, temples were not only places of worship. They were large institutions, often endowed by kings and elites with villages, revenue, and valuables; they stored wealth in the form of metal, jewels, and images; they sustained priests, craftspeople, dancers, and dependants; and they could serve as markers of royal legitimacy. Kings built and enriched temples to display and secure their power.

This meant that a temple could be a target for several overlapping reasons. As a repository of movable wealth, it offered plunder. As a symbol of a king's authority and divine favor, its capture or desecration could damage the king's standing. As a religious institution, its destruction could be framed by Persian chroniclers as a victory for Islam. And in an environment of competing rulers, the practice of seizing or relocating divine images as political trophies was not unique to Muslim rulers: Indian kings also, at times, captured and carried off images from rival kingdoms, as inscriptional and literary evidence indicates. Richard Eaton and other historians have argued that medieval Indian political culture included well-established patterns of royal temple desecration in the context of warfare, which Ghaznavid campaigns both fit into and altered through their religious rhetoric.

This comparison should not be turned into an excuse. To say that temples were political targets, or that Indian rulers also seized images, does not mean the Ghaznavid campaigns were not violent or that religious symbolism did not matter. Persian sources show clear awareness of the religious significance of temple attacks and sometimes present idol-breaking as a pious achievement. For temple communities, the destruction was experienced as a devastating religious and material loss. The historian's task is to hold these dimensions together: the attacks were political and economic acts, they carried religious meaning, and they harmed real communities.

It is equally important not to treat every Ghaznavid campaign as a campaign against "Hinduism" as a unified entity. Mahmud fought against Hindu kings, Muslim rulers, and non-Muslim communities in the Afghan highlands. He took Indian soldiers into his armies and minted coinage in the Punjab with Sanskrit legends. The concept of a unified religious bloc fighting on each side does not fit the evidence.

Historical Debate / Evidence Workshop

Why Did Mahmud Raid Temples?

The question: What explains the Ghaznavid attacks on temples: religious ideology, economic motives, imperial and political strategy, or some combination?

Interpretation A — Religious-ideological: Persian chroniclers frame temple destruction as an act of holy war and idol-breaking, and the caliphal titles and rhetoric of the Ghaznavid court support this framing. On this reading, religious motivation was central, and the campaigns were both expressions and instruments of an ideology of Islamic conquest.
Interpretation B — Political-economic: Temples were repositories of wealth and symbols of royal power, and attacking them was an efficient way to obtain resources and weaken rivals. On this reading, the religious language of the chronicles was a legitimating discourse, and the main drivers were revenue and political competition, in a context where Indian rulers also seized images.
Interpretation C — Imperial and cultural strategy: Some historians stress that sacred targets served the Ghaznavid court's need for reputation and legitimacy before multiple audiences: the caliphate, rival Muslim dynasties, and its own soldiers, who valued ghaza. In this reading, ideology, wealth, and prestige reinforced one another and cannot be cleanly separated.

Evidence: The sources include Persian chronicles written for Ghaznavid patrons, later Persian histories, Sanskrit and regional inscriptions that mention attacks on temples or the capture of images, archaeological evidence at damaged temple sites, and comparative evidence for temple desecration in intra-Indian warfare. Each type has limits: the Persian sources exaggerate numbers and emphasize piety, while the Indian evidence for the immediate aftermath of Ghaznavid raids is sparse.

Why it matters: The explanation affects how historians understand the relationship between religion and politics in medieval South Asia, and how later communal and nationalist narratives distort it. A purely religious account feeds one set of modern claims, a purely economic one another, and the evidence supports neither alone.

Student task: Choose one temple target discussed in this section. Identify which type of evidence would be most useful for distinguishing among Interpretations A, B, and C, and explain what that evidence could and could not show.

Section 39.9

Somnath, 1025–26: Event, Evidence, and Historical Memory

Somnath, on the coast of Saurashtra in Gujarat, was a major Shaiva temple center in the early eleventh century, located in a region ruled by the Chaulukya (Solanki) dynasty of Anahilavada. In late 1025 Mahmud led an army from Ghazni through Multan and across the Thar desert toward the coast, an arduous march recorded in Persian sources, and in early 1026 his forces attacked and took the temple. The expedition then returned by a different route through Sindh, where the army reportedly suffered losses from hostile forces and difficult terrain. That core sequence, an expedition from Ghazni, an attack on the temple at Somnath, and a hazardous return, is well supported.

Beyond that core, the evidence thins and later elaboration thickens. Near-contemporary Persian and Arabic accounts, including references in Gardizi's mid-eleventh-century history, attest to the attack and to the prominence of the temple's central object. Later chronicles, especially Arabic and Persian histories written in the thirteenth century and after, add details: enormous quantities of gold and treasure, the number of defenders killed, speeches by the ruler, miraculous episodes, and stories about the idol's interior. These additions cannot be traced to contemporary evidence and tend to grow with each retelling. Sanskrit and Jain sources from Gujarat, including later inscriptions recording the temple's rebuilding, show that the temple remained important and was restored by local patrons, but they say little about a catastrophic regional collapse.

Memory of the event was transformed over centuries. In Persian tradition Somnath became a paradigmatic act of Islamic heroism. In regional Sanskrit and Gujarati traditions it was a sorrowful but not final blow to a temple that continued to be rebuilt. In the nineteenth century a debate in the British House of Commons, linked to the so-called Gates of Somnath that the British Governor-General Lord Ellenborough ordered removed from Mahmud's tomb at Ghazni in 1842 in the belief that they were the original gates (they were later judged to be local Ghazni work and were taken only to Agra), helped convert Somnath into a political symbol in colonial discourse. In twentieth-century nationalist and communal narratives the episode became a founding grievance, and in modern political life the temple's reconstruction after independence became linked to arguments about history and national identity. Romila Thapar's study of Somnath, among others, shows how different communities have used the same episode to tell very different stories.

Evidence Workshop

Somnath: Near-Contemporary Evidence versus Later Memory

Evidence types: Persian and Arabic chronicles; Sanskrit and Jain inscriptions; later histories; colonial and modern writings

Task: Sort the claims below into three categories: (1) well supported by near-contemporary evidence; (2) first appearing in later sources; (3) a product of modern memory or political use.

Claims to classify: (a) Mahmud led an expedition to Somnath in 1025–26. (b) The expedition crossed the Thar desert and returned through Sindh with difficulty. (c) A precise number of defenders died. (d) The treasure taken amounted to a specific, enormous figure. (e) The temple was never rebuilt. (f) In 1842 British officials removed gates from Mahmud's tomb at Ghazni, believing them to be the lost gates of Somnath. (g) The event established a permanent pattern of Hindu–Muslim relations.

Analysis: Claims (a) and (b) belong in the first category. Claims (c) and (d) appear in elaborated form in later sources and should be treated cautiously. Claim (e) is contradicted by inscriptional evidence of rebuilding. Claim (f) illustrates nineteenth-century colonial mythmaking: the gates were local Ghazni woodwork, not from Somnath, and they were never returned there but taken to Agra, so the episode is not evidence about 1026. Claim (g) is an interpretive claim of modern political significance and cannot be derived from the sources.

  1. Why do later accounts tend to expand the numbers and drama of an event?
  2. What does the temple's repeated rebuilding suggest about how local communities responded?
  3. How can a historian describe the event responsibly without erasing either its violence or its limits?
Section 39.10

From Raiding to Rule: The Ghaznavid Punjab

The most durable consequence of Mahmud's South Asian career was not any single campaign but the incorporation of the Punjab into the Ghaznavid state. After the defeat of the Shahis and the campaign against Multan, Ghaznavid forces gradually established control over the western and central Punjab. By the 1020s Lahore had become the principal Ghaznavid city in South Asia, governed through officials appointed from Ghazni who commanded garrisons, collected revenue, and maintained order. This outcome is the strongest corrective to two opposite errors: treating Mahmud's campaigns as pure raiding with no lasting effect, and treating them as the conquest of all India.

Ghaznavid government in the Punjab combined imperial control with accommodation. Persian sources and coins indicate governors, military commanders, and revenue officials, as well as the use of local intermediaries to collect revenue and manage relations with rural communities. Some local elites, including Indian officers, served the regime. The Ghaznavid army in the later reigns included Indian contingents, and sources mention a Hindu commander named Tilak who rose to prominence under Mahmud's son Masʿud. Bilingual coinage struck at Lahore, with Arabic legends and Sanskrit legends in Indic script, shows a regime willing to present itself in both languages to the population it governed.

The Punjab's incorporation also reshaped regional society. Lahore became a Persian-speaking administrative and literary center, hosting poets, scholars, and religious figures. The city's later reputation as a cultural center, including the work of poets such as Masʿud Saʿd Salman in the late eleventh and early twelfth centuries, reflects this foundation. Sufi and other religious figures settled in the region, a subject developed in Chapter 44. At the same time, the Punjab remained a diverse region with Hindu, Buddhist, Jain, and Muslim communities, with older political structures persisting in the countryside, and with a continuing flow of people and ideas across the passes.

Under Mahmud's successors, Ghaznavid governors in the Punjab sometimes pushed beyond the frontier. A governor of Lahore under Masʿud led a raid as far as Varanasi in the 1030s, an example of the kind of deep raid that continued after Mahmud's death but did not produce rule. Later Ghaznavid campaigns continued episodically, including expeditions toward the Ganges plain and Rajasthan, but never established lasting control there. The Punjab was the territory the Ghaznavids could hold, supply, and administer from their base.

Cause and Effect

Why Punjab Became Durable Ghaznavid Territory

Long-term causes

Geographic continuity between the Afghan highlands and the Indus plains; long-established routes and trade; the weakness of local successor states after the decline of earlier imperial systems; a Ghaznavid military machine seeking revenue.

Short-term causes

Defeat of the Hindu Shahis; the incorporation of Multan; Mahmud's repeated campaigns; the need for a forward base for further expeditions.

Effect

Lahore became a Ghaznavid administrative center, governed by officials and garrisons, with revenue collection, coinage, and local intermediaries.

Long-term consequences

The Punjab became the refuge of the later Ghaznavids and the springboard for Ghurid conquest; a Persianate society took root in the region.

Historical complexity: Distance from Ghazni, the relative weakness of Punjab rulers, and the ease of supply made annexation feasible. Farther east, larger states, greater distances, and rivers made rule far harder. The outcome reflects logistics and politics, not the inherent strength of any religion or civilization.

Everyday Life and Social History

Living under Ghaznavid Authority in the Punjab

For most inhabitants of the Punjab, daily life continued to revolve around agriculture, herding, craft production, and local markets. Villagers paid revenue in grain or cash to whoever held authority, and the Ghaznavid fiscal system, like its predecessors, depended on cultivators and on intermediaries who knew the land. Towns such as Lahore, Multan, and others hosted merchants, artisans, soldiers, scribes, and religious specialists, and the arrival of a Persian-speaking administrative class added new layers to urban life.

Warfare affected communities unevenly. Villages and towns along the main routes experienced marching armies, requisitions, and the risks of plunder. Captives taken in campaigns, including women and children, could be enslaved and carried to Ghazni; Persian sources record large numbers of captives, though specific figures are unreliable. At the same time, some communities negotiated terms, and local intermediaries, merchants, and soldiers could benefit from new patronage. The experience of Ghaznavid power was thus plural and depended on place, status, occupation, and the moment.

Section 39.11

Ghazni as a Persianate Imperial Center

The wealth gathered in Mahmud's campaigns financed Ghazni's transformation into one of the major cultural centers of the eastern Islamic world. The court attracted poets writing in Persian and Arabic, historians, theologians, physicians, and scientists, some drawn voluntarily and some brought by force or pressure. The governing class included Persian administrators, many of whom ran the chancery and fiscal offices, working alongside the Turkic military elite. This was an administrative system that Persian bureaucratic tradition shaped and that later Sultanate states in Delhi would inherit.

Literary patronage is a defining feature of the Ghaznavid court. The poet Firdausi completed the Shahnama, the great Persian national epic, around 1010 and is traditionally said to have presented it to Mahmud; later legends about a quarrel over payment are probably elaborations and should not be treated as established. Court poets such as Unsuri and Farrukhi composed panegyrics praising the ruler, a genre that also tells us how the court wanted to be seen. Historians such as al-ʿUtbi, Gardizi, and, in the next reign, Baihaqi produced narratives that remain our best sources, with Baihaqi's history of Masʿud's reign especially valued for its detailed and sometimes critical account of court life.

Al-Biruni, born in 973 in Khwarazm, was a polymath who worked in astronomy, mathematics, geography, history, and comparative religion. After Mahmud conquered Khwarazm, he was taken to Ghazni, and he spent years there. He traveled in the Punjab, studied Sanskrit, and engaged with Indian scholars, producing around 1030 a comprehensive study of Indian religion, philosophy, science, geography, and customs. He should not be described simply as "Mahmud's court historian." His relationship to Ghaznavid power was complicated by his forced arrival, his critical remarks about the damage of the campaigns, and his independent intellectual agenda. His work is valuable precisely because it attempts to understand Indian traditions on their own terms, as the Primary Source Window below shows.

Ghazni's monuments, many of which were damaged or destroyed in the twelfth century, included palaces, mosques, and the minarets that survive in part. The city's wealth and culture show that the Ghaznavid state was not simply a raiding machine. It was an empire with administration, architecture, learning, and patronage, funded by revenue, trade, and plunder, and its political and cultural models would travel eastward with its Persianate successors.

Primary Source Window

Al-Biruni's Study of India

Source type: Arabic scholarly treatise (the Kitab Tahqiq ma li'l-Hind) · Author: Abu Rayhan al-Biruni · Date: c. 1030 · Place: Ghazni and the Punjab

Context: Al-Biruni was a scholar from Khwarazm who lived under Ghaznavid rule and had access to Sanskrit teachers and texts. His study of India surveys Indian religion, philosophy, astronomy, geography, social organization, and customs, comparing them to Greek, Iranian, and Islamic traditions.

Brief paraphrase: In the course of explaining why Indian learning was hard for outsiders to access, al-Biruni remarks that the prosperity of the country had been devastated by Mahmud's campaigns, that many Indians had been scattered, and that Indian scholars had withdrawn into regions beyond Ghaznavid reach. He also observes that Indians were suspicious of foreigners and reluctant to share their knowledge.

Analysis: The passage is valuable because it comes from a scholar embedded in Ghaznavid society who nonetheless describes the human costs of Ghaznavid campaigns. It also shows that cultural exchange occurred amid conflict, and that the climate of war made scholarly access harder. Its limits are that al-Biruni wrote as an outsider with a particular scholarly purpose, that he drew mainly on Brahmanical and learned traditions, and that he says less about peasants, artisans, or non-elite communities. It cannot tell us what every Indian community experienced or how Ghaznavid officials viewed the campaigns.

Questions for students:

  1. What does this source say about the effects of the campaigns on Indian intellectual life?
  2. Who created the source and for what possible purpose?
  3. What can historians learn about cross-cultural scholarship from it?
  4. What can historians not establish from this source alone?
Section 39.12

The Decline of Ghaznavid Power and the Rise of Ghur

Mahmud died in 1030. His son Masʿud, who succeeded after a brief struggle with a brother, inherited an empire with vulnerable frontiers. The Seljuq Turks, who had entered Khurasan and were attracting nomad support, challenged Ghaznavid authority there. In 1040, at Dandanqan, a Seljuq army decisively defeated Masʿud, and the Ghaznavids lost Khurasan and eastern Iran. Masʿud was deposed and killed shortly afterward. The dynasty survived, ruling from Ghazni and the Punjab under Masʿud's successors, but it was now a regional power in Afghanistan and northwestern South Asia rather than a great imperial state.

This loss redirected Ghaznavid attention. With the west closed by Seljuq power, the Punjab became more important as a source of revenue and as a refuge. Later Ghaznavid rulers, such as Ibrahim in the late eleventh century, maintained a relatively stable regime and continued raiding into northern India, and the Punjab remained a prosperous province. But the dynasty had lost the means to expand, and it was increasingly vulnerable to new rivals in the Afghan highlands.

That rival was Ghur, a mountainous region in central Afghanistan that had long been somewhat isolated from the lowland empires. Its rulers, the Shansabani family, accepted Islam relatively late and gradually built a regional power from Firuzkoh. In the twelfth century the Ghurids expanded, and conflict with the Ghaznavids intensified. In 1150–51 the Ghurid ruler Ala al-Din Husayn attacked Ghazni, defeating the Ghaznavid ruler Bahram Shah and sacking the city; his association with burning the city earned him the epithet Jahansuz, "world-burner." Many of Ghazni's monuments were damaged. The Ghaznavids recovered temporarily, but Oghuz (Ghuzz) Turkic groups seized Ghazni in the 1160s, and the Ghaznavid dynasty relocated its capital to Lahore, where it ruled as a rump state.

In 1173–74 the Ghurid ruler Ghiyath al-Din Muhammad took Ghazni from the Oghuz and installed his younger brother, Muʿizz al-Din Muhammad, as ruler (sultan) there under Ghiyath's senior authority. The brothers divided responsibilities: Ghiyath al-Din oversaw Ghur and the western territories, including the struggle against the Khwarazmshahs, while Muʿizz al-Din expanded eastward from Ghazni. The Ghurids had thus destroyed the Ghaznavid base in Afghanistan before moving into South Asia. This history underscores why the two dynasties should not be treated as a single continuous Muslim advance.

Section 39.13

Muhammad of Ghor and a Different Strategy of Expansion

Muʿizz al-Din Muhammad ibn Sam, known in Indian history as Muhammad of Ghor, began his South Asian campaigns in the mid-1170s. In 1175 he took Multan from its Ismaili ruler and moved against Uch, and in the following years he consolidated a position in the lower Indus region. In 1178 he attempted to march through the desert into Gujarat but was defeated near Mount Abu by the forces of the Chaulukya ruler Mularaja II, a setback that discouraged a southern route and redirected him toward the Punjab. The defeat is a useful reminder that Ghurid expansion was not a series of unbroken victories.

He then turned to the Punjab. In 1179–80 he took Peshawar, and in the early 1180s he pressed on the last Ghaznavid ruler, Khusrau Malik, who held Lahore. After years of pressure, negotiation, and military action, Muʿizz al-Din captured Lahore in 1186, ending the Ghaznavid dynasty. This was the first stage of the shift from Ghaznavid to Ghurid control in South Asia and a decisive step: the Ghurids now held the Punjab, with its resources and its routes into the Ganges plain.

What distinguished the Ghurid approach from Mahmud's? Ghurid expansion aimed at sustained territorial control. Muʿizz al-Din did not simply raid and return to Ghazni; he built bases, installed garrisons, and entrusted territories to commanders who were expected to expand and administer them. The ghulam commanders he trained and promoted, including Qutb al-Din Aibak, served as long-term agents in India. Revenue assignments provided income to commanders and troops, binding them to the regime and to the land. These methods made it possible to convert victories into governable territory, as Section 39.17 explains.

Ghurid expansion was also shaped by the Ghurid empire's wider concerns. Muʿizz al-Din and his brother were engaged in rivalry with the Khwarazmshahs in Khurasan and Central Asia, and South Asia was one front among several. The campaigns in India were therefore partly a way to find revenue and military reward to sustain the dynasty's western wars, as well as an extension of Ghurid power toward fertile lands.

Comparison

Ghaznavid and Ghurid Strategies in South Asia

GhaznavidsGhurids
Main South Asian objectiveFrontier security, revenue, prestige, selective territorial ruleSustained territorial expansion
Durable corePunjabPunjab plus expanding northern Indian bases
Campaign patternRepeated raids and campaigns mixed with annexationConquest followed by delegated consolidation
Political machineryGovernors and Ghaznavid provincial controlMilitary commanders, garrisons, delegated authority
Long-term resultLahore/Punjab Ghaznavid polityNetworks from which a Delhi-centered successor state emerged

Note: The contrast is one of emphasis, not absolute difference. Ghaznavid rulers used governors and garrisons, and Ghurid commanders also raided. What differed was the centrality of sustained conquest and delegated command in the Ghurid system.

Section 39.14

The Rajput Political World on the Eve of Ghurid Expansion

By the 1180s northern India was divided among several regional powers, many of which Chapter 35 introduced as part of the "Rajput" political world. The Chahamanas (Chauhans) of Sakambhari and Ajmer ruled much of eastern Rajasthan and controlled strategic territories including Delhi, which they had taken from the Tomaras. The Gahadavalas ruled the central Ganges plain from Kannauj and Varanasi. The Chandellas held Bundelkhand, the Paramaras and Chaulukyas held Malwa and Gujarat, and in the east the Senas ruled Bengal while the Palas had declined. Fortified strongholds such as Ranthambore, Gwalior, and Kalinjar anchored regional power.

These states were competitors. The Chahamanas fought the Chaulukyas, the Chandellas, and the Gahadavalas, and rivalries over territory, tribute, and prestige were as important as any shared identity. The Sanskrit court poem Prithvirajavijaya, composed in Prithviraj's own milieu, celebrates his victories over other Indian rulers, as do inscriptions of neighboring dynasties. There was no unified "Hindu India" confronting an invader, and no sense in which these kingdoms regarded the Ghurids as the one decisive enemy until their own regional interests were threatened. Chahamana and Gahadavala rulers in particular had often been at odds, and Ghurid commanders would exploit that.

These states also had real military resources: cavalry, elephants, infantry, forts, and the revenue of agrarian territories. They had political cultures of kingship and warfare that valued the fortified stronghold and the heroic ruler, and they had experience fighting regional wars. The idea that they were weak or unprepared is a later simplification. What they lacked was a structure for permanent cooperation, and they faced an enemy whose army was organized for sustained campaigning and whose commanders could rotate and reinforce operations from a base in the Punjab.

Section 39.15

The First and Second Battles of Tarain, 1191–1192

Prithviraj III of the Chahamana dynasty came to the throne as a youth in the 1170s and expanded his kingdom through wars against neighboring rulers. His kingdom, with its capital at Ajmer and control of Delhi, lay directly in the path of Ghurid expansion from the Punjab. After taking Lahore, Muʿizz al-Din moved into the region south of the Punjab. In 1191 he captured the fortress of Tabarhindah (Bathinda) and left a garrison. Prithviraj advanced with a large force, and the armies met at Tarain, a site in the region between Delhi and the Punjab.

In the First Battle of Tarain (1191) the Ghurid army was defeated. Persian sources record that Muʿizz al-Din was wounded and had to be carried from the field and that his forces retreated in disorder. Prithviraj then besieged Tabarhindah and eventually recovered it, an episode that suggests the Chahamana ruler was a capable and determined commander. Muʿizz al-Din returned to Ghazni, where, according to later accounts, he punished officers who had fled, and spent the following year preparing for a renewed campaign.

In 1192 he returned with a reorganized army. In the Second Battle of Tarain (1192), Persian sources describe a well-coordinated cavalry force that used mobility, feigned retreats, and divided formations to exhaust and disrupt the larger Chahamana army, leading to its collapse. Prithviraj was captured and later killed. Later sources preserve conflicting details about his fate, and Persian accounts and later traditions diverge. What is well established is the Chahamana defeat and Prithviraj's death.

The consequences were significant. The Ghurids occupied Ajmer and Delhi in the following months, with Qutb al-Din Aibak holding Delhi as the center of a growing military command. The Chahamana state did not vanish instantly: Muʿizz al-Din initially allowed a Chahamana prince to rule at Ajmer as a tributary, and the dynasty's descendants continued to rule elsewhere, including at Ranthambore. Tarain was a major victory but not an instant conquest of northern India; it was the opening of a campaign of expansion that required years of further fighting.

Source criticism is essential here. The most reliable accounts are those of Persian chroniclers such as Hasan Nizami and Minhaj-i Siraj, who wrote within a few decades from Ghurid and early Delhi perspectives, and of the Sanskrit Prithvirajavijaya, which preserves a Chahamana perspective on Prithviraj's reign. The much later Prithviraj Raso, attributed to the poet Chand Bardai, is an epic that took its present form centuries later and contains romantic legends, including accounts of Prithviraj's blinding and a final revenge, that have no basis in contemporary evidence. Historians separate the historical Prithviraj of inscriptions and chronicles from the heroic figure of epic tradition, and also decline to turn him either into a modern nationalist icon or into a failure doomed by supposed weakness.

Battle Analysis

Tarain 1191 versus Tarain 1192

1191: Ghurid defeat

Muʿizz al-Din advanced after taking Tabarhindah; the army was routed and he was wounded; the Chahamana ruler recovered the fortress. The Ghurid position in the region was set back.

1192: Chahamana defeat

A reorganized Ghurid army with disciplined cavalry used mobility and coordinated tactics; Prithviraj was captured and killed; Ajmer and Delhi fell under Ghurid control.

Why the outcomes differed

Command, preparation, and organization mattered: Muʿizz al-Din drew lessons from the first defeat, brought a more cohesive force, and could rely on bases in the Punjab for reinforcement.

Why it was not simply "cavalry versus elephants"

The explanation also involves operational mobility, command structure, political fragmentation among Indian rulers, recruitment, and the ability to sustain multiple campaigns.
Section 39.16

Chandawar and the Expansion into the Ganges Plain

After Tarain, Muʿizz al-Din returned to Ghazni, leaving Qutb al-Din Aibak to hold Delhi and expand the Ghurid position. Aibak and other commanders suppressed local resistance in the Delhi region, took fortresses, and campaigned against rulers who challenged the new order, including a rebellion centered at Ajmer. Meanwhile, the Gahadavala kingdom of Jayachandra, which controlled the central Ganges plain from Kannauj and Varanasi, had been a rival of the Chahamanas, and Persian sources suggest it did not prevent the Ghurid advance in the preceding years.

In 1194 Muʿizz al-Din returned to India with a large army and met Jayachandra at Chandawar, on the Yamuna near Etawah. According to Persian accounts, the Gahadavala army was defeated and Jayachandra was killed. The Ghurids then moved to Varanasi and other centers, taking large amounts of plunder and damaging temples. The battle opened the central Ganges plain to Ghurid campaigns, and in subsequent years Ghurid commanders took Bayana, Gwalior, and other strongholds. In the east, the Turkic commander Ikhtiyar al-Din Muhammad Bakhtiyar Khalji, operating with considerable independence, raided into Bihar and Bengal around 1203–04, a campaign that Chapter 40 and later chapters take up.

Chandawar should not be imagined as a single battle that instantly destroyed the Gahadavala state everywhere. Gahadavala rule continued in part of the region for some years under Jayachandra's successors, and local resistance, rebellions, and renewed conflicts followed. Ghurid occupation of strongholds such as Kannauj and Varanasi was uneven and contested, and local rulers and landholders sometimes submitted, sometimes rebelled, and sometimes negotiated. Chandawar was a decisive victory, but consolidation was gradual and unfinished in 1206.

This pattern matters. Ghurid commanders used force to break regional powers, but they then needed to secure territory through garrisons, forts, revenue arrangements, and agreements with local powerholders. The Persian chronicles emphasize the conquests, while the details of administration and local accommodation are less visible. Reconstructing them requires inference from coins, inscriptions, and later practice, a challenge that the next section turns to.

Section 39.17

Military Slaves, Commanders, Garrisons, and the Machinery of Conquest

How did battlefield victory become governable territory? The Ghurid answer lay in a set of institutions that combined military command, delegated authority, and fiscal assignment. At the center was the ghulam or mamluk commander. Muʿizz al-Din had no son to succeed him, and he invested heavily in a household of Turkic military slaves whom he trained, promoted, and entrusted with high command. Among them were Qutb al-Din Aibak, Taj al-Din Yildiz, and Nasir al-Din Qabacha. These men were personally bound to their master, but they also built their own households, followings, and networks.

Aibak himself, according to Persian tradition, was a Turkic boy sold in the slave market at Nishapur, acquired by Muʿizz al-Din, and promoted through the ranks. He became the Ghurid commander in India, directing campaigns and administering conquered territories. Such a career reveals the character of the institution. In this context, "slave" does not mean the plantation or domestic chattel slave of other historical systems. It describes a status of dependent loyalty that could carry high rank, wealth, and authority, even as the individual's legal and personal position remained subordinate to the master.

The military system rested on cavalry. Commanders led mounted archers and heavy cavalry, supplemented by infantry and local levies. Fortified bases, including Tabarhindah, Delhi, Ajmer, Bayana, and Gwalior, served as logistical hubs and centers of control. Garrisons were stationed in captured forts, from which commanders raided, collected tribute, and policed territory. Delegated command meant that commanders in India exercised considerable initiative, accountable to Muʿizz al-Din but operating at a distance of weeks of travel from Ghazni.

Revenue assignments supported the system. Commanders and troops were provided with income from specified territories, in a practice commonly associated with the term iqta, which Chapter 40 examines in its developed Delhi form. Local intermediaries, including former officials and landholding elites, were retained or co-opted to collect revenue, a pragmatic accommodation that allowed small conquering forces to govern large populations. In some places, rulers who submitted were left in place as tributaries. The mixture of force, delegation, and accommodation explains why conquests could persist even when the supreme ruler was far away.

The institution also had a weakness: loyalty was personal. When the master died without an heir, the commanders' relationships to one another and to the broader dynasty were unclear, as the crisis of 1206 would show.

Historical Vocabulary
Ghulam and Mamluk

Ghulam (Arabic, "boy, servant") and mamluk ("one owned") refer to military slaves who were purchased or captured young, converted, trained, and promoted within the armies and households of Muslim rulers. In the eastern Islamic world, they were often Turkic.

The terms matter because they describe a political institution, not plantation slavery: such soldiers could become commanders, governors, and even sultans. Using "slave" without explanation obscures this distinction, and ignoring the legal subordination obscures how personal loyalty structured the regime. Chapter 40 examines the Delhi "Mamluk" dynasty that grew out of this system.

Section 39.18

From Ghurid Conquest to a Delhi-Centered Successor State

Ghiyath al-Din Muhammad died in 1202–03, and Muʿizz al-Din became sole ruler of the Ghurid dominions. He faced a serious defeat in 1204 at the hands of the Khwarazmshah in Central Asia, and the Ghurid position in the west weakened. In March 1206, on his return from a campaign in the Punjab, he was killed at Damyak (Dhamiak), in the Jhelum region, in circumstances that sources attribute either to Ismaili assassins or to Khokhar rebels; the accounts differ, and the exact responsibility is uncertain.

His death precipitated a succession crisis. He left no direct heir to the whole empire, and his dominions divided among rival commanders and relatives. At Ghazni, Taj al-Din Yildiz claimed authority; at Multan and Uch, Nasir al-Din Qabacha asserted himself; at Firuzkoh the family's western territories passed to Ghiyath al-Din's son Mahmud, and the Khwarazmshahs soon conquered much of the old Ghurid heartland. In India, Qutb al-Din Aibak, who had held Delhi and led the Indian campaigns, took control at Lahore in 1206, and later received recognition from the Ghurid house, though sources differ on the sequence and on formal manumission. Aibak did not inherit a single Indian empire; he emerged as one claimant among several, with a power base in the Punjab and northern India.

Why, then, do historians treat 1206 as a useful political threshold? Because from that point the Indian possessions of the Ghurids were governed from the subcontinent rather than from Ghazni or Firuzkoh, by a ruler whose power rested on the networks described in this chapter. Aibak ruled from Lahore until his death in 1210, and his successors would eventually make Delhi the capital of a more fully formed state. But this should not be exaggerated. The Sultanate in 1206 was a fragile, contested military regime, with rivals at Multan, Ghazni, and in Bengal, and its institutions, legitimacy, and borders were still being worked out. Chapter 40 follows the process.

The result was not inevitable. If Muʿizz al-Din had lived longer or left a clear heir, a Ghurid empire might have continued from Ghur. If the Khwarazmshahs had moved decisively into the Indus basin, the history of northern India might have followed different lines. The Delhi-centered state emerged from the particular combination of Ghurid commanders in India, their institutions, local accommodations, and the collapse of the Ghurid center.

Continuity and Change Over Time

The Political Landscape before and after 1192–1206

What Changed

  • The Chahamana, Gahadavala, and other regional states in the Delhi and Ganges regions lost power or were reduced to subordinate positions
  • Delhi became a Muslim-ruled military center and, in time, a capital
  • Rule in northern India was now exercised by commanders with a base in the subcontinent and not by a distant imperial center
  • Persian administration, coinage, and court culture spread across a wider area

What Stayed the Same

  • Agrarian production, village life, and local intermediaries continued to underpin revenue
  • Many local rulers, landholders, and communities persisted, sometimes under new terms
  • Temples, monasteries, and religious communities of many kinds continued to function in much of the region
  • Trade routes and urban networks remained central

Who experienced change most directly: Defeated ruling families, temple and monastic institutions in the path of conquest, and communities near conquered fortresses faced the sharpest disruption. Who experienced greater continuity: Many cultivators and artisans paid revenue to a new authority but otherwise lived within familiar local structures.

Section 39.19

Review and Historical Synthesis

The governing question of this chapter has been why Ghaznavid intervention produced durable rule principally in the Punjab, while Ghurid expansion produced the political and military networks from which a Delhi-centered state could emerge. The answer lies in the interaction of geography, institutions, strategy, and political context.

The Ghaznavids emerged from the Samanid military system and the fragmentation of the Abbasid east. Their base at Ghazni gave them access to the passes into the Indus basin and a reason to subordinate the Hindu Shahis who controlled them. Mahmud's campaigns served multiple purposes: revenue, security, prestige, dynastic competition, and religious legitimation. Some were raids, some were punitive expeditions, and only some led to annexation. The Punjab, adjacent to the Ghaznavid base and politically weakened by the fall of the Shahis, was the territory they could hold and administer through governors, garrisons, local intermediaries, and a Persianate administration. The Ganges plain, Rajasthan, and Gujarat, far from Ghazni and held by strong regional states, could be raided but not governed. Temples, as wealth-holding and politically symbolic institutions, became targets, and Somnath shows both the real violence of such episodes and the way later memory transformed them.

The Ghurids arrived a century and a half later, after destroying the Ghaznavids in Afghanistan and then Lahore. Muʿizz al-Din Muhammad pursued sustained territorial conquest. He faced a political landscape of competing regional kingdoms, including the Chahamanas and Gahadavalas, that could not coordinate lasting resistance. He relied on cavalry armies, fortified bases, delegated command by ghulam commanders such as Aibak, revenue assignments, and local accommodation. Tarain in 1191 showed that the outcome was not predetermined; Tarain in 1192 and Chandawar in 1194 opened Delhi, Ajmer, and the central Ganges plain to Ghurid control. These victories were followed by uneven consolidation.

The death of Muʿizz al-Din in 1206 revealed both the strength and the weakness of the system. Its strength was that commanders with their own networks could hold territory without the ruler. Its weakness was that loyalty was personal, and the empire fractured. In India, the commanders' networks survived and gave Aibak and his successors the foundation of a state. That state, whose character and institutions Chapter 40 examines, was neither an inevitable result of Ghurid victories nor a simple continuation of Ghaznavid rule.

Throughout, the chapter has emphasized that this history cannot be told as a unified clash between "Hindu India" and "Muslim invaders." The Ghaznavids and Ghurids were rivals; Muslim and non-Muslim rulers fought within and across religious lines; Indian rulers pursued regional interests; and Persian chroniclers and Sanskrit poets each shaped the record. Later colonial, nationalist, and communal memory has compressed this complexity into simpler narratives, and historians must read the evidence carefully to recover it. The transition to the next chapter is clear: with Delhi as a Muslim-ruled political center and a set of institutions in place, the question becomes how early Delhi sultans turned a conquest regime into a durable state.

Timeline Study

From Ghazni to Delhi, c. 977–1206

DateDevelopmentSignificance
977Sabuktigin becomes ruler of GhazniConsolidation of the Ghaznavid base and the start of conflict with the Shahis
998–1030Reign of MahmudImperial expansion and repeated campaigns in South Asia
1001–1009Defeat of Jayapala and Anandapala; NagarkotCollapse of Shahi resistance and opening of the Punjab
1025–26Somnath expeditionFurthest raid; later ideological importance
1040DandanqanLoss of Khurasan; Ghaznavid center of gravity shifts
1150–51Ghazni sacked by GhuridsRise of Ghur
1186Capture of LahoreEnd of the Ghaznavids; Ghurids hold the Punjab
1191–1192Battles of TarainDefeat, then decisive victory
1194ChandawarOpening of the central Ganges plain
1206Death of Muʿizz al-Din; succession crisisBeginning of Delhi-centered political foundation

Timeline Analysis Questions:

  1. What does the roughly 150-year gap between Mahmud's campaigns and Tarain suggest about the relationship between the two dynasties?
  2. Which developments on the timeline show acceleration in the pace of conquest, and which show delay or reversal?
  3. Why might historians treat 1206 as a threshold without treating it as the creation of a finished state?
  4. How does the timeline illustrate the difference between raiding and territorial conquest?

Chapter Summary

This chapter has traced the interventions of two Central Asian-oriented Muslim dynasties in northern South Asia and explained why they produced different political outcomes. Its central argument is that Ghaznavid expansion yielded durable rule chiefly in the Punjab, while Ghurid expansion created the political and military networks that made a Delhi-centered state possible.

The chapter began by shifting attention from Arab Sindh to the Afghan and Central Asian frontier. The disintegration of Abbasid political unity produced regional dynasties, among them the Samanids, who relied on Turkic military slaves and cultivated Persianate court culture. From this system emerged Alptigin and Sabuktigin and the base at Ghazni.

The Hindu Shahis, rulers of the Kabul valley, Gandhara, and the western Punjab, controlled the passes and were the first major obstacle to Ghaznavid expansion. Their defeat in the early eleventh century opened the Punjab and showed that the confrontation was a struggle among organized states over territory and routes, not merely a religious clash.

Mahmud of Ghazni built a large empire, secured caliphal recognition, and mounted repeated campaigns in South Asia. The chapter rejected single-cause explanations and argued that revenue, frontier security, dynastic prestige, and religious legitimation combined. It distinguished raids, punitive expeditions, tribute demands, and annexation, and emphasized that Mahmud did not conquer northern India.

Temple attacks were interpreted through the dual character of temples as sacred institutions and as repositories of wealth and royal legitimacy, in a political culture where rulers on several sides seized images. The chapter treated Somnath as a case of source criticism: the core event of 1025–26 is well attested, while many details and the episode's ideological weight derive from later retellings.

The Ghaznavid Punjab showed how raiding turned into rule, through governors, garrisons, local intermediaries, bilingual coinage, and a Persianate culture centered on Lahore. Ghazni itself was an imperial cultural center, where al-Biruni produced a pioneering study of Indian traditions, and where Persian literary and administrative models took shape.

Seljuq victory at Dandanqan in 1040 redirected the Ghaznavids, and in the twelfth century the Ghurids of central Afghanistan overthrew them, sacking Ghazni and ending the dynasty at Lahore in 1186. Muʿizz al-Din Muhammad's strategy differed from Mahmud's: he pursued sustained territorial conquest through bases, garrisons, delegated command, and revenue assignments.

The chapter placed the Ghurid campaigns in the political world of the Chahamanas, Gahadavalas, and other regional powers, who fought one another and did not form a unified front. Tarain in 1191 and 1192 and Chandawar in 1194 were decisive, but not instant conquests, and consolidation was gradual and contested.

The military-slave institution explained how commanders such as Aibak became governors and rulers. After the death of Muʿizz al-Din in 1206, the Ghurid dominions fragmented, and in India the commanders' networks survived and gave Aibak the foundation of a Delhi-centered state, though that state was not yet fully formed. Chapter 40 takes up the story.

Review Materials

Key Terms

Ghaznavids
Dynasty founded by former Samanid military slaves at Ghazni; under Mahmud it ruled Afghanistan, eastern Iran, and the Punjab.
Ghurids (Shansabanis)
Dynasty from the highlands of Ghur that destroyed the Ghaznavids and conquered much of northern India.
Samanids
Persianate dynasty at Bukhara whose military-slave system produced the founders of Ghazni.
Abbasid caliphate
Caliphate at Baghdad whose recognition conferred religious legitimacy on regional dynasties even as its direct power declined.
Ghulam
Military slave trained and promoted in the household and army of a ruler, often Turkic in origin.
Mamluk
"One owned"; a military slave who could rise to command and rule, as in the early Delhi dynasty.
Persianate
Shaped by Persian language, literature, and administrative traditions regardless of ethnic origin.
Ghaza / Ghazi
Frontier warfare with religious merit in Islamic tradition, and a participant in it; a term used in chronicle presentation of campaigns.
Hindu Shahis
Dynasty ruling the Kabul valley, Gandhara, and western Punjab until its defeat by the Ghaznavids.
Waihind (Udabhandapura)
Shahi capital on the Indus controlling the main route into the Punjab.
Tribute
Payment by a defeated or threatened ruler to avoid destruction or annexation, allowing him to remain in power.
Booty
Movable wealth, captives, and animals seized in warfare and used to pay armies and patrons.
Temple desecration
The damage or removal of temple images and structures as acts of warfare, practiced in various forms by competing rulers.
Source criticism
Evaluation of a source's authorship, date, purpose, and reliability before using it as evidence.
Panegyric
Poem or prose written to praise a ruler, a major genre of court literature.
Bilingual coinage
Coins with legends in two languages, such as Arabic and Sanskrit, indicating dual audiences in Ghaznavid Lahore.
Ismaili
A Shia community whose rulers governed Multan before Mahmud and Muʿizz al-Din conquered it.
Dandanqan
1040 battle in which the Seljuqs defeated the Ghaznavids and took Khurasan.
Chahamana (Chauhan)
Dynasty of Sakambhari and Ajmer to which Prithviraj III belonged.
Gahadavala
Dynasty ruling the Kannauj–Varanasi region, defeated at Chandawar.
Prithvirajavijaya
Sanskrit court poem preserving a Chahamana perspective on Prithviraj's reign.
Prithviraj Raso
Epic attributed to Chand Bardai that took its present form centuries later and is unreliable for the historical Prithviraj.
Delegated command
System in which commanders at a distance exercised wide initiative on behalf of a ruler.
Garrison
Force stationed in a fort or city to hold territory and collect revenue.
Iqta
Assignment of revenue from a territory to support a commander and his troops; developed in Delhi as examined in Chapter 40.
Succession crisis
Contest over rulership after a ruler's death, as in the Ghurid dominions in 1206.
Jahansuz
"World-burner," epithet of the Ghurid ruler Ala al-Din Husayn for the sack of Ghazni.

Major People and Places

Identification & Significance

Mahmud of Ghazni
Ghaznavid ruler (998–1030) whose campaigns and state-building shaped northwestern South Asia.
Sabuktigin
Founder of Ghaznavid power who began the conflict with the Shahis.
Alptigin
Turkic commander who established the base at Ghazni.
Jayapala and Anandapala
Hindu Shahi rulers who resisted Ghazni.
Masʿud I
Mahmud's son, defeated by the Seljuqs at Dandanqan.
Al-Biruni
Scholar who wrote a major study of India under Ghaznavid rule.
Firdausi
Poet of the Shahnama, associated with the Ghaznavid court.
Baihaqi and al-ʿUtbi
Chroniclers of Ghaznavid reigns.
Ghiyath al-Din Muhammad
Ghurid ruler who led the western territories.
Muʿizz al-Din Muhammad (Muhammad of Ghor)
Ghurid ruler who led the conquest of northern India.
Prithviraj III
Chahamana ruler defeated at the Second Battle of Tarain.
Jayachandra
Gahadavala ruler defeated at Chandawar.
Qutb al-Din Aibak
Ghurid commander who became the leading figure in Lahore and Delhi.
Taj al-Din Yildiz and Nasir al-Din Qabacha
Rival Ghurid commanders at Ghazni and Multan/Uch.
Ghazni
Ghaznavid capital and cultural center in eastern Afghanistan.
Lahore
Ghaznavid provincial and later capital city; Aibak's base in 1206.
Somnath
Temple on the Saurashtra coast, attacked in 1025–26.
Tarain, Chandawar, and Delhi
Key sites of the Ghurid conquest of northern India.
Firuzkoh and Ghur
Center and homeland of the Ghurid dynasty.

Chronology Check

  1. Place in order: the first Battle of Tarain; the capture of Lahore by Muʿizz al-Din; the Somnath expedition; Dandanqan; Chandawar; the death of Muʿizz al-Din.
  2. Which of these events concern the Ghaznavids, and which concern the Ghurids?
  3. Explain how the Seljuq victory of 1040 affected the Ghaznavid role in South Asia.
  4. Why did the Ghurid sack of Ghazni precede the Ghurid conquest of northern India?
  5. Identify two turning points between 1001 and 1186 and explain why each mattered.
  6. Which developments show continuity between the two dynasties, and which show change?
  7. Explain why 1206 is described as a threshold rather than a founding date.
  8. Connect the defeat at Anhilwara/Mount Abu in 1178 to the direction of later Ghurid campaigns.
  9. Group the events of this chapter into the four movements described in the Chapter Opening.
  10. How does the chronology show the difference between raiding and territorial conquest?

Map Study Questions

  1. Explain why control of Kabul, Peshawar, and the Indus crossing at Waihind mattered for any ruler of Ghazni.
  2. Why was the Punjab more easily integrated into the Ghaznavid state than the Ganges plain?
  3. Trace Mahmud's route to and from Somnath and explain the logistical difficulties it presented.
  4. How does the location of Tarain relate to routes between Lahore and the Ganges plain?
  5. Why does locating the Ghurid homeland at Ghur help explain their rivalry with the Ghaznavids?

Primary Source Questions

  1. What does al-Biruni say about the effect of Mahmud's campaigns on Indian learning?
  2. How might al-Biruni's position at Ghazni have shaped what he wrote and how he wrote it?
  3. What can historians learn from the passage about cross-cultural scholarship in a time of conflict?
  4. What groups or perspectives are absent from al-Biruni's account?
  5. Compare the kind of evidence al-Biruni provides with that of a court panegyrist such as al-ʿUtbi.

Review Questions

  1. Why did the political center of Muslim expansion into South Asia shift away from Sindh after the Arab conquest?
  2. How did the ghulam system shape the origins of the Ghaznavid state?
  3. Who were the Hindu Shahis, and why did they matter to Ghaznavid expansion?
  4. What motives lay behind Mahmud's Indian campaigns, and why is a single-cause explanation inadequate?
  5. How did Mahmud's raids, punitive expeditions, tribute demands, and annexations differ?
  6. What roles did temples play in early medieval South Asian society, and why did they become targets?
  7. What can be established about Somnath in 1025–26, and what was added later?
  8. How did the Ghaznavids govern the Punjab?
  9. What was al-Biruni's relationship to Ghaznavid power?
  10. What brought about the decline of the Ghaznavids and the rise of the Ghurids?
  11. How did Ghurid strategy differ from Ghaznavid strategy?
  12. Why did the Ghurids win at the Second Battle of Tarain after losing the first?
  13. How did military slaves and delegated command allow conquests to be governed?
  14. What happened after Muʿizz al-Din's death in 1206?

Short-Answer Questions

  1. A student claims that Mahmud conquered northern India. Using evidence from this chapter, explain what is inaccurate.
  2. Compare the roles of the Punjab in Ghaznavid and Ghurid expansion.
  3. Explain how later memory has shaped the historical image of Somnath.
  4. Why is it misleading to describe the opponents of the Ghurids as a unified Hindu India?
  5. Explain why "military slave" does not mean plantation slavery in the context of Aibak's career.

Discussion Questions

  1. How should historians balance the language of religious warfare in Persian chronicles against evidence of political and economic motives?
  2. What are the strengths and limits of Persian chronicles as evidence for Indian history?
  3. How have modern political movements used the Ghaznavid and Ghurid past, and how can historians respond responsibly?
  4. Why might a conqueror succeed at defeating armies but fail to establish lasting rule?
  5. In what ways did Indian rulers contribute to the success of Ghurid expansion through their own rivalries?
  6. What does al-Biruni's career suggest about the relationship between conquest and intellectual exchange?

Writing Exercises

  • Exercise 1 (Explanatory): Explain how Ghaznavid rule was established in the Punjab and why it did not extend farther east.
  • Exercise 2 (Comparative): Compare Ghaznavid and Ghurid strategies of expansion, using specific institutions and campaigns.
  • Exercise 3 (Evidence-based argument): Using the Historical Debate on temple attacks and the Somnath workshop, argue which combination of motives best explains the evidence, and identify what further evidence would help.
  • Exercise 4 (Connecting periods): Explain how the military and political networks of the Ghurid conquest shaped the beginnings of the Delhi Sultanate, referring to developments you expect to find in Chapter 40.

Research or Library Extension

MGU Library Research Project

Reading Conquest Evidence: A Source Comparison

This project asks you to compare how different sources represent one episode of the Ghaznavid or Ghurid conquests.

  1. Choose an episode. Select Somnath, the Battles of Tarain, Chandawar, or the sack of Ghazni.
  2. Gather sources. Using library resources, find at least one Persian chronicle in translation, one Sanskrit, Jain, or inscriptional source where available, and one modern scholarly study.
  3. Analyze each source. Identify author, date, patron, purpose, and perspective, and note what each source says and omits.
  4. Trace later memory. Identify how the episode was retold in colonial or modern writing and what changed.
  5. Write your findings. In a 4–6 page essay, explain what can be established, what remains uncertain, and how later memory altered the record, using careful language.

Library resources to use: translated chronicles, reference works on the Ghaznavids and the Delhi Sultanate, historical atlases, and MGU History Library collections.

Chapter Reflection

This chapter matters because it shows how a single historical transformation can have two different beginnings. The Ghaznavid and Ghurid interventions in northern South Asia are often compressed into a single story of invasion, but the evidence reveals two dynasties with different aims, methods, and results. Learning to separate them is a lesson in historical precision.

The chapter also reveals larger processes: the political fragmentation of the eastern Islamic world, the importance of military slavery and delegated command, the role of Persianate administration and culture, and the interaction of conquest with local states and communities. These processes link South Asia to Central Asia and Iran, and they show that the subcontinent's history cannot be told within its modern borders.

Later developments grew from the foundations laid here. The Delhi Sultanate, examined in Chapters 40 through 44, drew on Ghurid commanders, institutions, and Persianate culture. The regional kingdoms of the Deccan, Bengal, and Gujarat responded to the new northern power in different ways, as Chapters 45 through 47 show. And the memory of these conquests has shaped modern politics, which is why the careful reading of evidence matters.

Within the six-volume series, this chapter is a hinge. It connects the regional kingdoms and temple economies of Chapters 31 through 37 to the Sultanate world, and it prepares the question that the next chapter takes up: how a conquest regime became a state.