MGU History Series · Library Textbook Edition
Volume III — Islamic Iran and the Persianate Revival · Part VII — Iranian Dynasties and the Persianate Renaissance
37

The Ghaznavids and the Expansion of Persianate Court Culture

Persian and Iranian History: From Ancient Persia to the Islamic Republic

Chapter Opening

The Ghaznavids were a dynasty of Turkic military origin who ruled from the highland city of Ghazna, financed an army that campaigned from the Oxus to the Punjab and Gujarat, and sponsored some of the earliest great court poetry and prose in New Persian. Their story joins three things often kept apart: military slavery, Sunni Islamic legitimacy, and Persianate literary culture.

In the spring of 1040, on a plain called Dandanqan in the desert fringe between Sarakhs and Marv, an army that had marched out of Ghazna under the sultan Masʿud ibn Mahmud was beaten by Oghuz Turkmen horsemen led by the Seljuk brothers Tughril and Chaghri. The army was large, drawn from several peoples, supplied with elephants, and commanded by officers who had served the dynasty for decades. It had been stripped of its advantage by thirst, by the difficulty of provisioning a force far from its base, and by the refusal of many of its own men to fight to the end. Within months Khurasan, the richest province the Ghaznavids held, was lost. Within a year the sultan himself had been deposed and killed by his own household and army. Historians have long treated the battle as the moment at which one great eastern Islamic state gave way to another, and it fills a large part of the chapter that follows.

Yet to begin with Dandanqan alone would badly distort the dynasty. The Ghaznavids ruled, in one form or another, from 977 until 1186, and the defeat of 1040 occurred just over halfway through that span. The sultanate that survived it governed Ghazna and, in its final decades, a shrinking realm centered on Lahore in the Punjab, where Persian poets continued to write at court. It is also true that the dynasty's reputation rests heavily on a single reign, that of Mahmud, who held power from 998 to 1030 and whose campaigns carried Muslim armies across northwestern India to a degree no earlier eastern Islamic ruler had achieved. This chapter therefore treats Mahmud as the center of the dynasty's history without making him its entirety.

The Ghaznavid achievement raises an apparent paradox. The dynasty descended from Turkic soldiers who had been purchased, trained, and promoted within the household and army of the Samanids, whose own court is examined in Chapter 35. Their founders spoke Turkic languages, and the sultans Mahmud and Masʿud are reported by the sources to have been at ease with Turkic officers. Yet the Ghaznavid court produced, and generously rewarded, poetry in Persian that is among the foundations of the later classical tradition, and its chancery wrote Persian prose that remains some of the best evidence for eleventh-century government. The paradox dissolves once ancestry, language of culture, and religious legitimacy are separated. A Turkic military ruling family could adopt a Persian-speaking administrative class, a Persianate repertoire of royal praise, and a Sunni Islamic claim to legitimacy, and the resulting combination was neither Persian in ancestry nor foreign to the Iranian world. This chapter treats that combination as a historical creation rather than as a natural expression of anyone's identity.

The chapter also confronts the military and religious violence of Mahmud's reign without minimizing it and without reducing the dynasty to it. Mahmud's armies destroyed temples, took captives, and carried away treasure from Indian cities, and the Arabic and Persian narratives of these campaigns celebrated them in the language of holy war. Later memory, in India, Iran, and elsewhere, has made some of these events, above all the expedition to Somnath, a battleground of competing political narratives. Students will be asked to separate what contemporary and near-contemporary evidence establishes from what later tradition has added, to understand the political and economic logic of repeated campaigns, and to attend to the people who lived through them: the soldiers, the Hindu Shahi rulers, the merchants, the scholars, the cultivators, and the captives.

Historians reconstruct the Ghaznavid world from a distinctive body of evidence. There is panegyric poetry in Persian and Arabic, in which kings are praised in conventional language that must be read for its political function as well as its content. There is an Arabic chronicle by Mahmud's secretary al-ʿUtbi, in elaborate rhymed prose, and a Persian one by Gardizi. There is the History of Bayhaqi, a long and unusually candid account of the court of Masʿud by a former secretary of the chancery, who survives for us as both witness and critic. There is the scholarly writing of al-Biruni, who spent years in the Ghaznavid orbit and composed a remarkable study of Indian learning. Coins, inscriptions, and excavated palaces at Ghazna and Lashkari Bazar add material evidence. Almost all of the written sources were produced by court-connected men, and the voices of soldiers, cultivators, conquered peoples, and women are heard only indirectly.

Within the textbook, this chapter follows the Tahirids and Saffarids of Chapter 34, the Samanids of Chapter 35 whose institutions the Ghaznavids inherited, and the Buyids of Chapter 36, whose Rayy branch fell to Mahmud in 1029. It anticipates the Seljuk conquest of Chapter 38, the statecraft of Nizam al-Mulk in Chapter 39, the religious institutions of Chapter 40, Firdawsi and Iranian historical memory in Chapter 42, and the scientific and scholarly world of Chapter 43. Its governing question is how a ruling dynasty of Turkic military origin became a major institution of Persianate civilization, and why its political and cultural influence survived the loss of much of its original empire.

Learning Objectives

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

  1. Explain how Turkic military slave commanders in the Samanid system created a principality at Ghazna and then a hereditary dynasty between 961 and 998.
  2. Trace the stages by which Mahmud acquired Khurasan, extended Ghaznavid power to Khwarazm, Sistan, and Rayy, and managed the northern frontier with the Qarakhanids.
  3. Analyze Ghaznavid claims to Sunni legitimacy, including relations with the Abbasid caliph, honorific titles, and religious policy, without assuming that one title or institution defined the dynasty.
  4. Distinguish the military, political, economic, and religious dimensions of Mahmud's campaigns in northwestern and northern India, separating documented outcomes from later tradition.
  5. Evaluate the Somnath expedition of 1025–1026 using contemporary and later sources, including the problem of reported booty and the later political uses of the event.
  6. Describe Ghaznavid government, including the vizierate, the chancery, the army and its components, and the fiscal basis of the state, and assess how revenue shaped military policy.
  7. Explain why a dynasty of Turkic origin patronized Persian poetry and prose, and distinguish cultural adoption from change of ancestry.
  8. Interpret the work of the major court poets, historians, and scholars of the period, including ʿUnsuri, Farrukhi, Manuchehri, al-ʿUtbi, Gardizi, Bayhaqi, and al-Biruni, as evidence of both literary achievement and political context.
  9. Reconstruct the causes and course of the Ghaznavid defeat at Dandanqan in 1040, resisting the explanation of inevitable nomadic victory.
  10. Assess the later Ghaznavids at Ghazna and Lahore, including their accommodation with the Seljuks, their monuments and poets, and their final defeat by the Ghurids.
  11. Compare kinds of historical evidence, including panegyric, chronicle, coinage, inscription, and archaeology, and evaluate their strengths and limits.
  12. Evaluate competing interpretations of the Ghaznavids as a successor to the Samanid state or as a new kind of military monarchy.

Guiding Historical Questions

Questions for Historical Inquiry

  1. How did military commanders who emerged from the Samanid military-slave system create a hereditary sultanate, and what did they inherit from the Samanids?
  2. How did Mahmud build and finance a state whose armies operated from the Oxus to the Indus and beyond, and how much did control of Khurasan matter?
  3. Why did a dynasty of Turkic origin adopt and extend Persian court culture while also cultivating Arabic Islamic learning, and what does this show about the relationship between ancestry, language, and political legitimacy?
  4. What were the motives of Mahmud's campaigns in India, how do the sources represent them, and why must the political, economic, and religious dimensions be considered together?
  5. How do historians distinguish contemporary testimony from later tradition when they study events such as the attack on Somnath or the story of Firdawsi and Mahmud?
  6. Why could the Ghaznavid army, large and experienced, not hold Khurasan against the Seljuks in 1040?
  7. In what ways did the later Ghaznavids at Ghazna and Lahore continue, adapt, and transmit the political and cultural forms of the dynasty after 1040?
  8. Whose experience do the main sources for Ghaznavid history record, and whose do they leave largely unrecorded?
  9. How should historians weigh the achievements of Ghaznavid patronage against the human costs of the military state that financed it?

Historical Context

The Ghaznavids emerged from the eastern edge of the Islamic world as it had been organized by the Samanids. The Samanid dynasty, whose political and cultural history Chapter 35 examines, ruled Khurasan and Transoxiana as formal subordinates of the Abbasid caliph from capitals at Bukhara and Samarkand, and it presided over the first major flowering of New Persian literature. To govern and defend a large territory with a mixed population, the Samanids relied increasingly on Turkic military slaves, young men purchased or captured on the steppe frontier, trained in the royal household, and promoted to command. The Samanid court also relied on a literate administrative class of Persian-speaking secretaries and viziers, whose training, language, and practices passed into later states. These two groups, the Turkic military and the Persianate bureaucracy, were the building blocks of Ghaznavid power.

By the 960s, the Samanid system was under stress. The balance between amirs and the Turkic generals who commanded the armies had shifted, and several commanders held provincial governorships that were effectively autonomous. The governor of Khurasan, the senior military post, was increasingly a prize in factional contests at Bukhara. Succession disputes within the Samanid house gave commanders occasions to intervene, and an unsuccessful intervention could force a commander to withdraw to the frontier, which is how the Ghaznavid story begins. Meanwhile, powers outside the Samanid system were growing: the Buyids, whose rise Chapter 36 narrates, controlled Rayy and much of western Iran and threatened Samanid interests in the Jibal, and to the northeast the Qarakhanid Turks, whose rulers converted to Islam in the tenth century, built a state in Kashgar and the Ferghana valley that became the Samanids' ultimate conqueror.

The geography of the eastern frontier shaped everything that followed. Ghazna lies on the high plateau of what is now eastern Afghanistan, at a considerable elevation with cold winters, along routes that connect the Helmand and Arghandab valleys, Kabul, and the passes toward the Indus. From Ghazna, armies could move east and south into the plains of the Punjab and Sind, or north and west into Khurasan, Balkh, and Herat. Chapter 1 introduced Khurasan as a region far larger than the modern Iranian provinces that bear its name, and it is in this wider sense that the Ghaznavids contested it. To the east of Ghazna lay the Kabul and Peshawar valleys, held in the tenth century by the Hindu Shahi dynasty, and beyond the Indus the plains of the Punjab, where a patchwork of Indian kingdoms and Muslim-ruled territories in Multan and Sind divided political authority. The Ghaznavids therefore sat at a junction between the Iranian plateau, Central Asia, and the Indian subcontinent.

Economically, the region combined irrigated oases and river valleys with long-distance trade routes. Khurasan's cities, Nishapur, Herat, Balkh, and Marv, were centers of agriculture, textile and metal production, and commerce linked to Transoxiana and Iraq. The Hindu Kush passes carried horses, slaves, and other goods between the steppe, Afghanistan, and India. Warfare itself was an economic activity: armies depended on land revenue and the regular payment of soldiers, but also on tribute and plunder, and rulers who could gain access to fresh sources of revenue, whether from the rich cities of Khurasan or from the temples and treasuries of northern India, could finance larger forces.

Religiously, the eastern Islamic world was a patchwork of communities and competing claims. Sunni Hanafi and Shafiʿi jurists, the Karramiyya, a devotional and ascetic movement strong in Khurasan, Twelver and Ismaʿili Shiʿis, Mutazilites, Sufis, Zoroastrians, Buddhists, Hindus, Christians, and Jews all lived within or near the area the Ghaznavids would rule. The Abbasid caliphate, whose rulers at Baghdad remained subject to Buyid military dominance but retained religious and ceremonial authority, still conferred legitimacy, and the Fatimid caliphate in Cairo contested the Abbasid claim and sent missionaries into the east. The Ghaznavids' Sunni identity was not a mere inheritance; it was a political choice, shaped by their rivalry with Buyid and Ismaʿili powers and by their dependence on Sunni jurists, officials, and soldiers.

Chronology Preview

Dates follow the Common Era. Islamic-calendar years overlap two Common Era years, and the narrative sources sometimes disagree by a year; dates reported only in later tradition or on which the sources differ are marked as approximate. The order and dating of the early successors of Alptigin are especially uncertain.

Date or PeriodDevelopmentWhy It Matters
961–963The Samanid commander Alptigin loses a succession dispute, withdraws from Khurasan, and takes Ghazna (962); he dies in 963Establishes a Turkic military principality at Ghazna that later rulers inherited, though not yet a dynasty
977Sebuktegin, a former slave-soldier and son-in-law of Alptigin (according to the sources), takes power at GhaznaThe conventional starting date of the Ghaznavid dynasty
c. 986–991Sebuktegin campaigns against the Hindu Shahi king Jayapala and extends Ghaznavid control toward the Kabul and Peshawar region (details and dates vary)Begins the long contest with the Hindu Shahis that shapes the Indian frontier
994Sebuktegin and Mahmud support the Samanid amir Nuh II against rebels in Khurasan; Mahmud receives the governorship of Khurasan and the title Sayf al-DawlaBrings Mahmud into Samanid politics and Khurasan before his father's death
997–998Sebuktegin dies; his designated heir Ismaʿil is defeated by his elder brother MahmudEstablishes Mahmud as ruler and shows the importance of army support in succession
999–c. 1000Samanid power collapses; Mahmud and the Qarakhanid ruler divide the Samanid lands along the Oxus; Mahmud receives caliphal recognition and the title Yamin al-DawlaGives the Ghaznavids Khurasan and a recognized Islamic legitimacy
1001–1010Campaigns against the Hindu Shahi rulers Jayapala and Anandapala, and against Ismaʿili-ruled MultanExtends Ghaznavid power into the Punjab frontier
1017Mahmud conquers Khwarazm after the murder of its rulerAdds a wealthy commercial and intellectual region and brings scholars such as al-Biruni into Ghaznavid circles
1018–1019Expeditions to Mathura and KannaujMahmud's deepest penetration of the Gangetic plain
1025–1026Expedition to Somnath in GujaratThe most famous and most disputed of the Indian campaigns
1029–1030Capture of Rayy; death of Mahmud; succession struggle between Muhammad and MasʿudMarks the western limit of Ghaznavid power and the end of Mahmud's reign
1038–1040The Seljuks occupy Nishapur and defeat Masʿud at Dandanqan (23 May 1040)Ends Ghaznavid control of Khurasan
1059–1099Reign of Ibrahim, stabilizing the eastern sultanate after the loss of KhurasanShows the dynasty's survival and its accommodation with the Seljuks
1151–1173The Ghurid ruler Alauddin Husayn sacks Ghazna (1151); Ghazna later passes to the Oghuz and then the GhuridsEnds Ghazna's role as the Ghaznavid capital
1186The Ghurid Muʿizz al-Din Muhammad takes Lahore and deposes the last Ghaznavid ruler, Khusrau MalikEnds the dynasty

Major People, Groups, Institutions, and Places

Reference — People, Groups, Institutions & Places

Alptigin
Turkic slave commander of the Samanids, governor of Khurasan until 961, who withdrew to Ghazna and founded the military principality from which the dynasty grew.
Sebuktegin (r. 977–997)
Former slave of Alptigin, ruler of Ghazna from 977 and effective founder of the dynasty. Not to be confused with the Turkish commander Sebüktigin of Baghdad in Chapter 36.
Mahmud of Ghazna (r. 998–1030)
Son of Sebuktegin; ruler of the Ghaznavid empire at its greatest extent, conqueror of Khurasan, Khwarazm, and parts of the Punjab, and patron of poets and scholars.
Masʿud I (r. 1030–1041)
Son of Mahmud, defeated by the Seljuks at Dandanqan in 1040 and deposed and killed soon after.
Mawdud, Ibrahim, Masʿud III, Bahram Shah, Khusrau Malik
Later Ghaznavid rulers who held Ghazna and then Lahore, patronized poets and builders, and finally lost their lands to the Ghurids.
The Samanids
Iranian dynasty of Bukhara whose military slaves, administrators, and court culture provided the Ghaznavid starting point (Chapter 35).
The Qarakhanids
Turkic dynasty of Central Asia that partitioned Samanid Transoxiana with Mahmud and remained a northern neighbor and rival.
The Hindu Shahis (Jayapala, Anandapala, Trilochanapala, Bhimapala)
Kings of the Kabul and Peshawar region and of parts of the Punjab, opponents of the Ghaznavids until the 1020s.
The Abbasid caliph al-Qadir
The caliph at Baghdad (r. 991–1031), whose recognition and honorific titles supported Mahmud's claim to Sunni legitimacy.
Ahmad Maymandi, Hasanak, Abu Nasr Mushkan
Viziers and chancery officials under Mahmud and Masʿud; Mushkan headed the chancery in which Bayhaqi trained.
ʿUnsuri, Farrukhi, Manuchehri
The principal panegyric poets of the Ghaznavid court in the early eleventh century.
Firdawsi
Poet of the Shahnameh, whose relationship with the Ghaznavid court is the subject of influential but poorly documented stories (see Chapter 42).
Al-ʿUtbi, Gardizi, Bayhaqi
Secretary and historian of Mahmud's reign in Arabic; Persian historian of the mid-eleventh century; and the chancery official whose history of Masʿud's reign is the richest surviving source on the court.
Al-Biruni
Scholar from Khwarazm who lived in the Ghaznavid world and wrote a major study of Indian society and learning (see Chapter 43).
The Seljuks and the Oghuz
Turkmen groups whose leaders Tughril and Chaghri defeated Masʿud at Dandanqan (Chapter 38).
The Ghurids
Dynasty from the mountains of Ghur, whose rulers destroyed Ghazna's position in the twelfth century and ended the Ghaznavid dynasty in 1186.
Ghazna, Bust, Lashkari Bazar
The highland capital, the lowland winter city on the Helmand, and the nearby palace complex excavated in the twentieth century.
Nishapur, Herat, Balkh, Khwarazm, Rayy
Principal cities and regions of the western and northern Ghaznavid empire.
Lahore, Multan, Mathura, Kannauj, Somnath
Indian cities and temples that figure in the Ghaznavid campaigns, with Lahore becoming the later capital.

Core Vocabulary Preview

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

GhaznavidGhulam (pl. ghilman)HajibAmir SultanLaqabDīvānVizier Dīvān-e resālat (chancery)ʿĀriḍ (army controller)Barid (intelligence and post)Iqtaʿ QasidaMadḥ (panegyric)AdabPersianate Hindu ShahiQarakhanidOghuzKarramiyya GhaziGhanima (booty)Ismaʿili / QarmatiTarikh (history) Lashkari BazarPanegyric
Section 37.1 · Division I — From Samanid Military Service to the Ghaznavid Dynasty

The Eastern Frontier after the Samanids

The Ghaznavid state began on a frontier, and its character cannot be understood without the landscape, routes, and military system that produced it. This section establishes the strategic position of Ghazna and its neighbors, and explains the Samanid military-slave system in which the dynasty's founders rose. It does not narrate the Samanid dynasty's own history, which belongs to Chapter 35.

Ghazna stands on the high plateau of what is now eastern Afghanistan. Its altitude gives it cold winters and a short growing season, and its agriculture depended on irrigation from streams and underground channels. These were not the conditions of a great agricultural heartland such as the Sawad of Iraq or the oases of Khurasan. What Ghazna offered was position. From it, roads descend toward the Kabul valley, the passes of the Hindu Kush and Sulaiman ranges, and the Indus plain; roads run north to Balkh and the Oxus, and west to Bust, Sistan, and Herat. The city sits where several zones meet: the Iranian plateau to the west, Central Asia to the north, and the Indian subcontinent to the east. Chapter 1 described the plateau's eastern frontier as a region that the common western orientation of Iranian history tends to neglect, and the Ghaznavids are the best example of what such a frontier could produce.

Nearby centers had distinct characters. Bust, on the Helmand in the warmer lowlands to the southwest, was a regional capital with a long history and became a winter residence of Ghaznavid rulers. Kabul and the lands around it were the domain of the Hindu Shahi dynasty, whose kings controlled the valleys through which armies and merchants passed toward the Indus. Zabulistan, the region around Ghazna itself, had been contested among local rulers and Muslim governors for generations. The tenth-century geographers describe a border region whose inhabitants included Muslims, Hindus, and Buddhists, and whose politics were shaped by highland chiefs and by a handful of fortified towns.

North and west lay Khurasan, a name that Chapter 1 explained as designating a historical region far larger than the modern Iranian provinces that bear it. In the tenth century it was the richest part of the eastern Islamic world, with the great cities of Nishapur, Herat, Balkh, and Marv; it was also the territory the Samanid amirs entrusted to their senior military commander. Beyond Khurasan lay Transoxiana, the Samanid heartland, which the Oxus separated from the south. A commander who held Ghazna thus stood at the meeting point of the Samanid east and the Indian frontier, and a commander who controlled Khurasan could also threaten Transoxiana.

The Samanid military system supplied the commanders. Like other Islamic states of the period, the Samanids recruited military slaves, ghilman (singular ghulam), from the Turkic peoples of the steppe, whom they obtained through trade, raiding, and tribute. These young men were converted to Islam, trained in horsemanship and archery, and attached to the household of the ruler or a high official. Some rose to high rank, becoming provincial governors or commanders of the army. This path of upward mobility made the system attractive to ambitious soldiers and useful to rulers, who obtained loyal and skilled commanders without the competing tribal and family loyalties of free commanders. It also contained a danger, which the Samanids would eventually learn: slave commanders who controlled armies and provinces could use that power to make and unmake rulers.

Geography Study

Ghazna to the Indus: Routes, Passes, and Regions

Using a physical map of Afghanistan, eastern Iran, Central Asia, and northwestern South Asia, and remembering that eleventh-century regions do not match modern borders, students should locate:

  • Ghazna on the plateau, and the roads leading from it toward Kabul, Bust, Balkh, and the Indus
  • Bust and the Helmand valley, a lowland corridor toward Sistan
  • The Kabul and Peshawar valleys and the Indus crossing near Waihind (Und), the gateway to the Punjab
  • Lahore and Multan in the Indus plain, and the desert and river routes leading south toward Sind and Gujarat
  • Khurasan's cities, Nishapur, Herat, Balkh, and Marv, and the Oxus river separating the Ghaznavid zone from Transoxiana
  • Khwarazm south of the Aral Sea, and Rayy on the edge of the Alborz

Geography Analysis Questions:

  1. Why might a base at Ghazna, rather than one in Khurasan, have been attractive to a commander who had lost a contest at the Samanid court?
  2. What advantages and disadvantages did Ghazna's altitude and climate create for a government that needed to move armies seasonally?
  3. How did the Hindu Kush passes link Ghazna to both Central Asia and India?
  4. Why did the Oxus matter as a political frontier in the Ghaznavid period?
Section 37.2

Alptigin and the Establishment of a Military Principality at Ghazna, 961–963

The Ghaznavid dynasty is customarily dated from 977, but its immediate prehistory begins in 961 with a failed intervention in a Samanid succession. The founder of the principality at Ghazna was Alptigin, a Turkic slave commander who had risen in Samanid service to the senior military office, that of chief chamberlain and governor of Khurasan. The sources agree on the outline of his career while differing on details, and the evidence is a mixture of Persian and Arabic narrative traditions written later in the eleventh century and afterward.

Historical Vocabulary
Ghulam and Hajib

Definition: A ghulam (plural ghilman) was a young man, usually of Turkic origin, purchased or captured, converted to Islam, and trained for service in a ruler's household and army. A hajib was a chamberlain; in the Samanid and Ghaznavid systems the title could designate a high military and court officer, and the hajib-e bozorg ("great chamberlain") was a senior commander.

Historical context: Alptigin held the rank of great chamberlain under the Samanids. Under the Ghaznavids, palace ghilman, trained within the sultan's household, supplied many of the army's officers and the rulers' closest associates, and the term ghulam could describe both a technically unfree person and a powerful commander with his own estates and retinue.

Why it matters: The system explains how men of unfree origin became rulers: the Ghaznavid dynasty itself began as a slave commander's principality, and the career of Sebuktegin, who was a former slave of Alptigin, shows how mobility within a military household could end in kingship.

Potential misunderstanding: Military slavery in this period was very different from agricultural or domestic slavery, and the rank and wealth of a ghulam commander could exceed those of many free people. This does not mean that enslavement was benign: the acquisition of young men through trade and raiding involved coercion and uprooting, and most enslaved people never rose to command.

The death of the Samanid amir ʿAbd al-Malik in 961, according to the traditional accounts after a fall from his horse, opened a succession dispute at Bukhara. Alptigin, then governor of Khurasan, was part of the circle that supported a different candidate from the one who prevailed. When the court at Bukhara installed the amir's brother Mansur, Alptigin's position became untenable. According to the sources, he withdrew from Khurasan with his followers rather than submit and move into the Samanid center, and a force sent against him failed to destroy him. He moved eastward to Ghazna.

The move to Ghazna was not necessarily intended as a permanent withdrawal. Alptigin may have seen the highland town as a refuge where he could rebuild his position, and Samanid sources continued to treat him as a rebellious or semi-independent subordinate. In 962 he took Ghazna from a local ruler whom the sources call Abu Bakr Lawik, a member of a family that had held the town and its district. The ethnic and political character of the Lawik rulers is poorly documented, and students should not treat the term as evidence of a particular modern identity. The conquest gave Alptigin a base, a body of troops, and a region from which to raid or negotiate. He died in 963, having held Ghazna for roughly a year.

The years after Alptigin's death are among the most confusing in early Ghaznavid history. The sources name several successors, including Alptigin's son Ishaq, a commander called Balkatigin, and a commander called Pirey, but they disagree about the order, the length of each rule, and the circumstances. The Lawik chief at one point recovered Ghazna, and the Samanid court at Bukhara intermittently attempted to assert its authority over the town. What is clear is that Ghazna in this period was a small military principality governed by slave commanders who obeyed the Samanids, if at all, only when it suited them, and that no institution of hereditary succession existed. Command passed among the commanders of Alptigin's household according to ability, support among the troops, and the favor of the court at Bukhara.

Students should note a distinction that the later tradition tends to obscure. Alptigin's principality was a Samanid-derived military command that had fallen out with its overlord, not a new dynasty. It lacked a ruling family, a clear territorial claim, a developed administration, and any public ideology of rule beyond the personal authority of a successful commander. Historians date the dynasty from Sebuktegin partly because it was under Sebuktegin that a stable line of succession, a larger territory, and the beginnings of a political program appeared, and partly because Sebuktegin's son Mahmud would later look back on his father as the founder. Alptigin is better understood as the founder of the principality from which the dynasty grew. The spelling Alptigin should be distinguished from the commander Alptakin who appears in Baghdad in Chapter 36: the two were different persons.

The evidence for these early decades comes from sources written long after the events, including Gardizi's Persian history and later chronicles whose authors drew on court tradition. This matters because the Ghaznavid rulers, once established, had an interest in presenting their origins in the best light, and traditions about slave origins, victories over the Hindu Shahis, and loyalty to the Samanids were shaped by that interest. Where the sources disagree, the safest course is to accept the broad outline, a Samanid commander's withdrawal and conquest of Ghazna in the early 960s, and to treat details of the first successors as uncertain.

Section 37.3

Sebuktegin and the Consolidation of Ghaznavid Power, 977–997

The man whom tradition treats as the real founder of the dynasty, Sebuktegin, took power at Ghazna in 977. He is a clear example of how the sources combine contemporary information with later tradition. His name, which is spelled in a variety of ways, is Turkic. The sources say that he was a Turk from the region of Barskhan, near Lake Issyk-Kul in Central Asia, that he was captured or sold as a boy, that he was acquired by a slave merchant and eventually bought by Alptigin, and that he rose through the ranks of Alptigin's household. This account, recorded in Gardizi and elsewhere, is probably based on information available to the court, but it was also elaborated. Later genealogies, written after the dynasty's rise, traced Sebuktegin to the Sasanian royal line, a claim that historians treat as a later construction designed to bolster dynastic legitimacy, much as the Buyids claimed descent from Bahram Gur.

Sebuktegin's rise followed a pattern familiar from the Samanid system. He served under Alptigin and his successors, married the daughter of Alptigin according to the sources, and became a leading commander. In 977, when the commander Pirey proved oppressive and the troops turned against him, Sebuktegin was chosen to take his place. The chronology of his acceptance varies, but the sources agree that he came to power with the support of the military household and that the Samanid court recognized him, giving him the position of a governor loyal to the amir at Bukhara. He did not immediately declare independence; for most of his reign he acknowledged Samanid sovereignty, mentioning the Samanid amir in the Friday sermon and on the coinage of the principality.

His government was a military one. Sebuktegin's army consisted of Turkic ghilman, the soldiers who had followed Alptigin, and troops from the region around Ghazna, including Afghan and other local groups. The sources emphasize his discipline, his careful handling of his troops, and his reputation for justice, which later tradition made the basis of a reputation for piety. These accounts were shaped by dynastic interest, but they also indicate a ruler who had learned from decades of military politics that a commander who failed to pay and reward his troops would not remain in power.

Sebuktegin's expansion proceeded outward from Ghazna. He took Bust and brought the lowland region of the Helmand under his control, extended his authority into Zabulistan and Gardez, and moved toward the Kabul valley. In the east, his advance brought him into direct conflict with the Hindu Shahi kingdom of Jayapala, whose territories reached from Kabul across the Indus. The sources report campaigns in the 980s and early 990s in which Sebuktegin took forts, seized Hindu Shahi territory in the Laghman and Peshawar region, and defeated Jayapala in a major engagement. The accounts, which come from the Ghaznavid tradition, describe these victories as the beginnings of a holy war against idolaters, and they identify Jayapala's defeat as a turning point. The details, including numbers and precise locations, are not independently documented, and the accounts' religious language reflects the later interests of the dynasty. Section 37.10 returns to the Hindu Shahis in detail.

Sebuktegin's relationship with the Samanids illustrates the complexity of his position. In the 990s the Samanid amirate was struggling with rebellious commanders in Khurasan, especially Abu ʿAli Simjuri and Faʾiq, who challenged the authority of the young amir Nuh II. In 994 Nuh appealed for help to Sebuktegin, who came north with his son Mahmud and defeated the rebels. As a reward, Nuh gave Sebuktegin a new honorific title and appointed Mahmud governor of Khurasan with the title Sayf al-Dawla. These honors confirm that the Samanids still regarded the Ghaznavids as subordinates, but they also placed a Ghaznavid prince in charge of the richest province in the Samanid state. When Sebuktegin died in 997, probably near Balkh or Tirmidh, his dynasty already held a territory extending from Ghazna through Bust and Zabulistan toward the Kabul valley and sat poised to enter Khurasan.

The question of what Sebuktegin had created is one that the sources answer in different ways. He had not founded an independent state in a formal sense; he had acted as a Samanid governor with unusual autonomy. He had built an army that could defeat both Hindu Shahi and Samanid rebels, a territorial base around Ghazna, and a tradition of succession by his own descendants that his sons would test. And he had, by his intervention in Khurasan, established the precedent that the Ghaznavids and the Samanid court could be partners, as well as rivals. The coming collapse of Samanid authority would turn that partnership into a competition for the Samanid inheritance.

Section 37.4

Mahmud's Early Career and the Succession Crisis, 997–998

Mahmud was born in 971, the son of Sebuktegin and, according to the sources, a woman of Zabulistan, which made him the child of a Turkic commander and a local mother. His early life is known mostly through later narratives, but the outline is clear: he served his father as a soldier, took part in the campaigns against the Hindu Shahis and the Samanid rebels, and by 994 held a position of responsibility in Khurasan. His governorship of the province, with its capital at Nishapur, gave him experience in dealing with the Samanid court, the leading Iranian families of Khurasan, and the learned and religious communities of the region. It also kept him away from Ghazna at the time of his father's death.

When Sebuktegin died in 997, the sources report that he had designated as his successor his younger son Ismaʿil, who according to tradition was the son of Alptigin's daughter, a connection that gave Ismaʿil a claim through the founder's household. The reasons for the choice are not certain. Some accounts suggest that Sebuktegin preferred the son of a woman of the military establishment to the son of a local woman, or that he judged Ismaʿil more reliable while Mahmud was absent in Khurasan. Others suggest that the choice reflected the interests of the military commanders at Ghazna, who preferred a young and manageable ruler. Whatever the reason, the designation was contested.

Mahmud, who was in Nishapur, did not accept it. The correspondence between the brothers, preserved in later tradition, shows Mahmud offering to share authority or to govern Khurasan under Ismaʿil's nominal rule, and Ismaʿil refusing. The sources describe a military confrontation near Ghazna in 998 in which Mahmud's forces, with support from his father's commanders and from Khurasan, defeated Ismaʿil's troops. Ismaʿil was captured and held, according to some accounts in a fortress for the rest of his life. Mahmud entered Ghazna and took power, apparently with the support of the leading commanders.

The episode shows the nature of Ghaznavid succession in this first generation. There was no rule that gave the throne to the eldest son, and no formal mechanism by which a ruler could secure the succession of his preferred heir against a determined rival with an army. What mattered was control of the military household, the treasury, and the support of senior commanders. Both Mahmud and Ismaʿil appealed to those groups. This pattern would recur, with dramatic consequences, in 1030, when Mahmud's own designated successor was displaced by his brother Masʿud, and again after 1040.

The transition from Sebuktegin to Mahmud also marks the change from a military principality to something that could be called a sultanate. Under Sebuktegin the Ghaznavid ruler was a governor and military commander with a subordinate relationship to the Samanid amir. Under Mahmud the ruler began to claim independent status, to seek legitimacy from the Abbasid caliph, to adopt royal titles and ceremonial, and to organize an administration modeled on that of the Samanids. The change did not happen overnight, but it took place with remarkable speed. Within two years of Mahmud's victory over his brother, the Samanid state would collapse, and the Ghaznavids would inherit most of its eastern territories.

Historians have disagreed about how much of this transformation reflected Mahmud's personal qualities and how much it reflected circumstances. The sources, written under the influence of the dynasty, present Mahmud as exceptionally able, pious, and just, and later literary tradition elevated him into a model of the ideal Muslim king. Modern historians treat these portraits with caution. The Samanid collapse, the availability of a large and experienced army, the resources of Khurasan, and Mahmud's own political skill all contributed. The next division explains how those factors combined. For now, the essential point is that in 998 a military principality of limited resources came into the hands of a commander who was prepared to turn it into something much larger.

Section 37.5 · Division II — Mahmud of Ghazna and the Construction of an Empire

Mahmud and the Acquisition of Khurasan, 998–1000

Mahmud's acquisition of Khurasan was the foundation of everything he later accomplished, because it gave him the revenue, the cities, and the legitimacy to create a state far larger than the highland principality he inherited. It occurred in the context of the collapse of the Samanids, whose long political decline Chapter 35 traces. This section explains how Ghaznavid forces took the eastern Samanid inheritance and why it mattered.

By the late 990s the Samanid court at Bukhara was dominated by competing generals and officials. Nuh II died in 997, and his son Mansur II came to the throne as a young man under the influence of the commanders Faʾiq and Bektuzun, who had been prominent in the factional struggles of the previous years. In 997 and 998 the Samanid commanders in Khurasan again fell out, and Mahmud, who held a Samanid governorship and a Samanid title and who had just won the contest for Ghazna, was drawn into the conflict. The details of the shifting alliances between Mahmud, Abu ʿAli Simjuri, Faʾiq, Bektuzun, and the amir are complicated and in places contradictory. In outline, Mahmud seized Nishapur and Khurasan in 998, defeated a Samanid-allied force, and held them in the face of commanders who still claimed to act in the name of the amir.

The Samanid state then fell apart. In 999 Mansur II was blinded and deposed by his own commanders, and his brother ʿAbd al-Malik II was placed on the throne for a brief period. The Qarakhanid ruler Ilig Nasr, who had been advancing from the northeast, entered Bukhara in 999 and brought the Samanid dynasty to an end as a ruling power, though members of the family continued to attempt a restoration for several years afterward. The Qarakhanids and Mahmud thus found themselves as the two principal claimants to the Samanid territories. The sources describe a settlement in which the Oxus river separated their spheres: Transoxiana went to the Qarakhanids and Khurasan to Mahmud. This was not a formal partition so much as an accommodation between two armies that had reached the river, and it was periodically tested, as Section 37.7 explains.

Control of Khurasan brought immediate benefits. Nishapur was one of the largest cities of the Islamic world, a center of commerce, textile production, and learning, and the seat of a thriving community of jurists, preachers, and notables. Herat and Balkh were rich provincial capitals. Marv and the northern oases controlled roads toward the steppe. The agricultural land of Khurasan, irrigated by rivers and underground channels, generated substantial land revenue; its cities generated market taxes and customs; and its population supplied soldiers, officials, and craftsmen. A state with a base in Khurasan could support an army many times larger than one based only at Ghazna and Bust.

Mahmud also inherited, along with the territory, much of the Samanid administrative apparatus. The secretaries, accountants, and officials who had served the Samanids, many of them from established families of Khurasan, continued to work under new masters. This continuity allowed the Ghaznavid government to function without having to create an administration from scratch, and it introduced into the Ghaznavid court the Persian-speaking, literate elite whose language and habits would shape Ghaznavid culture. Section 37.17 examines the government in detail; for now, the point is that the acquisition of Khurasan gave Mahmud not only territory but personnel.

Cause and Effect

How Control of Khurasan Enlarged the Resources of Mahmud's State

Long-term causes

The Samanid system had concentrated wealth, administration, and military manpower in Khurasan and Transoxiana, while relying on Turkic slave commanders who could become independent. Over decades, the center at Bukhara lost control of its own generals.

Short-term causes

Succession crises at Bukhara, the rivalry of commanders, and the advance of the Qarakhanids from the northeast left Khurasan without a defender at the moment when Mahmud had just secured Ghazna and commanded an experienced army.

Event

In 998–999 Mahmud took Nishapur and the Khurasan cities, and an accommodation with the Qarakhanids along the Oxus left him in control of the province.

Immediate effects

Land revenue, urban taxes, administrative personnel, mints, and recruits flowed to the Ghaznavid government, and Mahmud gained a base from which to seek recognition from the caliph and to organize campaigns in India.

Long-term consequences

The Ghaznavid state became dependent on Khurasan's revenue and on a Persian-speaking bureaucracy, which shaped its culture and its vulnerabilities. When Khurasan was lost to the Seljuks in 1040, the empire's financial foundation collapsed.

Historical complexity

Khurasan's resources did not by themselves create an empire. They became decisive because Mahmud had an army capable of exploiting them and an administration capable of collecting revenue, and because rivals were weakened. A single-cause explanation, whether geographic, military, or personal, does not fit the evidence.
Section 37.6

The Sultan, the Abbasid Caliph, and Sunni Political Legitimacy

A conqueror who took power through military force still needed to explain why others should obey him. Mahmud addressed this problem by seeking recognition from the Abbasid caliph, adopting titles and ceremonial of kingship, and presenting himself as a defender of Sunni Islam against heretics and idolaters. This section examines those strategies and the ideology that grew from them, and it does not assume that any one of them defined the dynasty.

The caliph at Baghdad in this period was al-Qadir, who reigned from 991 to 1031 and whose actual power was limited by the Buyid rulers who controlled the city, as Chapter 36 explains. What al-Qadir possessed was the authority to confer recognition. Soon after Mahmud took Khurasan, the sources report, a caliphal envoy brought him a diploma of investiture, robes of honor, and honorific titles, among them Yamin al-Dawla ("Right Hand of the State") and Amin al-Milla ("Trustee of the Religious Community"). The titles echo those given to Buyid rulers, but they expressed a different relationship. For the Buyids, the caliph was a prisoner whose recognition they extracted; for Mahmud, the caliph was a distant source of legitimacy whom he could treat with deference without risk of interference. Mahmud's correspondence with Baghdad, which the sources describe, included announcements of military victories, especially against Indian and Ismaʿili opponents, and he presented himself as a champion of the caliph's cause.

Historical Vocabulary
Amir and Sultan

Definition: Amir (commander, governor, prince) was the usual title of a military ruler who governed under the authority of the caliph. Sultan, an Arabic word meaning power or authority, came increasingly to be used in this period as a title or descriptive term for a ruler who held effective power.

Historical context: The sources use different titles for the Ghaznavid rulers, sometimes within the same text. Bayhaqi often calls Masʿud "the amir," while other authors and later tradition describe Mahmud as "the sultan." The word did not yet have the fixed meaning it would acquire under the Seljuks, and its use shows an evolving political vocabulary rather than a settled title.

Why it matters: Titles reveal how rulers sought to present their authority and how contemporaries understood it. The Ghaznavid titles combined caliphal honorifics, which expressed subordination to the caliph, with royal and military vocabulary that expressed power.

Potential misunderstanding: Students should not conclude that Mahmud was the first ruler to use the word sultan, or that the title carried a precise constitutional meaning. Earlier rulers, including Buyid and Samanid officials, were described by related terms, and the formalization of the sultanate belongs to later chapters.

Mahmud's Sunni identity was both sincere and strategic. The Ghaznavid court employed Sunni jurists, supported mosques and religious schools, and promoted a style of rule in which the sultan was the protector of the Muslim community and the enforcer of religious law. This stance had practical advantages. It distinguished the Ghaznavids from the Shiʿi Buyids to the west and the Ismaʿili Fatimids, with whom the caliph at Baghdad was in rivalry. It gave Mahmud a basis for appealing to the jurists and preachers of Khurasan, whose support was valuable in the cities. And it provided a religious vocabulary for justifying warfare against non-Muslim and heterodox opponents. Mahmud was described in the sources by the title ghazi, a warrior for the faith, and his campaigns were reported to the caliph in the language of jihad.

Yet the religious politics of the Ghaznavid court were more complicated than a single doctrinal line. The court included Hanafi and Shafiʿi jurists, whose schools competed for patronage. It supported the Karramiyya, a devotional and ascetic movement strong in Khurasan, at least at some points in Mahmud's reign, and it also gave a place to Ashʿari theologians. It persecuted people whom it regarded as heretics, notably Ismaʿilis and Qarmatis, and in its later years took action against Muʿtazilites and other groups in the western territories it conquered. The sources, written largely from a Sunni perspective, tend to present this persecution as piety, and modern historians stress that it also served political ends: the elimination of rivals, the confiscation of property, and the demonstration of loyalty to the caliph. The institutional history of Sunni scholarship and Shiʿi communities belongs to Chapter 40.

The court ceremonial of the Ghaznavids drew heavily on Persian and Abbasid precedent. Audiences, the conferring of robes of honor, formal banquets, festivals such as Nowruz and the two great Islamic feasts, and processions of elephants and troops all served to display power and to bind officials and soldiers to the ruler. Gardens and palaces at Ghazna, Bust, and elsewhere provided settings. The ceremonial was not merely decoration. It structured relationships among the ruler, his household, his officials, and his visitors, and it communicated to rivals and subjects the extent of the ruler's resources.

Primary Source Window

Al-ʿUtbi, al-Tarikh al-Yamini ("The Yamini History"), and the Construction of Mahmud's Royal Reputation

Creator: Abu Nasr Muhammad al-ʿUtbi (d. probably in the 1020s), a secretary in the Ghaznavid chancery under Sebuktegin and Mahmud · Date: composed in the early eleventh century, covering events to around 1020 · Type: Arabic court chronicle in ornate rhymed prose, named after Mahmud's title Yamin al-Dawla

Context: Al-ʿUtbi belonged to a family that had served the Samanid and Ghaznavid chanceries, and he wrote at the court for the glorification of the dynasty. The work is organized around the reigns of Sebuktegin and Mahmud and above all around Mahmud's wars. It was composed in Arabic, the prestige language of the learned class, in a heavily ornamented style that favors rhyme, parallelism, and elaborate metaphor. Its fame was such that it was translated into Persian in the early thirteenth century, and this later Persian version is the form in which much of the work is read.

Paraphrase (not a quotation): The text presents Mahmud as a ruler chosen to defend Islam. His victories over the Hindu Shahis and other opponents are described as triumphs of the faith over idolatry, his troops as soldiers of God, and his generosity and justice as qualities befitting a successor to the great kings of the past. The prose often prefers metaphor and rhetorical elaboration to precise detail, and the chronological order of events is loosely handled, with many campaigns lacking exact dates and locations.

Analysis: The work is invaluable as evidence of how the court wanted Mahmud's reign to be understood. Its language of holy war, its presentation of campaigns as service to the caliph, and its elevation of the ruler show a developing ideology. It also contains information that no other source provides, including accounts of Sebuktegin's and Mahmud's early campaigns and of the Indian expeditions down to around 1020.

Limitations: Al-ʿUtbi was a court secretary writing for a patron, and his prose is shaped by panegyric conventions. Dates are often missing or imprecise. Numbers of captives, casualties, and booty are given in rhetorical rather than documentary form. The account tells us little about the experience of the conquered, of cultivators, or of soldiers. This is a thematic synopsis of the work as a whole, not a paraphrase of one identifiable passage; consult a published translation and a specified passage before quoting or conducting close textual analysis.

Perspective: A Muslim secretary of the Ghaznavid court, writing in Arabic for the sultan and the learned elite. Not represented: the Hindu Shahi rulers and their subjects, the Ghaznavid ordinary soldier, women, or the cultivators of Khurasan.

Questions for students:

  1. What does the source say about the nature of Mahmud's rule and the purposes of his wars?
  2. Who created it, and how did his position at court shape what he wrote?
  3. What purposes might the choice of Arabic and an ornate style have served?
  4. What can historians learn from it about the ideology of the Ghaznavid court?
  5. What can historians not establish from this source alone, and what other evidence would help?
Section 37.7

The Qarakhanids and the Northern Frontier

The Oxus frontier was the Ghaznavids' most important border in the north, and relations with the Qarakhanids, the Turkic dynasty that dominated Transoxiana after 999, were a recurring concern of Mahmud's reign. Understanding that relationship shows the limits of Ghaznavid power and the diplomatic methods the dynasty used to manage a neighbor it could not easily conquer.

The Qarakhanids were a confederation of Turkic ruling families whose rulers had converted to Islam in the tenth century. Their domains lay in Kashgar, Balasagun, and the Ferghana valley, and after taking Bukhara they became the masters of Samarkand, Bukhara, and the old Samanid heartland. They were not a single centralized state; authority was divided among members of the ruling house, and a senior ruler with the title Ilig Khan or Qadir Khan sat above subordinate princes. This structure made them hard to deal with, because an agreement with one prince did not necessarily bind another, and it also made them vulnerable to internal rivalry that the Ghaznavids sometimes exploited.

The boundary between the Ghaznavid and Qarakhanid zones along the Oxus was agreed after the Samanid collapse but never wholly stable. The Qarakhanids invaded Khurasan in the first decade of the eleventh century, taking advantage of Mahmud's absence in India. The sources describe a major engagement in the area of Balkh around 1008, in which Mahmud's army, reportedly with the help of elephants, defeated the invaders. Mahmud's response to such threats shows a pattern: he would withdraw from India, defeat the Qarakhanid forces, and then use diplomacy and marriage alliances to restore relations. Marriages between the two ruling houses, and the exchange of embassies, helped to stabilize the frontier, though the sources suggest that mistrust persisted.

Mahmud crossed the Oxus himself in the mid-1020s. In 1025 he led a campaign into Transoxiana, reportedly in connection with a rivalry among the Qarakhanid princes, and met the senior Qarakhanid ruler Qadir Khan Yusuf in a ceremonial meeting in the region of Samarkand. The accounts of the meeting describe elaborate courtesy, an exchange of gifts, and arrangements for marriage alliances. The event is a good example of the interplay of force and diplomacy that characterized the northern frontier. It also shows that Mahmud, despite the reputation he acquired as a conqueror, understood the limits of what he could hold. He did not attempt to annex Transoxiana, a territory far from his bases and populated by a society with its own political traditions.

Control of regions south of the Oxus was another issue. The mountain principalities of Tokharistan and Chaghaniyan, the territory of the Farighunid rulers of Guzgan, and the small kingdoms of Ghur were all potential sources of revenue and manpower, and Mahmud brought them under Ghaznavid authority through a combination of campaign and negotiation. The campaign against Ghur, which the sources date to around 1010 and 1011, brought the mountain region under Ghaznavid control; its rulers remained vassals, and the region would later produce the Ghurid dynasty that overthrew the Ghaznavids. This irony reminds students that the control of a frontier region at one moment does not determine its political future.

The northern frontier also had a nomadic dimension. The steppe beyond the Oxus was populated by Turkic pastoralists, including Oghuz groups, who moved with their herds across the grasslands and sometimes into the cultivated oases. The Ghaznavid and Qarakhanid states both tried to regulate these groups by recruiting them as soldiers, by granting them pasture, and by pushing them away from key frontiers. How the Ghaznavids dealt with the Oghuz and the Seljuks is the subject of Section 37.29, but the origins of that problem lie in the policies of Mahmud's reign, when groups of Turkmen were allowed to settle in Khurasan under conditions that proved unstable.

Section 37.8

The Conquest of Khwarazm, 1017

Khwarazm, the oasis region on the lower Oxus south of the Aral Sea, was an area of exceptional economic and intellectual importance in the early eleventh century, and its incorporation into the Ghaznavid system in 1017 extended Mahmud's authority to the northwest and brought one of the great scholars of the age into his circle. The episode shows how dynastic politics, family ties, and military opportunity could combine to bring about conquest.

Khwarazm was ruled in the late tenth century by two successive dynasties of local origin. The Afrighids, an old ruling house with pre-Islamic roots, were overthrown around 995 by the Maʾmunids, who ruled from Gurganj (Urgench) and had established themselves as the principal power of the region. Their rulers gave Khwarazm a period of prosperity and patronage. The region's agriculture depended on irrigation from the Oxus, and its commerce linked the steppe to the Islamic world, exporting furs, horses, and other goods from the northern steppe and receiving manufactured goods in exchange. Khwarazm's cities were centers of learning, in mathematics, astronomy, medicine, and philosophy, and its court attracted scholars.

Relations between the Maʾmunids and Mahmud were cordial at first. The Maʾmunid ruler Abu al-ʿAbbas Maʾmun had married a sister of Mahmud, so that the two families were connected by marriage. The Maʾmunids acknowledged Ghaznavid sovereignty to some degree. The trouble began when Mahmud pressed the Maʾmunid ruler to recognize his overlordship more explicitly, including the mention of his name in the Friday sermon. According to the sources, the demand was resented by the Khwarazmian army, which rose against its ruler in 1017 and killed him. Mahmud, who had a legitimate interest in the fate of his brother-in-law, invaded Khwarazm to punish the rebels, defeated the Khwarazmian troops, and took control of the province.

Mahmud then installed a Ghaznavid governor, the hajib Altuntash, who held the title of Khwarazmshah and who administered the region as a semi-autonomous vassal. Altuntash and his successors remained loyal to the Ghaznavids for some years, but the region's distance from Ghazna and its connections to the steppe gave its governors considerable independence. Altuntash's death in 1032 while fighting against the Qarakhanids, and the subsequent revolt of his son, would help to weaken the Ghaznavid position in the north. In the long run, Khwarazm would become the base of a distinct dynasty that played a major role in the history of Iran after the Seljuks; Chapter 44 examines the Khwarazmian empire.

The conquest had intellectual consequences. The Khwarazmian court had gathered scholars, among them Abu Rayhan al-Biruni, a native of the region who had worked under the Maʾmunids. After the Ghaznavid conquest, al-Biruni was taken, or came, to Ghazna, where he would spend much of the rest of his life. His relationship with Mahmud and with Masʿud illustrates the ambivalence of scholarly patronage: he gained access to resources and to opportunities for study that Khwarazm could not provide, particularly through contact with India, but his position was that of a scholar attached to a conquering court rather than a free agent. Another Khwarazmian scholar, the physician and philosopher Ibn Sina, left the region rather than accept Mahmud's summons, according to the tradition. Chapter 43 considers the intellectual history in detail; here it is important to see that the political conquest of Khwarazm moved people as well as territory.

The annexation also illustrates Ghaznavid methods. Mahmud used marriage ties and the pretext of avenging a murdered relative to justify military action, installed a trusted commander rather than ruling directly, and left the existing administration and local institutions largely in place. This pattern of indirect rule, with a vassal governor responsible for revenue, tribute, and military support, would characterize Ghaznavid control of many distant regions. The advantage was economy: the Ghaznavid state did not need to create new institutions. The disadvantage was that distant governors could become independent when the center weakened.

Section 37.9

Sistan, Kirman, Rayy, and the Western Limits of Ghaznavid Power

Mahmud's armies are remembered above all for their campaigns in India, but a large share of his state's military effort was directed westward, into the territories of eastern and central Iran. These campaigns show that Ghaznavid ambitions were not confined to the subcontinent and also reveal the limits of Ghaznavid control. The intervention at Rayy in 1029 was the most dramatic of these ventures and also the last major conquest of Mahmud's reign.

Sistan, on the lower Helmand and the border of modern Iran and Afghanistan, was an old Iranian region of strategic importance. It had been the base of the Saffarids, whose rise Chapter 34 narrates, and in the late tenth century it was governed by a local line of rulers descended from the Saffarid family. These rulers, the Banu Khalaf, were Sunni Muslims who nominally acknowledged the Samanids. Mahmud's armies entered Sistan in 1003 and, according to the sources, captured the capital, took the ruler Khalaf ibn Ahmad prisoner, and carried him into confinement. The conquest gave the Ghaznavids control of the Helmand corridor connecting Bust with the Iranian plateau and removed a potential rival along their southwestern frontier. Sistan was governed through appointed officials thereafter, and the region would remain an important part of the Ghaznavid realm until the Seljuk period.

To the west, Kirman, Gurgan, and the northern Jibal were regions where Buyid, Ziyarid, and local rulers held power. Mahmud's relationship with these territories was one of intermittent pressure rather than systematic conquest. The Ziyarid ruler of Gurgan and Tabaristan acknowledged Ghaznavid overlordship, and marriage ties linked the Ziyarid house to Mahmud's. Kirman remained primarily within the Buyid sphere, with only occasional Ghaznavid interest, and students should be wary of statements that the Ghaznavids ever governed Kirman in any systematic sense. The administrative control of the western territories was uneven, and the sources distinguish between regions where Mahmud's officials collected taxes, regions where local rulers paid tribute, and regions where the sultan's name was merely mentioned in the sermon.

The Buyid city of Rayy was the western prize. Rayy was a large commercial and intellectual center on the road between Iraq and Khurasan, and by the 1020s it was governed by the Buyid prince Majd al-Dawla, whose mother Sayyida had ruled on his behalf for many years, as Chapter 36 explains. After Sayyida's death around 1028, the army of Rayy, discontented with the weak ruler, and a number of local notables appealed for outside help, according to the narratives. In 1029 Mahmud marched against Rayy, defeated the Buyid forces, and captured the city. Majd al-Dawla was taken prisoner and sent east.

The conquest was accompanied by religious rhetoric. According to Sunni narrators, Mahmud acted against Shiʿi, Ismaʿili, and Muʿtazili figures in the city, burned books deemed heretical, and executed or punished individuals accused of heresy. Mahmud also appears to have dispatched a letter to the caliph presenting the conquest as a victory for Sunni Islam against the Buyids' toleration of heresy. These accounts reflect the partisan interests of their authors, and the extent and character of the destruction cannot be reconstructed with precision. What is clear is that the capture of Rayy removed the Buyid branch there, shifted the political geography of western Iran, and extended Ghaznavid power as far as the borders of the central Jibal.

The limits of Ghaznavid power in the west quickly became apparent. Mahmud's forces advanced beyond Rayy, and Mahmud's son Masʿud, who had been given command in the west, occupied Hamadan and Isfahan in 1030. But the local Kakuyid ruler of Isfahan, ʿAla al-Dawla Muhammad, recovered the city after Mahmud's death, and the Ghaznavid forces were driven back. The West was too far from Ghazna, its rulers too well rooted, and the Ghaznavid army too committed elsewhere for the conquests to be secure. This overextension helped to set the stage for the crisis of Masʿud's reign, discussed in Section 37.28.

By the end of Mahmud's reign, the Ghaznavid empire stretched from the Caspian foothills and Rayy to the Punjab, and from Khwarazm to Sistan. It was a large territory, but it was heterogeneous, and control varied greatly. Some regions, like Khurasan and the Punjab, were administered directly; others, like Khwarazm and Ghur, were governed by vassals; and still others, like the western Jibal, were held by military occupation alone. Students should use the word empire with these distinctions in mind and should resist the impression that all parts of the Ghaznavid realm were integrated in a single system.

Section 37.10 · Division III — Military Expansion into Northern India

The Hindu Shahis and the Northwestern Indian Frontier

The Indian campaigns of Mahmud of Ghazna were not directed at an empty or undefended land. They began against a specific political entity, the Hindu Shahi kingdom, which had controlled the Kabul and Peshawar valleys and parts of the Punjab for generations, and they continued into regions with their own kings, armies, temples, and trading networks. This section establishes the political geography of the frontier and explains the early Ghaznavid-Shahi conflict that preceded Mahmud's major campaigns.

The Hindu Shahis, sometimes called the Shahis of Kabul or of Udabhandapura (Waihind), ruled a kingdom that had earlier been centered on Kabul and whose later seat was on the Indus. The dynasty's origins lie in the Turkic and Indian political world of the seventh to ninth centuries, and its kings governed a diverse population that included Hindus, Buddhists, and, in places, Muslims. Their kingdom controlled the routes through the Kabul and Khyber valleys and the crossings of the Indus, a strategic position that gave them influence over trade between Central Asia and India and made them the natural opponents of any power moving east from Ghazna. By the tenth century, they had lost Kabul to Muslim rulers and had moved their capital east of the Khyber Pass.

Their principal source of information for historians is the Ghaznavid narrative tradition, supplemented by the work of al-Biruni, who preserved information about the dynasty, and by Kashmiri and other Indian sources that mention the Shahi kings. Coins, struck with a horseman and a bull, survive and testify to a distinct political identity. These sources are uneven, and much that we know about the Shahis comes from the pen of their enemies, a reminder that the Shahi kings appear in the record largely as opponents of Ghaznavid expansion.

The conflict between the Ghaznavids and the Shahis began under Sebuktegin, as Section 37.3 noted, and under Jayapala, the Shahi king in the late tenth century, the Shahis tried repeatedly to resist the loss of territory. The sources describe Jayapala's defeats in the 980s and 990s and his alliances with other Indian rulers. After Mahmud took power in 998, he turned to the Hindu Shahis once the situation in Khurasan was secure. In 1001, the sources report, Mahmud advanced from Ghazna with a large force, crossed the mountains toward Peshawar, and met Jayapala in battle near that city in the winter of that year. The Ghaznavid army, including cavalry and archers, defeated the Shahi army, which relied heavily on elephants and infantry. Jayapala was captured and later released on payment of a ransom and the surrender of forts and territory.

What followed was, according to the Persian sources, Jayapala's suicide. The narrative, repeated in several chronicles, says that Jayapala, humiliated by his capture, abdicated in favor of his son Anandapala and burned himself, in accordance with a custom the narrators attribute to Indian rulers who had suffered disgrace. The story illustrates how the sources present Indian customs to a Muslim audience, and its details should be treated with caution; it may reflect actual events, a literary convention, or a combination. What is certain is that Jayapala's reign ended in the early eleventh century and that the Shahi kingdom passed to Anandapala.

The battle of 1001 has often been presented as the decisive moment in the struggle, but it did not end the Shahi kingdom. Shahi power continued for another two decades, and the kings of the dynasty remained capable of mobilizing resources and allies. Mahmud's success depended less on a single victory than on his ability to maintain pressure year after year, to build and garrison fortresses, and to exploit divisions among his enemies. The Ghaznavids also benefited from internal Shahi weaknesses: succession disputes, defections, and the pressure of attacks from several directions. The next section examines how these processes unfolded.

It is also important to see the frontier from the Shahi side. For the Shahi kings and their subjects, the Ghaznavids were a foreign military power whose repeated invasions threatened their territory, their temples, and their capital. The Shahi rulers responded with defensive warfare, negotiation, and appeals to neighboring kings, and in some cases individuals within the Shahi family, such as a grandson of Jayapala who converted to Islam, took different paths. The Ghaznavid sources present Shahi resistance as stubborn paganism; a modern historian can also read it as a political struggle to defend a kingdom.

Section 37.11

Anandapala, the Hindu Shahi Resistance, and the Struggle for Punjab

After the defeat of Jayapala, the Shahi throne passed to Anandapala, and for roughly the next fifteen years the Hindu Shahi kingdom was the principal Indian opponent of the Ghaznavids. The campaigns of this period show Mahmud's methods, the reality of Indian resistance, and the gradual extension of Ghaznavid power into the Punjab, and they also show how much of our knowledge depends on narrators with specific purposes.

Anandapala was an experienced ruler who understood that his kingdom could not survive on its own. The sources, including the remarkable evidence of al-Biruni, show him as a ruler who tried both resistance and diplomacy. Al-Biruni records, in his study of India, that Anandapala wrote a letter to Mahmud proposing peace, in which he reportedly said that he had learned of Mahmud's war against the Turks and urged that the two rulers keep terms. The letter is evidence that the Shahi king was engaged in negotiation and that, at least at times, the Ghaznavids and the Shahis were in diplomatic contact. It also shows that al-Biruni, a Muslim scholar writing in the Ghaznavid world, preserved a source that gives a Shahi voice, however mediated. Students should note that al-Biruni's text should be consulted in a published translation before the wording is quoted.

The campaigns of the years after 1001 are described in the Ghaznavid sources in a pattern of annual expeditions. Mahmud's armies raided Shahi territory, besieged fortresses, and took plunder. In 1006 Mahmud's march toward Multan, discussed in the next section, brought him into conflict with Anandapala, who resisted the passage of the Ghaznavid army through his territory. Mahmud defeated him and pursued him into Kashmir, according to the sources. The most dramatic engagement of the period is the battle at Waihind or the plain near the Indus, dated by the sources to around 1008–1009. According to later Persian historians, including those writing in the sixteenth and seventeenth centuries, Anandapala assembled a great confederacy of Indian rulers, including kings from distant parts of northern India, and was defeated when his elephant panicked at a crucial moment. Contemporary or near-contemporary sources are much less explicit about the wide confederacy, and students should treat the larger, later versions with caution.

The dynasty did not collapse after Anandapala. His successors, including Trilochanapala and Bhimapala, continued to resist, relocating their capital eastward into the Punjab foothills and forming alliances with the rulers of Kashmir, the Hindu kingdoms of the plains, and other powers. The Kashmiri historian Kalhana, who wrote in the twelfth century, records the interplay between the Shahis and Kashmir, including Kashmiri resistance to Mahmud's own attempts to invade the valley. The Ghaznavid armies failed to take Kashmir, repelled, according to this tradition, in the region of the fortress of Lohara, a fact that shows the limits of Ghaznavid power even at its height.

Over time, the Ghaznavids pushed the Shahi frontier back. Forts such as Nandana and Bhimnagar, the latter associated with a wealthy temple, fell in the following years, and Ghaznavid garrisons were established in the Punjab. By about 1020 the Shahi kingdom had been reduced to a remnant, and by the end of Mahmud's reign it had effectively disappeared. Some members of the Shahi family took service with the Ghaznavids; others migrated to Kashmir or other Indian courts. The Punjab became a Ghaznavid province with its center at Lahore.

The conflict raises the question of why the Ghaznavids succeeded. Military superiority is one answer: the Ghaznavid army combined mobile cavalry with disciplined infantry and logistical organization and drew on the revenue of Khurasan and Ghazna. Political fragmentation among Indian kingdoms is another. The Hindu kingdoms of northern India did not form a lasting alliance against the Ghaznavids, in part because they did not perceive the Ghaznavids as a single existential threat and in part because their own rivalries were intense. But historians caution against reducing the outcome to technological or cultural explanations. The Hindu Shahis and their allies fought hard, won some engagements, and relied on elephants, forts, and local knowledge. The result was shaped by many contingencies.

One of the most consequential outcomes was the gradual establishment of a Ghaznavid presence at the Indus and in the Punjab. In practical terms it meant that the Ghaznavid state could now use the Punjab as a base for campaigns deeper into India, could draw on its revenues, and could recruit soldiers from among its population. It also meant that Ghazna and Lahore became connected by a road along which armies, officials, merchants, and ideas would travel for generations.

Section 37.12

Multan, Sind, and the Religious Politics of Conquest

Not all of Mahmud's enemies in the Indus valley were Hindu kings. The city of Multan, on the lower reaches of the Punjab rivers, was ruled by an Ismaʿili dynasty, and Mahmud's campaigns against it show how religious politics could shape military decisions in a more complicated way than the language of holy war against idolaters suggests. They also show the political value of attacking a Muslim opponent whom the caliphal establishment regarded as a heretic.

Multan was an old and prosperous city, famous for its temple of the sun and its position on the routes between Sind, the Punjab, and the Indian Ocean. In the tenth century it had come under the control of a dynasty that acknowledged the Fatimid caliphs of Cairo, whose Ismaʿili missionaries had been active in Sind and the Punjab for decades. The ruler of Multan in Mahmud's time, Abu al-Fath Dawud, belonged to this dynasty. Multan therefore represented a challenge to the Abbasid and Sunni order that Mahmud claimed to defend, and its Ismaʿili government made it a legitimate target in the eyes of the Sunni jurists and the caliph. It also gave Mahmud access to a rich city and to the trade of Sind.

Mahmud's march toward Multan in 1006 was interrupted by the resistance of Anandapala, as noted above, but the campaign continued, and the ruler of Multan paid tribute and submitted. In 1010, after a rebellion, Mahmud returned, took the city, deposed Dawud, and sent him into captivity in the fortress in Ghur. The sources, written from a Sunni perspective, describe the capture as a victory over heresy and report that the Ismaʿili community of Multan suffered punishment, including confiscation, forced allegiance, and in some accounts killings. The Friday mosque of Multan, which had been the center of Ismaʿili worship, was reportedly restored to Sunni use. A Ghaznavid governor was appointed, and the Ghaznavid administration took over. Chapter 41 examines the wider Ismaʿili setting.

The Multan episode shows several things. First, Mahmud was prepared to attack Muslim rulers when it served his interests and when religious justification was available. His treatment of Multan was not essentially different from his treatment of Rayy in 1029, where Shiʿi and Muʿtazili figures were targeted. Second, the Ghaznavid army's operations in India were not a unified campaign against a single enemy; they involved a series of distinct conflicts with different opponents. Third, religious language was flexible: the same chroniclers who described Hindu opponents as idolaters described Ismaʿili opponents as heretics, and in both cases the language legitimized violence and conquest.

The relations between Mahmud and other Muslim rulers in the region were also varied. In Sind, south of Multan, local Muslim rulers governed territories that acknowledged the Abbasid caliph in nominal terms, and Mahmud's relations with them included both diplomacy and force. In 1026, on the return from Somnath, his army would travel through Sind, an event that Section 37.14 describes. The Ghaznavids also dealt with Muslim converts and officials of Indian origin, such as the Shahi prince who converted to Islam and later returned to his earlier faith, an episode that the sources treat with severity and that Mahmud punished. Religious identity and political loyalty were intertwined, and conversion could be a political act.

For the people of Multan, the consequences were serious. The sources record the removal of the local dynasty, the imposition of a new governing class, and religious coercion. The community's Ismaʿili institutions were suppressed, though the extent to which Ismaʿili practice survived underground is uncertain. The city's commercial life, which depended on stable trade, was disrupted but not destroyed, and Multan remained an important regional center. It would later become the base of an Ismaʿili revival and, still later, the target of the Ghurids. The history of the city thus provides a view of the longer-term effects of Ghaznavid conquest on a society that had its own political and religious dynamics.

Section 37.13

The Campaigns toward Thanesar, Mathura, Kannauj, and the Gangetic Plain

Between about 1014 and 1022, Mahmud's armies advanced beyond the Punjab into the territories of the Gangetic plain, striking at Thanesar, Mathura, Kannauj, and other cities. These campaigns are the most famous of the Indian expeditions and are often treated as the center of Mahmud's reputation. They deserve careful treatment, because their significance has been inflated and distorted in later memory, and because their character differed from that of the campaigns in the Punjab.

The expeditions beyond the Punjab were raids rather than conquests. The army would march from Ghazna, cross the Indus, move through the Punjab, defeat or bypass local rulers, attack a major city and its temples, collect tribute and booty, and return. The Ghaznavids did not establish permanent administrations in these regions, and in most cases the local political order was restored after the army left. The purpose was to extract wealth, to destroy the power of rulers who might threaten the Punjab, and to demonstrate military strength, and the sources emphasize the religious dimension by emphasizing the destruction of temples and idols.

In 1014 Mahmud attacked Thanesar, a sacred center in the region of modern Haryana, and took plunder from its temple. The sources describe the sacred importance of the site and the removal of its principal image. In 1018 he led a major expedition, crossing the Jumna river and attacking a series of towns, including Baran, Mahaban, and Mathura, one of the most revered cities of the Hindu tradition, associated with the god Krishna. The sources, including al-ʿUtbi, describe Mathura as a city of extraordinary wealth and beauty, its temples filled with images of gold and silver, and the Ghaznavid army as plundering it for some days before departing. From Mathura the army marched against Kannauj, the capital of the Pratihara kingdom and a major city of northern India. The ruler Rajyapala did not fight and fled, and the city and its temples were taken. Rajyapala's flight discredited him among Indian rulers, and the Chandella king Vidyadhara, according to Indian and Persian sources, attacked and killed him. This led Mahmud to move against the Chandellas in the following years, in campaigns around 1019 and later toward Kalinjar and Gwalior.

The sources emphasize the scale of these operations, and their numbers should be handled with care. They report thousands of captives, large quantities of silver and gold, and the destruction of temples. These reports reflect the rhetoric of panegyric as well as actual events, and the figures vary from source to source. Numbers of captives in the tens of thousands, for example, appear in Ghaznavid sources, but they cannot be verified and may be exaggerated or rounded. What is clear from the combined evidence is that the campaigns brought large quantities of treasure and many captives to Ghazna and that they were a source of prestige and wealth.

The meaning of the destruction of temples has been much discussed. Temples were religious centers, but they were also political and economic institutions: they held royal and private wealth, were associated with the legitimacy of rulers, and were places where images of divine kingship were displayed. To attack a major temple was to attack the political order of the kingdom. Mahmud's sources framed the destruction in Islamic terms, as the removal of idolatry, and this framing gave religious meaning to what was also an act of political and economic warfare. Historians who emphasize the economic motive point out that temples were treasuries, and those who emphasize the religious motive point out the language of the sources and the symbolic power of iconoclasm. Section 37.15 returns to this debate.

Map Study

Ghaznavid Political Territories Compared with the Routes of Indian Expeditions

Using a map of the Ghaznavid world, with Mahmud's reign near its greatest extent, students should distinguish three zones and mark the expeditions of Sections 37.10 to 37.14:

  • Directly administered territory: Ghazna and Zabulistan, Bust, Khurasan, parts of Sistan, and the Punjab after about 1020, with Lahore as the later provincial center.
  • Vassal or tributary regions: Khwarazm under a Ghaznavid governor, Ghur and other mountain regions, the Ziyarid lands of Gurgan, and some Sind and Multan territories.
  • Regions of raid and occupation without lasting administration: Thanesar, Mathura, Kannauj, Kalinjar, Gwalior, and the route to Somnath in Gujarat; also the western conquests at Rayy, Hamadan, and Isfahan.
  • The Indus crossings, the Kabul-Peshawar road, and the Sind and Rajasthan desert routes used in the Somnath campaign

Map Analysis Questions:

  1. How does the map show the difference between territory held and territory raided?
  2. Why might the Punjab, rather than the Gangetic plain, have been the natural area for permanent Ghaznavid administration?
  3. What logistical problems would an army face in traveling from Ghazna to Mathura or Kannauj and returning with captives and treasure?
  4. Which regions on the map were most vulnerable to loss when the center weakened, and why?
Section 37.14

The Somnath Expedition, 1025–1026

No event of Mahmud's reign has had a longer afterlife than the attack on the temple of Somnath. The expedition was a remarkable military undertaking, a long march across desert to the coast of Gujarat, and its memory has been shaped by a succession of narratives, from medieval Persian poetry to nineteenth- and twentieth-century political debate. This section provides a historically grounded account of what is known and an evaluation of the sources, and it asks students to distinguish the event from its later reputation.

Somnath, on the southwestern coast of the Kathiawar peninsula in Gujarat, was a major pilgrimage site and a wealthy temple dedicated to Shiva, whose principal image was a lingam. It was patronized by kings and merchants and benefited from the maritime trade of the Gujarat coast. In the early eleventh century the region was ruled by the Chaulukya dynasty of Anhilwara (Patan), whose king Bhima I governed a prosperous kingdom. The distance from Ghazna to Somnath was great, and the route crossed deserts and territories of several kingdoms. The expedition was therefore a major logistical challenge, and its success depended on advance preparation, the supply of water and fodder, and the use of guides.

According to the narrative tradition, Mahmud set out from Ghazna in the autumn of 1025 with a large force of cavalry and other troops, marched through Multan, where he made special preparations, and then crossed the desert of Rajasthan to reach Gujarat. The sources report that the army took supplies of water and food on camels and that local rulers along the route were either defeated or intimidated. The Chaulukya ruler Bhima I fled from Anhilwara before the Ghaznavid army, and Mahmud's forces entered the city. The army then continued to Somnath, which it reached in early 1026. The defenders, including a garrison and a crowd of devotees who had gathered at the temple, resisted for a short period, and the sources describe a fierce battle on the walls and a Ghaznavid victory. The temple was plundered, the principal image was destroyed, and a large quantity of treasure was taken.

The return journey was difficult. According to the sources, Mahmud, wishing to avoid the desert route and perhaps threatened by Indian forces gathering behind him, returned through Sind, guided by local informants. The army suffered hardships, and a mixed account describes harassment by Jat tribesmen along the Indus. The following year Mahmud mounted a punitive expedition against the Jats, using boats on the river. The expedition thus involved a long, hazardous campaign whose success is a measure of Ghaznavid organizational capacity and whose difficulties are evidence of the risks involved.

The reported figures are unreliable. Sources, including later Arabic chronicles such as that of Ibn al-Athir, give numbers for the dead at the temple and for the booty taken that run into the tens of thousands and the millions of dinars. These figures are probably inflated, in part because they reflect the language of panegyric and in part because they pass through later retellings. They also illustrate how stories grow. The wealth of the temple was already legendary in the Islamic world, and the capture of such a place was likely to be reported in exaggerated terms. Historians should treat all numerical claims concerning Somnath as indicative of the reputation of the event rather than as data.

Primary Source Window

Comparing Accounts of the Attack on Somnath: Persian and Arabic Tradition, al-Biruni, and Indian Evidence

Creators: Persian poets of the Ghaznavid court, notably Farrukhi; the scholar al-Biruni; later Arabic and Persian chroniclers; Sanskrit inscriptions and Jain and other Indian texts of later centuries · Date: from the 1020s (poetry, al-Biruni) to the thirteenth century and later (chronicles, Indian sources) · Type: panegyric poetry, a scholarly treatise, chronicles, and inscriptional and literary evidence from Gujarat

Context: No single source provides a neutral, contemporary account of the event. The earliest accounts come from the Ghaznavid orbit. Court poets celebrated the expedition, and the poet Farrukhi is associated with a celebrated poem on it, in which, according to scholars who have studied the text, the idol is compared with the pre-Islamic goddess Manat, whose destruction by the early Muslims was a well-known story. Al-Biruni, writing in the same decade in his study of India, mentions Somnath and its famous image and refers to Mahmud's destruction of it in 1025–1026. Later Arabic and Persian chronicles, written a century or more afterward, supply the lavish narrative details and the large numbers.

Paraphrase (not a quotation): The Persian and Arabic tradition frames the expedition as an act of religious victory: the capture of a temple said to be a great center of idolatry, the breaking of its image, and the seizure of vast wealth, all presented as a service to Islam. The Indian evidence is quieter. Sanskrit inscriptions and texts from Gujarat in later centuries show the temple as an object of continuing patronage and rebuilding, and treat the Ghaznavid raid as one episode in a longer history rather than as the destruction of the site's religious life.

Analysis: The comparison shows how a single event can enter memory in different forms. The Ghaznavid tradition used the story to magnify the sultan's achievement and to connect it to a religious narrative that had meaning for its audience, including the analogy with Manat. The Indian record suggests that the temple was rebuilt and continued to be a major pilgrimage center. Modern historians, including those who have written on the changing memory of Somnath across the centuries, stress that later political movements, in the nineteenth century and after, drew on selected parts of this record to support competing narratives about Indian and Islamic history. The nineteenth-century British debate over the so-called Gates of Somnath, and twentieth-century discussion of the temple's reconstruction, are part of this later history rather than evidence for the eleventh century.

Limitations: Contemporary evidence is scarce and comes from one side. The numerical details in later chronicles cannot be verified. Indian evidence is later, comes from different genres, and does not directly describe the raid in detail. Dating of individual texts and the precise wording of inscriptions require consultation of published editions and translations, and students should treat this window as a guide to the kinds of evidence rather than as a substitute for them.

Perspective: Panegyric poets and court scholars of the Ghaznavid world; later Sunni chroniclers; and Indian temple patrons, Jain and Hindu authors, and inscription writers. Not represented in any direct way: the inhabitants of the region who experienced the attack, including pilgrims, priests, and townspeople, and the captives.

Questions for students:

  1. What kinds of sources describe the attack on Somnath, and when was each produced?
  2. Who created them, and what purposes might shape their presentation?
  3. How does the comparison with Manat illustrate the use of religious analogy in court poetry?
  4. What can the Indian evidence tell historians that the Ghaznavid sources cannot?
  5. Why must historians be cautious about the booty figures and about later political uses of the event?
Section 37.15

Raiding, Territorial Rule, and the Human Consequences of Expansion

The previous sections described individual campaigns. This section steps back to ask what Ghaznavid expansion in India meant in its entirety: how raiding differed from governing, how the army's operations affected the people it encountered, and how historians should weigh the evidence. It also addresses the conventional tally of Mahmud's expeditions. Later historical synthesis, from the medieval period onward, enumerated a series of roughly seventeen Indian campaigns, a figure that became part of the standard account. This number is a convention of later writers, not a count independently documented in the sources, which describe expeditions of differing scale and sometimes do not agree on which belong together.

The distinction between raiding and rule is fundamental. In the Punjab, the Ghaznavids built a lasting presence. They established garrisons, appointed governors, collected revenue, and in time made Lahore a seat of government. They also minted coins there, including silver coins that bore Arabic legends on one side and Sanskrit legends in an Indian script on the other, rendering Islamic formulas in a language and script intelligible to local subjects. The existence of such coins is evidence that the Ghaznavid administration adapted to local conditions and that some local institutions and personnel continued to function. Indian officials, tax collectors, and soldiers served the Ghaznavid state, and the army included Indian contingents, as Section 37.18 shows.

The raids beyond the Punjab were a different matter. They were short, violent, and intended to extract wealth, to demonstrate power, and to weaken potential rivals. The human consequences were severe: cities were plundered, temples and images destroyed, people killed, and many taken as captives and enslaved. The sources, written from the perspective of the conquerors, report these facts with satisfaction, and they mention that captives were so numerous in Ghazna that the price of slaves fell. Enslaved people were sold in the markets of Ghazna and distributed among soldiers and officials, and some were taken to Khurasan and Central Asia. Historians should remember that the numbers are uncertain and the experiences of individuals are almost entirely unrecorded, but the practice itself is not in doubt.

Some people also found places within the new order. Indian soldiers, scribes, and officials served the Ghaznavids and rose to high rank, as the careers of commanders such as Suvandhray and Tilak, discussed in Section 37.18, show. Some Hindu families and merchants cooperated with the Ghaznavid authorities, and local administrative practice in the Punjab seems to have continued in many respects. Others resisted, fled, or were displaced. Hindu temples, cities, and educational centers suffered losses, and al-Biruni, as the next sections explain, recorded that Indian learned men had withdrawn to regions beyond Ghaznavid reach, particularly Kashmir and Varanasi. The varied responses, from collaboration to flight to resistance, should not be reduced to a single story.

Historical Debate

Mahmud's Campaigns: Religious Warfare, Political Expansion, Economic Strategy, or Overlapping Motives?

The question: Why did Mahmud campaign in India year after year? Historians have given different weight to religious zeal, the pursuit of wealth, the extension of political power, and the need to satisfy his army and his court.

Interpretation A — Religious warfare: Some scholarship takes the language of the sources at face value, emphasizing Mahmud's presentation of himself as a ghazi, the destruction of temples, the reports to the caliph, and the conversion of Hindu rulers. On this view, the campaigns were driven at least in part by genuine religious conviction and the ideology of jihad.
Interpretation B — Economic and political strategy: Other historians stress that the campaigns produced booty, tribute, and captives that financed the army and the court, that temples were treasuries and centers of political authority, and that the destruction served to weaken rivals and to impress subjects. On this view, the religious language was a means of legitimation rather than a cause.
Interpretation C — Overlapping motives: A third approach holds that these motives cannot be separated. The same expedition could satisfy the need for revenue, advance the political position of the sultan, display his piety to the caliph and the Sunni elite of Khurasan, and reward his soldiers. The sources themselves present the motives as complementary, and the sultan's court had reasons to emphasize some and downplay others depending on the audience.

Evidence: The evidence includes the language of court poetry and chronicles, the reports of caliphal correspondence, the pattern of targets, the treatment of temples and of non-religious targets, the fate of captives and treasure, the use of Indian soldiers and officials, and later reflections by scholars such as al-Biruni. The pattern of targets is especially informative: Mahmud attacked Hindu rulers, Ismaʿili Multan, and Buyid Rayy, and he attacked temples that were not in the path of conquest as well as political centers.

Points of disagreement: The disagreement concerns chiefly interpretation and emphasis. Historians do not generally dispute that temples were destroyed or that booty was extensive. They disagree about how to weigh religious and material motives and about how far sources written to glorify the sultan reveal his actual thinking.

Why it matters: The question affects how Mahmud's legacy is read, within Islamic history and in the history of South Asia, where interpretations have often been enlisted in modern political arguments. A careful reading of the evidence suggests that single-cause explanations are inadequate and that the Ghaznavid state's military economy, its ideology, and its competitive position among rivals all contributed.

Student task: Identify two pieces of evidence that favor Interpretation A, two that favor Interpretation B, and explain whether Interpretation C resolves the tension or merely avoids it. What further evidence, for example about how soldiers and officials understood the campaigns, would help?

Multiple Perspectives

Living through the Ghaznavid Campaigns: Six Viewpoints

Note: these viewpoints are reconstructed analytical perspectives synthesizing patterns historians infer from many sources. They are not quotations from named individuals, and the groups did not have equal power or freedom of action.

A Ghaznavid soldier: Serves for pay, a share of plunder, and the prospect of promotion. The campaigns mean long marches, danger, and the possibility of reward, and loyalty is to his commander and the sultan who pays. Religious language may be meaningful to him, but his livelihood depends on the army's success.
A Hindu Shahi ruler or commander: Defends a kingdom against repeated invasion, negotiates, seeks allies, and sees temples and cities threatened. For him the Ghaznavids are a foreign military power whose advance requires political and military responses.
A merchant in the Punjab or Khurasan: Is concerned with the security of roads and markets. Campaigns can bring opportunity in the slave and horse trades and the supply of the army, but also disruption, requisition, and exaction.
A Muslim religious scholar at the Ghaznavid court: May see the campaigns as service to Islam, and may benefit from the sultan's patronage. Some scholars, such as al-Biruni, record the damage done to Indian learning and treat the culture they study with seriousness, showing that scholarly responses were not uniform.
An enslaved captive: Is taken from a home or temple, transported to Ghazna or farther, and sold. The experience is one of violent uprooting and loss of status. A few may rise into military or domestic service, but the evidence for individual lives is almost entirely missing.
A cultivator in the Punjab or Khurasan: Experiences the state through taxation and requisition, whether Hindu Shahi, Ghaznavid, or local. The cultivator's concerns are harvests, irrigation, and the demands of whoever holds the district, and this group is the least represented in the sources.
Section 37.16 · Division IV — The Ghaznavid State: Government, Armies, and Economy

Ghazna, Khurasan, and the Political Geography of Empire

A state that stretched from the Oxus to the Punjab and from Khwarazm to Sistan faced a problem of distance. Orders, tax revenue, officials, and armies all had to move across mountains, deserts, and rivers, and the practical limits of communication shaped how the Ghaznavids governed. This section explains the functions of the capital and the principal regional centers, and shows how a mobile court and a system of governors held the realm together.

Ghazna was the dynasty's capital and its symbolic center. It housed the royal treasury, the sultan's household, the palace slaves, the principal offices of government, and the tombs of Sebuktegin and later of Mahmud. Contemporary and later writers describe it as a city transformed by the wealth of conquest, with new palaces, gardens, a congregational mosque known to the sources as the Bride of Heaven, and markets that handled the booty of India. Its altitude and cold winters made it a summer residence rather than a year-round seat. Archaeological remains of the Ghaznavid city are limited, and most of what survives at Ghazna belongs to the later eleventh and twelfth centuries, as Section 37.26 explains, so descriptions of Mahmud's city rely heavily on texts.

Beyond Ghazna, a network of regional centers organized the realm. Nishapur was the capital of Khurasan and the seat of the governor, and it remained the most important city of the western territories, with a large population of merchants, scholars, and officials. Herat and Balkh were regional capitals with their own governors and garrisons. Bust, in the warm lowlands of the Helmand, served as a winter residence and military base, and the palace complex at Lashkari Bazar nearby, discussed in Section 37.26, shows the scale of royal building. In the east, Lahore became the administrative center of the Punjab, and Multan another seat of governance. In the north, Khwarazm and the Oxus frontier posts connected the empire to Central Asia.

Governors, usually military commanders or high officials, ran these regions on behalf of the sultan. They collected revenue, maintained garrisons, administered justice through judges appointed in the sultan's name, and reported to the capital through correspondence and, as Section 37.17 describes, through an intelligence network that watched them. The sultan appointed and dismissed governors at will, and the sources record frequent reassignments, which prevented any official from building a permanent local base. Even so, distance gave governors latitude, and the careers of figures such as Altuntash in Khwarazm and Ariyaruq in the Punjab show how much power a governor could accumulate.

The court itself moved. Rulers spent winters in the warmer cities, such as Bust, Lahore, or Nishapur, and summers at Ghazna or in the mountains, and they traveled with an enormous retinue that included officials, soldiers, servants, and the royal baggage train. Royal journeys served political purposes: they allowed the sultan to inspect provinces, to meet governors and local notables, to display power, and to hunt, which was both recreation and military exercise. Bayhaqi's account of Masʿud's reign gives a detailed picture of how such journeys worked and how much administrative activity accompanied them.

Practical distance affected policy. A message between Ghazna and Nishapur might take many days, and a campaign to Somnath or Rayy required months of preparation. The sources, which record the time taken by particular journeys, do not give standard travel times, and students should avoid assuming precise figures. What the evidence does show is that the Ghaznavid state functioned by anticipating problems, delegating authority, and relying on the personal attention of the sultan and his officials. When the sultan was distracted, as Masʿud was by his western ambitions and his indulgence in hunting and entertainments, according to Bayhaqi, problems in other regions could grow unnoticed until they became crises.

Section 37.17

Viziers, Secretaries, and the Ghaznavid Bureaucracy

Behind the military campaigns stood an administrative system that raised revenue, paid soldiers, kept records, and communicated orders. The Ghaznavid bureaucracy was largely inherited from the Samanids and the Abbasid tradition that Chapters 31 and 35 describe, but it was adapted to the needs of a military state, and its personnel and practices shaped the cultural life of the court. This section examines its principal offices and the men who ran them.

At the head of the civil administration stood the vizier, the chief minister, who supervised the departments of state and mediated between the sultan and the bureaucracy. The vizierate under the Ghaznavids was a powerful but precarious position, as it had been under the Abbasids and Buyids. Viziers who failed to satisfy the sultan, or who made enemies among the army or the court, could be dismissed, imprisoned, tortured, and executed, and their property confiscated. Ahmad ibn Hasan Maymandi, one of the dynasty's most important viziers, served Mahmud, fell from favor, and suffered imprisonment before returning to office under Masʿud. Hasanak, another powerful minister of Mahmud's later years, was executed under Masʿud in 1031 (some secondary accounts place the event in 1032) on charges that included heresy, in a case that Bayhaqi narrates with sharp attention to the politics behind it. The careers of such men illustrate that bureaucratic power rested on the sultan's favor and that factional rivalry could be deadly.

The government was organized into dīvāns, departments each with its own staff and records. The dīvān of the vizier supervised the finances and the general administration of the realm. The dīvān of the army, headed by the army controller, the ʿāriḍ, managed the registration, inspection, equipping, and payment of troops, and Bayhaqi's account shows how central this office was to Ghaznavid politics. The dīvān of correspondence, called the dīvān-e resālat, produced the state's official letters, treaties, diplomas, and orders. A department of intelligence and communications, with agents called sāhib-e barid stationed in cities and provinces, reported on officials, local conditions, and rumors, providing the sultan with information independent of his governors. Other offices handled the sultan's household, estates, and endowments.

The chancery deserves particular attention, because it was the institution that linked government and literary culture. Secretaries trained in the dīvān-e resālat learned to compose letters in elegant prose, to master formulae of address, to draft legal and administrative documents, and to keep records. Under the Ghaznavids this work was done in both Arabic and Persian. Arabic remained the language of the caliphal correspondence and much religious and scholarly writing, while Persian, the language of administration for the Persian-speaking officials and of the court, became the language of much official correspondence and of historical writing. Abu Nasr Mushkan, who headed the chancery under Mahmud and Masʿud, was the teacher and superior of Bayhaqi and is an important figure in the story of Persian prose. The training of secretaries, who learned their craft by apprenticeship and by reading models of good style, created a class of writers whose work informs our understanding of the period.

The Ghaznavid bureaucracy continued many Samanid practices, but it also had features that reflected the character of the new regime. The army was larger, the sultan's household more powerful, and the demands of military finance more pressing. The relationship between the military and civil branches was tense, with the army commanders and the ministers competing for resources and influence. The bureaucracy was also staffed largely by Persian-speaking officials from Khurasan, many of them from families with a long tradition of service, while the sultan and his commanders were Turkic. This division produced cultural and political tensions, though they were not simply ethnic conflicts. Many officials built alliances with military commanders, and some Turkic commanders developed an interest in Persian culture.

Historical Debate

Was the Ghaznavid State Primarily a Successor to the Samanids or a New Kind of Military Monarchy?

The question: Historians have asked how much the Ghaznavid state continued the Samanid system and how much it represented something new: a monarchy supported by a large professional army, financed by conquest, and organized around the sultan's household.

Interpretation A — A successor state: Some scholars emphasize continuity. The Ghaznavids inherited the Samanid territories of Khurasan, the Samanid bureaucracy, the Persian-speaking elite, the model of slave commanders, and the practice of court patronage. On this view, the dynasty was the Samanid state in the hands of its own former slave commanders.
Interpretation B — A new military monarchy: Others emphasize novelty. The Ghaznavids built a larger and more centralized army, relied on revenue from conquest in India as well as taxation, concentrated authority in the person of the sultan, and used a vocabulary of kingship and holy war more assertive than that of the Samanids. On this view, the Ghaznavids created a military monarchy that anticipated the Seljuk sultanate.
Interpretation C — A hybrid adaptation: A third view holds that the dynasty combined both elements: a Samanid administrative and cultural inheritance applied to a new military and fiscal situation. What changed was not the institutions themselves but their balance, as military power and the sultan's personal authority became central.

Evidence: The evidence includes the structure of the dīvāns, the continuity of personnel from the Samanid to the Ghaznavid period, the language and practice of the chancery, the composition of the army, the sources of revenue, the titulature of the rulers, and the descriptions of court ceremonial in Bayhaqi and other sources.

Points of disagreement: The disagreement concerns primarily interpretation and emphasis. Few scholars deny that the Ghaznavids inherited Samanid institutions or that they introduced changes in scale and organization. The question is which should be treated as the essential character of the state.

Why it matters: The answer shapes how historians place the Ghaznavids in the longer story of Islamic and Iranian statecraft. If the dynasty was mainly a successor state, it belongs to the Samanid and Persianate tradition of Chapters 35 and 36. If it was a new kind of military monarchy, it points toward the Seljuk sultanate and the systematization of statecraft that Chapter 39 examines.

Student task: Choose one feature of Ghaznavid government and explain whether it shows continuity with the Samanids, innovation, or a combination. What additional evidence would help to decide?

Section 37.18

The Sultan's Army: Military Slaves, Cavalry, Elephants, and Logistics

The Ghaznavid army made the empire possible and created its most serious problems. It was a large, professional, multi-ethnic force that could campaign across thousands of kilometers, but it had to be paid, fed, and kept loyal, and its demands shaped the dynasty's finances and policies. This section analyzes its components and the challenges of maintaining it.

The core of the army consisted of the sultan's household troops, the palace ghilman, who were Turkic military slaves trained at court and attached to the sultan's person. They were the most trusted soldiers and supplied many of the senior commanders. Alongside them were free Turkic soldiers, mounted archers who served for pay and the prospect of plunder, and contingents of Khurasani and other Iranian soldiers, many of them infantry, who served in garrisons and sieges. Arab and Kurdish contingents, units drawn from the mountainous regions around Ghazna and Ghur, and Daylamite or other soldiers recruited from the west supplemented these forces. The sources do not provide reliable figures for total numbers; reports of armies of tens of thousands or more must be treated as approximate and sometimes rhetorical.

Indian troops formed a significant part of the Ghaznavid army, a fact that complicates any simple picture of the army as a foreign force opposing India. Indian soldiers, recruited from the territories the Ghaznavids conquered, served in the sultan's armies and were stationed at Ghazna and in other garrisons. Their commanders, including Suvandhray and, later, Tilak, held high rank. Bayhaqi, in his account of Masʿud's reign, describes Tilak's rise from humble origins as the son of a barber to command of the Indian contingent and his role in suppressing the rebellion of the governor Ahmad Inaltigin in the Punjab around 1034. Tilak's career, like that of other Indian officials, shows that service to the Ghaznavids offered avenues of advancement, though it did not guarantee safety. The sultan's use of Indian troops against Turkic or Iranian opponents also shows that his authority did not rest on a single ethnic or religious group.

War elephants were a distinctive feature of the Ghaznavid army, acquired from India as tribute and plunder. Elephants served as platforms for commanders, as shock forces against infantry and cavalry, and as symbols of royal power in parades. Mahmud used them against the Qarakhanids and in the Indian campaigns, and their spectacle at court was a mark of the sultan's wealth. But elephants were expensive to maintain, required skilled handlers, and could be unreliable in battle, as the stories of panicked elephants show. They were useful for particular tasks, but the backbone of the army remained its cavalry.

Logistics determined what the army could do. A force marching from Ghazna to the Gangetic plain or to Somnath needed food for men and animals, water in arid stretches, replacement horses and camels, and the means to transport supplies, booty, and captives. The Ghaznavids solved some of these problems by prior planning, by requisitioning from the lands they crossed, and by relying on local guides and allies. They also depended on the seasonal rhythm of campaigning: expeditions to India were generally launched in the cooler months, after the harvest, and the army returned before the heat and monsoon. Mounting several campaigns in a single year, or fighting simultaneously on two fronts, strained these arrangements, and the sources record episodes in which armies suffered from thirst, hunger, and disease.

Payment was the army's central problem. Soldiers expected regular salaries, and commanders expected shares of booty and estates or revenue assignments. The dynasty needed a steady flow of cash, and when income fell, soldiers could mutiny or desert. The military system created recurrent costs that required continual conquest or heavy taxation, and the dependence on booty meant that a failure to win rich spoil would weaken the army. This structural problem, familiar from the Buyid case in Chapter 36, shaped the financial policy of the Ghaznavid state and set the stage for the crisis of Masʿud's reign. The revenue assignment practice known as iqtaʿ, discussed in Chapter 36, appears in Ghaznavid sources, though its scale and form are debated, and students should not assume that it operated exactly as it did under the Buyids or Seljuks.

Section 37.19

Taxation, Tribute, Booty, and the Fiscal Foundations of Power

Reports of enormous treasures dominate the popular image of the Ghaznavids, but the empire's finances depended on more mundane sources as well. Understanding the fiscal basis of the state requires distinguishing regular revenue from irregular windfalls, and testing the large figures reported in the sources against what we can learn from other evidence.

The principal regular revenue was land tax, collected from the cultivators of Khurasan, Zabulistan, Sistan, and other regions under direct administration. The rates and methods differed from region to region, reflecting local custom and the practices of earlier governments, and in much of Khurasan they continued Samanid arrangements. The land tax was assessed on agricultural land and its produce and was collected by officials or by contractors in cash and in kind. Urban taxes, including market dues, customs, and levies on trade and crafts, added to this income, as did taxes on non-Muslim subjects and the property of officials confiscated by the sultan. The Ghaznavid mints, notably those at Nishapur, Herat, Ghazna, and later Lahore, produced silver and gold coinage, and the regular supply of coin was necessary to pay soldiers and officials.

Tribute from vassals and defeated rulers formed a second source. Rulers of regions such as Khwarazm, Ghur, and parts of Gurgan paid tribute in cash or goods, and defeated Indian kings were required to pay indemnities, supply elephants, and send hostages. These payments depended on the continued strength of the army and could be withheld if the sultan's power weakened. The Indian rulers' obligations were often one-time or intermittent, and the sources suggest that tribute from India was less regular than the land tax from Khurasan.

Booty was a third source, and the one most emphasized in the narratives. Plunder from Indian cities and temples included gold and silver, jewels, images, textiles, weapons, elephants, and captives. The booty was divided according to Islamic law and custom, with a share reserved for the sultan and the rest distributed among the soldiers. Gold and silver, including that from melted images, was minted into coin or used to adorn the sultan's palaces and mosques. Booty could be spectacular, but it was irregular, and expeditions that failed to win rich spoil would leave the army's pay unmet. Booty also had a recurring cost: every campaign needed expenditure for supplies and transport, and the benefits fell unevenly.

Court spending was extensive. The sultan's household, the palace slaves, the court poets and scholars, the maintenance of palaces and gardens, the display at festivals, and the construction of mosques and fortifications all consumed resources. Redistribution of wealth was a political act: the sultan rewarded loyal soldiers and officials with salaries, estates, robes of honor, and gifts, and he rewarded poets with money and gifts, thereby binding them to his service. The sources describe gifts of thousands of dirhams to poets, which should be read as testimony to the culture of royal generosity as well as to actual sums. Expenditure at this scale required a stable and productive tax base, and the loss of Khurasan in 1040 deprived the dynasty of much of its income.

Students should treat the reported totals with caution. Sources give figures of millions of dinars and dirhams for booty from individual campaigns, but such numbers are unreliable. They were passed through several hands, they use the conventions of panegyric, and they sometimes contradict each other. Modern historians have not found a way to establish the real totals, and where they offer estimates, they emphasize uncertainty. What can be said with reasonable confidence is that Ghaznavid campaigns in India yielded substantial wealth, that this wealth supplemented rather than replaced regular taxation, and that the dynasty's finances depended primarily on the revenue of its agricultural provinces.

Evidence Comparison

Royal Panegyric, Chronicles, Coinage, Inscriptions, and Archaeology: What Each Kind of Evidence Shows

Historians reconstruct Ghaznavid rule from several kinds of evidence. Each reveals something the others cannot, and comparing them protects against dependence on a single, possibly biased, source type.

EvidenceWhat it showsWhat it cannot show
Panegyric poetryThe ideals of kingship, the language of praise, the occasions of court ceremony, and the relationship between poets and patronsReliable facts about events, since praise follows conventions and exaggerates; the views of ordinary people
Court chronicles (al-ʿUtbi, Gardizi, Bayhaqi)Narrative sequence, administrative practice, the viewpoints of secretaries and officials, details of court politicsThe experience of cultivators, soldiers, and conquered peoples; independent verification of numbers
CoinsThe titles and names used by the rulers, mints and their output, recognition of the caliph, adaptation to local audiences such as the bilingual coins of LahoreWho exercised real power, how much revenue was collected, or the attitudes of users
InscriptionsPatronage, titulature, building programs, and the self-presentation of rulers and officialsIntentions or costs, unless a text survives; many buildings are lost or damaged
Archaeology (Ghazna, Lashkari Bazar)Palace plans, decoration, building techniques, and material culture that can be dated by stratigraphy and styleWho used particular spaces, the identity of builders, and the daily life of those outside the palace
Indian sources and inscriptionsThe perspective of regions subject to Ghaznavid attack, continuity of local institutions and patronageDetailed accounts of Ghaznavid campaigns; many are later and indirect

No single category settles the question of how the Ghaznavids ruled or why. Panegyric and chronicles preserve the court's own voice; coins and inscriptions show what the dynasty chose to display; archaeology shows what it built; and Indian evidence supplies a different perspective. The student's task is to hold these together.

Section 37.20

Cities, Commerce, Agriculture, and Everyday Life

The Ghaznavid state rested on the labor of people who rarely appear in its histories. This section asks who paid for the state, how resources circulated, and how ordinary inhabitants of the Ghaznavid lands lived. The evidence is limited, because the sources were written by court officials and scholars, but enough exists to reconstruct some outlines.

Agriculture was the foundation of the economy. In Khurasan and the other oasis regions, cultivators grew grain, fruit, cotton, and other crops using irrigation from rivers, springs, and underground channels, the qanāts that Chapter 1 introduced. Irrigation required collective maintenance, and its disruption by war or neglect could cause famine and flight. In the highlands around Ghazna, pastoralism complemented farming, and in the lowlands of the Helmand and the Punjab, river irrigation supported intensive cultivation. The state taxed agriculture, and the burden fell on cultivators who often had little protection against rapacious officials or the demands of soldiers.

Cities concentrated craft production, commerce, and learning. Nishapur, Herat, and Balkh had markets where artisans made textiles, metalwork, ceramics, paper, and leather goods, and where merchants traded goods from across the Islamic world and beyond. Caravans moved along routes connecting Khurasan with Transoxiana, Iraq, and India, and the Hindu Kush passes carried horses, slaves, textiles, spices, and other goods. The Ghaznavid state taxed this trade and protected the routes, but its wars could also disrupt commerce. Ghazna itself grew as a market city, drawing merchants and artisans who served the court and army, and the market in captives and slaves was a prominent part of its economy.

Everyday Life and Social History

Agricultural Taxation, Military Provisioning, Commerce, Labor, and Households

For most inhabitants of the Ghaznavid lands, the state arrived as a tax collector, a supplier of soldiers, or a source of disruption. A cultivator in Khurasan paid taxes in cash or kind to officials who might be appointed by the governor or contract holders, and he faced requisitions when armies passed through. A weaver or potter in a city like Nishapur or Herat paid market dues and shared with neighbors the risks of fire, epidemic, and the quartering of troops. Porters and caravan workers carried goods across the Hindu Kush passes, exposed to cold, banditry, and the demands of guards and toll collectors.

Households varied by status. Elite families of officials and scholars maintained large households with servants and enslaved people, and women of the ruling family are recorded in the sources as patrons of building and charity, though their lives are poorly documented. Among ordinary people, extended families combined agricultural or craft production with domestic labor, and women worked in textile production and markets. Enslaved people formed a substantial part of the population, including domestic servants, laborers, concubines, and soldiers, many of them captured or purchased from outside the Ghaznavid lands, and the Indian campaigns added thousands of captives to this population.

Religious life shaped community rhythms. Mosques and religious schools, Sufi and ascetic gatherings, preaching, and the festivals of the Islamic year structured daily life in Muslim communities, while Hindu, Buddhist, Zoroastrian, Christian, and Jewish communities in the Ghaznavid lands maintained their own institutions with varying degrees of security. In the Punjab, a large Hindu population continued to practice its religion under Ghaznavid rule, and Indian officials and soldiers served the state. Disputes among Sunni schools, the persecution of heretics, and the wider conflicts of the caliphate affected people unevenly, depending on their community and their location.

Historians reconstruct this world from scattered notices in chronicles, geographical writings, biographical dictionaries, and legal texts, supplemented where possible by archaeology. The voices of cultivators, laborers, women, and the enslaved are largely recoverable only through indirect traces, and any account of Ghaznavid prosperity should remember that its benefits and burdens were unevenly shared.

The central question for this division is who paid for the state and how its resources circulated. The land tax and urban levies drew wealth from producers, merchants, and townspeople; the army and officials consumed and redistributed it; the court spent it on ceremony, building, and patronage; and booty and tribute added to it. The system worked as long as the army succeeded and the tax base remained productive. It was vulnerable to military defeat, to the loss of key provinces, and to the corruption and exactions of officials. The tensions between the demands of the military state and the capacity of the agricultural economy would become visible in the 1030s, as the next division shows.

Section 37.21 · Division V — The Ghaznavid Court and the Expansion of Persianate Culture

Why Turkic Rulers Patronized Persian Culture

The central cultural question of this chapter is why a dynasty descended from Turkic military slaves became one of the great patrons of Persian poetry and prose. The answer does not lie in a change of ancestry or in an inborn Persian character of the court. It lies in the institutions, incentives, and competition that shaped Ghaznavid political life, and it shows how cultural traditions travel across ethnic and linguistic boundaries.

The first reason was inheritance. The Samanid court had made New Persian a prestigious language of poetry, as Chapter 35 explains, and its secretaries, poets, and scholars passed into Ghaznavid service with the territories the Samanids had held. A ruler who took over Khurasan acquired not only land and revenue but a literate class whose training, habits, and expectations were Persianate. To govern the province, Mahmud needed these men, and to keep them, he had to continue the court practices to which they were accustomed.

The second reason was political legitimacy. A dynasty of former slave commanders lacked the ancestral authority of an old ruling house, and its rulers needed ways to present themselves as worthy kings. Panegyric poetry in Persian, which compared the sultan to the legendary kings of Iran and praised him in elevated language, provided a vocabulary of royal virtue that was intelligible to the elites of Khurasan. The imagery of just rule, generosity, and military valor, drawn from Iranian royal tradition and Islamic ideals, allowed the Ghaznavids to claim a place in a long line of rulers. The same dynasty could, and did, also claim legitimacy through caliphal investiture and the language of holy war, and the two forms of legitimation were complementary.

The third reason was competition. Courts in this period competed for prestige, and the possession of famous poets, scholars, and craftsmen was a mark of success. The Samanids, the Buyids, the Qarakhanids, and local dynasties all patronized writers, and a ruler who gathered the best talent could claim cultural leadership. Mahmud's conquest of Khwarazm and other regions brought scholars and poets to Ghazna, and the wealth of India provided the means to reward them. Later tradition, as Section 37.23 notes, credited the court with a very large number of poets, a figure that cannot be verified but reflects the court's reputation as a place where talent was rewarded.

The fourth reason was the coexistence of languages. The Ghaznavid world was multilingual. Arabic was the language of religion, law, and much scholarship, and the caliphal correspondence and al-ʿUtbi's chronicle were written in it. Persian was the language of administration for many officials, of much court poetry, and of historical writing by Gardizi and Bayhaqi. Turkic languages were spoken by the sultan's soldiers and household, and the sultans may have been bilingual or trilingual, though the sources say little. Indian languages were spoken in the Punjab and by many soldiers and officials. These languages did not compete in a simple way; each had a domain and a prestige. The Ghaznavid court's adoption of Persian for poetry and administration did not displace Arabic or Turkic, and it should not be understood as a conversion to a Persian identity.

This history requires careful distinctions. Persianate, as Chapter 1 defined it, describes a cultural and administrative tradition rooted in New Persian, spread across communities of many origins. Turkic ancestry and Persianate culture were not opposites, and a ruler could be of Turkic descent and a patron of Persian poetry just as a Persian-speaking secretary could write in Arabic. The Ghaznavids also should not be equated with a modern Iranian nation: they ruled a territory that included regions of present-day Iran, Afghanistan, Uzbekistan, Turkmenistan, Pakistan, and India, and their court culture belonged to a wider Islamic and Persianate world rather than to a nation-state that did not yet exist.

Continuity and Change Over Time

From Samanid to Ghaznavid Government and Court Culture

What Changed

  • The ruling house descended from Turkic military commanders rather than from an Iranian aristocratic family
  • The army was larger and more professional, with revenue from India and an ideology of holy war
  • The sultan's household and military commanders weighed more heavily in politics than the old Iranian nobility
  • Court patronage extended to new regions, including the Punjab, and eventually produced a Persian literary center at Lahore

What Stayed the Same

  • The dīvāns, the vizierate, and the secretarial profession persisted, as did many families of officials
  • Panegyric poetry in Persian remained a central court institution, and the poets worked in forms developed under the Samanids
  • Formal recognition by the Abbasid caliph remained a source of legitimacy
  • The military slave system continued to supply commanders

When and how did change occur? Change was rapid in the years after 998 as the Ghaznavids took Khurasan, and gradual thereafter as the army grew and new regions were added. Who experienced change most directly? Soldiers, officials, and poets whose fortunes depended on the court, and the peoples of India, who experienced conquest. Who experienced greater continuity? Cultivators and townspeople in Khurasan, for whom taxation and local institutions remained similar. Why the pattern matters: It shows that a change of rulers can leave institutions and cultural forms largely intact while shifting the sources of power that support them.

Section 37.22

ʿUnsuri, Farrukhi, Manuchehri, and the Great Court Poets

The poets of the Ghaznavid court were the dynasty's public voice, and their work is among the earliest great achievements of classical Persian poetry. Three poets of the early eleventh century, ʿUnsuri, Farrukhi, and Manuchehri, stand out, though they worked within a larger community of court writers. This section examines their careers, their distinctive contributions, and the way their praise shaped the image of royal power.

ʿUnsuri, from Balkh, was the most prominent of the court poets under Mahmud and is traditionally described as the head of the court's poets, a position the later sources call the king of poets. He died around 1040. He composed panegyric poems in praise of Mahmud and his sons, and he is also credited by later tradition with narrative romances that have not survived, though the evidence for these is thin. His style is marked by learned allusion, balanced phrasing, and a taste for wit and elevated diction. Later critics regarded him as a model of courtly poetry, and his reputation has been that of a master of the formal qasida.

Farrukhi of Sistan was a younger poet who began his career in the service of a local lord before entering the court of Mahmud. He died around 1037. He is remembered for a lighter and more lyrical style than ʿUnsuri's, for vivid descriptions of nature, music, and royal festivals, and for poems associated with Mahmud's campaigns, including one on the Somnath expedition, discussed in Section 37.14. His elegy for Mahmud, which later tradition valued highly, expressed the grief of the court at the sultan's death. His verse shows the interplay of personal experience and public occasion that characterized court poetry.

Manuchehri of Damghan, who died around 1040, began his career in the service of the Ziyarid prince Manuchihr ibn Qabus, from whom he took his poetic name, and later joined the Ghaznavid court. He is known for his poems on wine, nature, and the changing seasons, for his command of Arabic as well as Persian poetic traditions, and for his use of the strophic form known as the musammat, which gave a distinctive music to his lines. His descriptions of festivals and landscapes are among the most admired passages of early Persian poetry. Like his colleagues, he wrote panegyrics for Mahmud and Masʿud, and his work illustrates how poets moved among courts in search of patrons.

Others also served at the court. Asjadi of Marv and Gharaʾiri, among others, are known from anthologies, and the later generations of poets include Masʿud-e Saʿd-e Salman and Abu al-Faraj Runi, whom Section 37.33 discusses. The Ghaznavid court's reputation, according to later tradition, rested on the presence of hundreds of poets, a figure of about four hundred that appears in later biographical writing. This number cannot be verified and should be treated as a measure of the court's fame rather than a census.

Poetry and Court Study

Reading a Ghaznavid Panegyric: Structure, Function, and Imagery

Poets: ʿUnsuri, Farrukhi, Manuchehri · Date: c. 1000–1040 · Type: Persian panegyric poetry (qasida)

Context: Poets composed qasidas for specific occasions, such as the festivals of Nowruz, Mihragan, and the two Islamic feasts, the return of the sultan from a campaign, the receipt of a robe of honor, or a royal birthday. The poems were recited at court before the sultan and his officials, and the poet hoped for a reward.

Paraphrase of typical structure (not a quotation from any one poem): A typical qasida opens with an introductory section describing a beloved, the spring season, a garden, or an occasion of wine and music, in rich and sensuous imagery. The poet then turns to the sultan, whom he praises as a just, generous, and invincible king, compares to the great kings of the Iranian legendary past, and celebrates as a defender of the faith against its enemies. The poem often concludes with prayers for the ruler's long life and a petition for the poet's own reward. The verses share a single rhyme, which gives the poem unity and invites the audience to follow its sound.

Analysis: The poems present the sultan as a model of kingship in terms that combine Iranian royal tradition and Islamic ideals. Comparison to heroes and kings of the Shahnameh tradition, for example, linked the Ghaznavids to an ancient Iranian past, while references to holy war and defense of Islam fitted the dynasty's Sunni identity. Poems on specific campaigns, such as Farrukhi's on Somnath, show how poets could shape the interpretation of events, in that case through a comparison with the destruction of a pre-Islamic idol. The poems are also evidence of the economic relationship between poets and rulers, in the requests for rewards and the gratitude for gifts.

Limitations: Panegyric follows conventions, and praise cannot be taken as literal description. The poems say little about the actual views of the sultan, and they often exaggerate. Texts were transmitted in manuscripts copied centuries after the poets' deaths, and attribution and wording can be uncertain. This feature paraphrases general characteristics rather than quoting specific verses; students who want to examine particular lines should consult a scholarly edition and translation.

Perspective: Court poets, dependent on royal favor and trained in Persian and Arabic literary traditions. Not represented: the views of the sultan's subjects, the soldiers, and those conquered.

Questions for students:

  1. What are the typical parts of a qasida, and what purpose does each serve?
  2. How do the poems combine Iranian and Islamic images of kingship?
  3. Why might a ruler of Turkic origin value such poetry?
  4. What can historians learn from panegyric, and what must they not assume?
Section 37.23

Court Poetry as Political and Economic Institution

Treating the poets of the Ghaznavid court as isolated geniuses misses the institution in which they worked. The court was a system of patronage, display, competition, and reward, and poetry was one of its principal forms of communication. This section examines how that system functioned and why it mattered for politics and for the economy of the court.

Historical Vocabulary
Qasida and Madh

Definition: The qasida is a long poem in a single rhyme, with a conventional structure, used above all for praise. Madh means praise or panegyric, the poetic celebration of a patron. Adab denotes cultured learning and refinement, including the literary skills expected of secretaries and courtiers.

Historical context: The form came from Arabic poetry and was adapted to Persian in the Samanid and Ghaznavid courts. Poets recited qasidas at royal audiences and festivals, and the form became the dominant genre of court poetry.

Why it matters: The qasida was both a literary form and a political and economic institution, bringing together poets, patrons, and audiences in a system of praise and reward.

Potential misunderstanding: Praise poetry was not mere flattery. It expressed shared ideals of kingship and articulated expectations that rulers might be held to, even when it exaggerated.

The relationship between poet and patron was reciprocal. A poet needed a patron's reward to live; a patron needed poets to proclaim his glory. Poets recited at royal audiences, at the festivals of Nowruz and Mihragan, and at celebrations after victories, and the sultan, who sat surrounded by his officials, responded with gifts of money, robes of honor, horses, or appointments. The sources describe rewards that would have been large sums, and while the numbers are not reliable, the practice itself is well attested. Rewards could also be withheld, and the sources contain stories of poets who fell out of favor or who complained of neglect. The system encouraged competition: poets vied for notice, for the best occasions, and for the sultan's ear.

The court was a social and political space as well. Royal audiences followed a ceremonial order that placed officials, commanders, and guests according to rank, and the presence of poets alongside musicians, storytellers, and scholars gave the sultan's court a distinctive tone. Court entertainments, including banquets with wine for those who indulged, music, polo, hunting, and storytelling, provided settings for poetry and for the display of wealth. The literary competition at court was also a form of political theater: the sultan displayed his generosity and discernment, and the poets displayed their skill and loyalty.

Poetry also carried political messages. Poems praising the sultan's victories informed the court and the wider elite of his achievements and framed them in particular ways. Poems for the festival of Nowruz linked the sultan to the Iranian calendar and royal traditions. Elegies and poems of consolation expressed shared grief at the deaths of rulers or notables. Poets also sometimes offered advice or implicit criticism within the conventions of praise, as when they reminded the sultan of the duties of justice. The influence of poets was limited, but they helped to shape how the court saw itself.

The economics of poetry deserve emphasis. Patronage required resources, and the sultan's capacity to pay poets depended on the wealth of the state. The booty of India, the taxes of Khurasan, and the tribute of vassals all supported the court's cultural life. Poets, in turn, benefited from the existence of a rich and relatively stable court, and their reputations helped to attract other talents. The connection between military expansion and cultural patronage was thus direct, and the decline of the dynasty's military and financial fortunes after 1040 reduced the court's capacity to reward poets, though patronage continued on a smaller scale.

Historians must also recognize what the court model leaves out. Poetry circulated within an elite of courtiers, officials, and scholars, and the experience of most inhabitants of the Ghaznavid lands did not involve these poems. Popular poetry, songs, and storytelling, which probably existed in many languages, are mostly lost. The court's poetic culture was powerful in later literary history because it was preserved, copied, and admired, but it represented a narrow slice of the cultural life of the Ghaznavid world.

Section 37.24

Firdawsi, Mahmud, and the Politics of Iranian Royal Memory

No poet is more closely linked in popular memory with Mahmud of Ghazna than Firdawsi, the author of the Shahnameh, the great epic of the Iranian kings. This section explains the relationship of the Ghaznavid period to the epic and to the traditions about the poet's dealings with the sultan, while reserving the full literary and historical analysis of the Shahnameh for Chapter 42.

The Shahnameh drew on earlier Persian prose accounts of Iran's legendary and historical kings and on a tradition of poetic composition that included the Samanid-era poet Daqiqi, who began a versification of the story and was killed before completing it. Firdawsi, who came from Tus in Khurasan, worked for decades on the epic, which he completed, according to tradition, around 1010. He wrote in a period when the Samanid court had collapsed and the Ghaznavids had taken over Khurasan, and the circumstances of his patronage and the audience he hoped to reach are debated. Whether he composed the poem for the Ghaznavid court, for local patrons in Khurasan, or in hope of royal recognition at a later stage is not settled by the evidence.

The poem matters for Ghaznavid history because it expressed an image of Iranian kingship that was available to the court as a source of legitimating imagery. The poets of the Ghaznavid court compared Mahmud to the heroes and kings of the Shahnameh tradition, and the epic's stories of just and unjust kings offered a repertoire for royal ideology. At the same time, the epic's celebration of Iran's pre-Islamic past and its portrayal of the conflict between Iran and Turan, in which the Turanians are often the enemies of Iran, sat uncomfortably with the Turkic origin of the dynasty, and scholars have long debated how Turkic rulers read this tradition. The answer may be that ancient Turan could be understood as a distinct, mythical enemy and that the Ghaznavids saw themselves as heirs to the tradition of just kingship rather than as the descendants of its adversaries.

The famous stories about Mahmud's treatment of Firdawsi, which tell of a promise of a reward, a payment in silver rather than gold, the poet's anger, a satire against the sultan, and flight, belong to later tradition. They appear in sources written a century or more after the events, including the anecdotal work Chahar Maqala, composed in the twelfth century, and they were elaborated further in later centuries. The stories express the later view that a great poet had been wronged by a stingy ruler, and they should not be treated as established history. The satire attributed to Firdawsi against Mahmud, in particular, is of doubtful authenticity. What can be said safely is that the epic was completed in the early eleventh century, that its relationship to Ghaznavid patronage is uncertain, and that later generations constructed a story about poet and sultan that served their own purposes.

The episode illustrates a larger theme. The Ghaznavid period was a time when Iranian royal memory was being reconstructed in writing, and the question of who would control that memory, the court or independent poets and scholars, was open. Chapter 42 examines the composition and reception of the Shahnameh and the way in which Iranian historical memory was shaped by it. For this chapter, the essential points are that Firdawsi lived and wrote in the Ghaznavid period, that the court's engagement with the epic is poorly documented, and that Mahmud's reputation as patron and as patron-who-failed has been formed largely by later narrative.

Section 37.25

Historians, Secretaries, and the Development of Persian Prose

The Ghaznavid period produced some of the earliest and most important works of historical writing in Persian, and the historians who wrote them were drawn from the same secretarial class that staffed the chancery. This section examines the works of al-ʿUtbi, Gardizi, and Bayhaqi, and the development of Persian prose they represent, giving particular attention to Bayhaqi.

Al-ʿUtbi, as Section 37.6 explained, wrote his Arabic chronicle of the reigns of Sebuktegin and Mahmud in an ornate style that the Persian world greatly admired. Its Persian translation in the early thirteenth century extended its influence. As a source, it provides early information about the dynasty's conquests and is the principal contemporary account of many of Mahmud's Indian campaigns down to around 1020. Its limitations, including its rhetorical character and imprecision, were discussed above.

Gardizi, who wrote in Persian in the mid-eleventh century, compiled a work known as the Zayn al-akhbar, dedicated to the Ghaznavid sultan ʿAbd al-Rashid, which covers Islamic and earlier history and includes valuable sections on the Turks, the peoples of Central Asia, and the early Ghaznavids. It is plainer in style than al-ʿUtbi's work, and its account of the origins of Sebuktegin and of the history of Ghazna is one of the main sources for the early dynasty. Gardizi's work is also evidence for the growth of Persian as a language of historical writing, a development that Chapter 35 traced to the Samanid period.

Bayhaqi is the most important historian of the Ghaznavid court, and his surviving work is among the great masterpieces of medieval Persian prose. Abu al-Fazl Bayhaqi was born in the 990s in a village near Bayhaq in Khurasan, entered the chancery as a young man, worked under Abu Nasr Mushkan, and served several Ghaznavid rulers. He retired from active service and wrote his history in the decades after the loss of Khurasan, completing it in the later eleventh century. The work, known as the Tarikh-e Bayhaqi or Tarikh-e Masʿudi, was originally very large, in some thirty volumes by one reckoning, covering the whole of the Ghaznavid dynasty. Only part survives, most of it dealing with the reign of Masʿud. Students must not assume that the surviving text covers the dynasty equally, and the loss of the rest is a serious gap in our knowledge, particularly for Mahmud's reign.

Bayhaqi's value lies in his method as well as his material. He was an eyewitness to much of what he describes and had access to official documents and the testimony of other officials. He gives detailed accounts of court ceremonies, royal audiences, ministerial intrigues, diplomatic exchanges, and the military and financial problems of the state. He includes letters and speeches, sometimes reproduced at length, and he reflects explicitly on how history should be written. He claims to value truth and the reporting of causes, and he is often candid about the faults of rulers and ministers, including Masʿud. He also includes digressions, anecdotes, and moral reflections that make his work more than a chronicle. These features set his work apart from panegyric, and historians use it to test the claims of court poets and other sources.

At the same time, Bayhaqi must be read critically. He was a former official with his own loyalties and grievances, and he wrote with hindsight, knowing that the dynasty had lost Khurasan. His judgments of individuals, like those of the ministers Hasanak and Maymandi, reflect the interests of the chancery to which he belonged. His emphasis on court politics leaves out much of the experience of the army, the countryside, and the Indian provinces. And his literary shaping of scenes, including dialogue, means that not every detail can be treated as verbatim record. Students should compare his account with other evidence where possible and should recognize that his history is both a source and an interpretation.

The development of Persian prose in these works reflects the relationship between the chancery and literary culture. Secretaries trained in the writing of letters and documents applied their skills to history, and the clarity, flexibility, and expressive range of Persian prose grew with their efforts. Bayhaqi's prose, in particular, has been admired for its vivid narrative, its use of direct speech, and its ability to convey character and atmosphere. The Ghaznavid chancery thus contributed to the formation of Persian as a language of sophisticated prose as well as poetry, an achievement that later writers would build on.

Section 37.26

Scholarship, Architecture, and Material Culture at the Ghaznavid Court

The Ghaznavid court was a center of scholarship and building as well as of poetry and history. This section examines al-Biruni's association with the Ghaznavid world, the relationship between patronage and intellectual independence, and the archaeological evidence from Ghazna and Lashkari Bazar. The detailed history of scientific achievement belongs to Chapter 43.

Abu Rayhan al-Biruni, born in 973 in Kath in Khwarazm, was one of the most remarkable scholars of the medieval world, a mathematician, astronomer, geographer, historian, and student of languages and religions. After the Ghaznavid conquest of Khwarazm, he came to Ghazna, where he spent many years and wrote some of his major works. He accompanied the Ghaznavid armies, or at least traveled in territories they controlled, and he studied India, learning Sanskrit and consulting Indian scholars. His great study of India, completed around 1030, and his astronomical and mathematical work dedicated to Masʿud show that the court gave him opportunities and that he used them with striking independence of mind. He should not be reduced to a court propagandist: his writings are marked by an effort to understand other cultures on their own terms and by candor about the destructive effects of conquest.

Primary Source Window

Al-Biruni on Indian Learning and the Methodological Challenges of Representing Another Society

Creator: Abu Rayhan Muhammad ibn Ahmad al-Biruni (973 to after 1050), scholar of Khwarazm and Ghazna · Date: completed about 1030 · Type: Arabic scholarly study of Indian religion, science, geography, customs, and law, usually known as the Kitab ma li-l-Hind or Indica

Context: Al-Biruni wrote in Ghazna, in the wake of the Ghaznavid conquests of the Punjab, and had access to Indian learned men, texts, and informants. He studied Sanskrit and translated or summarized Indian works, and he compared Indian astronomy, philosophy, and customs with those of Greek and Islamic traditions. His book is a rare example of a medieval scholar from one civilization attempting a systematic description of another.

Paraphrase (not a quotation): In his introduction and elsewhere, al-Biruni explains that he intends to present the beliefs and sciences of the Indians as they describe them, without engaging in polemic, and he lists the obstacles to understanding them: the difficulty of the language, the Indians' reluctance to share their learning with outsiders, differences of custom, and the hostility created by war. He observes that Mahmud's campaigns had damaged the prosperity of the country and scattered Indian learned men to places beyond the reach of the Muslim armies, which left a lasting bitterness toward Muslims and made the study of Indian learning more difficult.

Analysis: The work shows that a scholar within the Ghaznavid world could write with attention to the viewpoint of those the dynasty had conquered. Al-Biruni's reflection on the effect of the campaigns acknowledges the damage done to Indian society in terms that differ from the triumphant tone of court panegyric. His method, which stressed learning from Indian sources and comparing ideas across cultures, remains of interest to historians of science and to students of intercultural understanding.

Limitations: Al-Biruni's knowledge depended on his informants and on the texts available to him, and his coverage is uneven. He wrote for a Muslim, Arabic-reading audience, and his portrayal of Indian beliefs reflects his own categories. The relationship between his work and the patronage of the sultan is not fully documented. Students should consult a published translation before quoting any wording, since the paraphrase above summarizes themes rather than reproducing a passage.

Perspective: A scholar of Khwarazmian origin, a Muslim writing in Arabic, attached to the Ghaznavid court but intellectually independent. Not represented: the Indian scholars and communities in their own voices, except as mediated by al-Biruni.

Questions for students:

  1. What does al-Biruni say about his aims and the difficulties of his task?
  2. Who was he, and in what circumstances did he write?
  3. What purposes might have shaped his study of India?
  4. What can historians learn about Indian society and about the effects of the Ghaznavid campaigns from this source?
  5. What can historians not establish from al-Biruni alone, and how might they check his claims?

The relationship between patronage and independence is a theme in the lives of Ghaznavid scholars. Patronage provided income, libraries, and access to travel, but it also subjected scholars to the demands and whims of rulers. Some, like Ibn Sina, avoided the Ghaznavid court; others, like al-Biruni, worked within it while maintaining intellectual autonomy. The sources suggest that Mahmud valued scholars and sought to attract them, and that Masʿud was a more engaged patron of science, accepting the dedication of al-Biruni's astronomical work. The relationship was never free of tension, and the court's religious politics, including its suspicion of philosophers and heterodox thinkers, constrained what could be said.

The material evidence of Ghaznavid culture consists of excavated buildings, architectural fragments, inscriptions, and objects. At Ghazna, monuments survive from the later Ghaznavid period, notably two brick minarets associated with Masʿud III and Bahram Shah, and Italian excavations from the twentieth century uncovered the remains of a palace attributed to Masʿud III with marble decoration and inscriptions. Mahmud's own tomb at Ghazna has been rebuilt and altered over the centuries. Notably, the best-preserved monuments at Ghazna belong to the twelfth-century phase of the dynasty, not to the age of Mahmud, so students must not attribute them to the conqueror.

Architecture Study

Ghazna and Lashkari Bazar: What Datable Remains Show

At Lashkari Bazar, near Bust on the Helmand, a French archaeological mission under Daniel Schlumberger excavated a large complex of palaces, a bazaar, a mosque, and other buildings in the late 1940s and early 1950s. The Southern Palace, generally dated to the eleventh century and associated with the Ghaznavid period, has a plan organized around a central courtyard with four vaulted halls, or iwans, a design that became widespread in Islamic architecture. Excavations also uncovered painted plaster, including wall paintings of guards or attendants, which provide rare evidence of court dress and decoration. The scale of the complex shows the resources devoted to royal building and the existence of a large court at a lowland winter residence.

At Ghazna, the surviving minarets are decorated with brick patterns and inscriptions, and the marble elements from the palace excavated by Italian archaeologists show carved decoration and inscribed panels. Inscriptions record names, titles, and sometimes dates, which allow architectural phases to be linked to specific rulers. The attribution of buildings to a ruler is not always secure: a structure may have been built, rebuilt, or modified by different patrons, and the date of a given feature may rest on style, stratigraphy, and inscriptional evidence that must be weighed together.

Study Questions:

  1. What kinds of evidence allow archaeologists to date a Ghaznavid building?
  2. Why must students be careful not to attribute the surviving monuments of Ghazna to Mahmud?
  3. What does the plan of the Southern Palace at Lashkari Bazar suggest about court ceremony and royal display?
  4. What can the physical remains not tell us about the people who lived and worked in these spaces?

The material evidence supplements and sometimes corrects the texts. It confirms the scale of Ghaznavid building and the sophistication of its decoration, shows links to wider Islamic and Persianate architectural traditions, and offers evidence for the continuing patronage of later rulers. It also reminds students that much has been lost: Mahmud's mosque and palaces at Ghazna, described in the sources, have not been recovered, and much of the dynasty's material culture survives only in fragments.

Section 37.27 · Division VI — Masʿud I and the Loss of Khurasan

Mahmud's Death and the Succession Struggle, 1030

Mahmud died at Ghazna in April 1030, at about the age of fifty-nine, after an illness that the sources describe in some detail. His death opened a succession struggle that revealed the fragility of the dynastic arrangements he had left, and its consequences shaped the political and military position of the dynasty during the decade of crisis that followed.

Mahmud had several sons, of whom two matter most: Muhammad and Masʿud, who were twins according to some traditions, though the sources are not unanimous. According to Bayhaqi and other writers, Mahmud had designated Muhammad as his successor, in part, it is said, because he distrusted the ambitions of Masʿud, who had commanded armies, governed western territories, and commanded the loyalty of many officers. Mahmud's decision, if it was as the sources describe, was a gamble: it favored the son with the smaller base of military support. At the time of Mahmud's death, Masʿud was in the west, in the region of Isfahan, where he had recently led the Ghaznavid occupation, while Muhammad was in Guzgan, and the capital was in the hands of officials and commanders who had to decide whom to support.

Muhammad, who reached Ghazna and took the throne, was a young and relatively inexperienced ruler. The sources describe him as generous but lacking in firmness, and his early acts, including lavish gifts to the army, did not secure the loyalty of the senior commanders, many of whom had served with Masʿud. Masʿud, on learning of his father's death, marched east, and in the course of his advance, he was joined by troops and officers, including some who had been sent against him. The army at Ghazna, according to the chroniclers, withdrew its support from Muhammad, who was seized and blinded and then confined. Masʿud entered Ghazna toward the end of 1030, and his rule began.

This was not a smooth transition. The new sultan faced a divided military establishment. Some commanders had backed Muhammad and now feared reprisals; others had backed Masʿud and expected rewards. The household troops that had served Mahmud included men who resented the new ruler's promotion of his own followers. The treasury, which was full from Mahmud's reign, was used to reward supporters, and the sources report the sultan's lavish disbursements to his soldiers. But the redistribution could not eliminate the underlying tensions, and the sultan's response, which included the removal of ministers and commanders and the rise of new favorites, was a source of instability.

The pattern is a familiar one in this chapter. The Ghaznavid dynasty had no fixed rule of succession, and the outcome depended on who controlled the army and the capital. Mahmud's attempt to name an heir did not bind his sons or the commanders, and the struggle of 1030 resembled that of 998 between Mahmud and Ismaʿil. A stronger institutional mechanism, such as an agreed rule of primogeniture or a council of senior commanders, might have prevented the struggle, but nothing of the kind existed. The consequences included not only the temporary division of the military but the creation of a rival claimant, Muhammad, whose supporters remained a factor in Ghaznavid politics and who would be restored to the throne in 1041.

The succession also affected the dynasty's relations with the caliphate. Al-Qadir, who died in 1031, had recognized Mahmud's authority, and the new caliph al-Qaʾim was asked to confirm the sultan's position. The sources describe the exchange of embassies, the delivery of titles and a diploma of investiture, and the continuing efforts of Masʿud to maintain the dynasty's legitimacy in Islamic terms. These efforts were successful, but formal recognition could not compensate for the military and financial problems the sultan faced.

Section 37.28

Masʿud's Government and the Problems of Imperial Overextension

Masʿud ruled from 1030 to 1041, and the surviving account of his reign, written by Bayhaqi, is the most detailed evidence we have for the working of any medieval Iranian court. It presents a ruler of energy and ability who faced an almost impossible set of strategic problems, and it shows the interplay of court politics, military demands, and fiscal limits. Historians use it with care, because Bayhaqi's judgments are those of a former chancery official and not neutral.

Primary Source Window

Bayhaqi's Tarikh: The Internal Workings of the Ghaznavid Court

Creator: Abu al-Fazl Muhammad ibn Husayn Bayhaqi (995–1077), secretary in the Ghaznavid chancery · Date: composed in the later eleventh century, after the loss of Khurasan · Type: Persian historical narrative with documents, speeches, and personal reminiscence; only part of the original large work survives, mostly concerning Masʿud's reign

Context: Bayhaqi served in the chancery under Abu Nasr Mushkan and was present at court during much of Masʿud's reign. He wrote his history years later, drawing on his memory, notes, and documents to which he had access. His narrative is organized by year and is full of anecdotes and digressions.

Paraphrase (not a quotation): Among the scenes that Bayhaqi narrates in detail is the fall of the minister Hasanak. The account shows the sultan's court at a moment of political reckoning: the minister is brought out and condemned on charges that include heresy, his past services are set against his enemies' accusations, and the execution is described with attention to the reactions of the court. Bayhaqi draws a moral lesson from the minister's fall, reflecting on the instability of power and the dangers of ambition, while also revealing the factional conflicts within the court that shaped the case.

Analysis: The source shows how political decisions were made, how ministers and commanders competed, and how the sultan's personality affected governance. It provides evidence on ceremony, correspondence, the practice of confiscation, the role of informants, and the legal and religious language used in political disputes. Bayhaqi's willingness to criticize the sultan and his ministers makes the work a counterweight to panegyric.

Limitations: Bayhaqi was a participant with his own allegiances, and his narrative reflects the outlook of the chancery. Dialogue and scenes may be reconstructed for literary effect. The surviving text covers only a portion of the dynasty's history, and it says little about the Indian provinces or the countryside. The paraphrase above summarizes general features, and students who wish to quote or analyze specific passages should consult a published translation.

Perspective: A Persian-speaking secretary of the court, loyal to the dynasty but critical of individual rulers and ministers. Not represented: the soldiers, the cultivators, the Indian officials in their own voices, and women outside the court.

Questions for students:

  1. What does Bayhaqi show about how the Ghaznavid court operated?
  2. Who was he, and how might his position have shaped his account?
  3. What purposes might his moral reflections and digressions have served?
  4. How does his approach differ from that of a panegyric poet or al-ʿUtbi?
  5. What cannot be established from this source alone, and how could historians test it?

Masʿud inherited a state at its maximum extent, with commitments on every frontier. In the east, the Punjab required garrisons and administration and was a source of revenue and soldiers. In the north, the Oxus frontier and the Qarakhanids demanded vigilance. In the northwest, Khwarazm under Altuntash and his successors was restive. In the west, the Jibal, Rayy, and the Caspian region were exposed to Buyid, Kakuyid, and local resistance. Khurasan, the financial heart of the empire, was the province most vulnerable to a new kind of threat, the pressure of Turkmen pastoralists on its northern and eastern edges. The sultan could not be everywhere.

The sultan's decisions on strategy have been debated. Masʿud devoted energy and resources to the western territories, attempting to hold Rayy and the Jibal and conducting campaigns in the Caspian region, which he hoped would secure the empire's western frontier and its prestige. He also continued to campaign in India, notably against the fortress of Hansi in 1037, a prestigious success that took him away from Khurasan at a critical moment. Bayhaqi, who watched these decisions from within the court, reports that wise counselors urged the sultan to give priority to Khurasan and the defense against the Turkmen, and he presents the sultan's choices as a series of mistakes. Modern historians are more cautious. Masʿud faced real threats in several regions, and the choice to defend the west and the east rather than concentrate in the north was not obviously foolish. The question is partly one of hindsight: we know that Khurasan was lost.

Personal and political problems added to the strain. The sultan's relations with his ministers were volatile. He restored the vizier Maymandi, whom Mahmud had imprisoned, executed Hasanak, and appointed and dismissed officials in a pattern that created uncertainty. He relied on a circle of favorites and on household commanders, and Bayhaqi suggests that decision-making suffered from the sultan's impulsive temperament and his indulgence in drinking and entertainments. The sultan also faced rebellion by powerful governors: Ahmad Inaltigin, the governor of the Punjab and a former treasurer, rebelled around 1033 and 1034 and was suppressed by the Indian commander Tilak, an episode that shows both the independence of provincial commanders and the use of Indian troops in internal conflicts. In Khwarazm, the son of the former governor Altuntash rebelled and sought allies among the Turkmen, and the murder of the rebel in 1034 did not end the region's instability.

Finances were a continuing issue. The treasury that Masʿud inherited was large, but the costs of campaigns, of a large army, and of a lavish court were heavy, and the loss of revenue from regions beyond control reduced income. Bayhaqi describes the sultan's financial advisors seeking ways to raise money, including new levies and confiscations that provoked resentment. The army's pay was a recurrent concern, and the soldiers who were not paid could become unreliable. Historians connect this fiscal pressure to the events of 1040, when the army's willingness to fight collapsed under strain.

Section 37.29

The Oghuz Turks, the Seljuk Clan, and the Crisis in Khurasan, 1035–1039

The threat that overcame the Ghaznavids in Khurasan came from the steppe. The Oghuz, a confederation of Turkic pastoral groups, had been moving into the borderlands of Transoxiana and Khurasan for decades, and the family of Seljuk, whose leaders would build one of the great empires of the Islamic world, emerged as the most prominent of their commanders. This section introduces the Seljuks only as far as is necessary for the Ghaznavid story. Chapter 38 treats their rise and conquest in full.

The Oghuz were pastoral nomads whose herds required extensive pasture, and their movement toward the cultivated lands of the south was driven by pressure from other steppe groups, by seasonal needs, and by the opportunities of employment as soldiers and settlement in the oases. The Seljuk clan, led by sons and grandsons of a chieftain named Seljuk, had earlier lived in the Syr Darya region, converted to Islam, and served as military allies of various powers. Their leaders in the early eleventh century included Arslan Isrāʾil and the brothers Tughril and Chaghri, the sons of Mikail. The relations of these groups with the Ghaznavid and Qarakhanid states were shifting and unstable.

Mahmud's own policy had contributed to the problem. In 1025, according to the sources, he arranged the capture of Arslan Isrāʾil, who was imprisoned in a fortress in India, and he permitted groups of Oghuz to cross the Oxus and settle in Khurasan, in pasture regions near Nasa and Farawa, as a way of controlling them and obtaining soldiers. The arrangement placed large numbers of armed pastoralists on the northern fringe of the empire's richest province. Mahmud's advisers, the sources report, differed on whether to accept the settlement, and some warned of the danger. In practice, the Turkmen herds damaged cultivated land, the Ghaznavid governors tried to restrain them, and clashes occurred. Under Masʿud, the problem worsened.

In the mid-1030s the Oghuz began raiding the Khurasan oases. The Ghaznavid governors and commanders attempted to repulse them, sometimes with success, but the Turkmen were mobile, hard to catch, and able to retreat into the desert. The sultan's campaigns against them were intermittent and were interrupted by other demands. The Turkmen bands, meanwhile, gained experience, wealth, and followers, and the Seljuk leaders emerged as the most effective. They negotiated with Masʿud, offering submission in exchange for grants of land, and at some points the sultan seems to have treated them as potential subordinates. But their requests and Masʿud's responses did not produce a stable settlement.

By 1038 the situation had become a crisis. Tughril and Chaghri, with their followers, took Nishapur, and Tughril was proclaimed ruler in the city, an act that marked the beginning of the Seljuk state. In the following months Seljuk forces, supported by local notables who regarded them as better protectors than the distant Ghaznavid court, moved against other cities of Khurasan, including Marv and Balkh. Masʿud's response in 1038 and 1039 was a series of campaigns in which he tried to regain Khurasan. His forces won some actions and took some cities, but the Seljuk horsemen avoided battle, disrupted supply lines, and returned when the Ghaznavid army withdrew. The war of attrition wore down the army and the fiscal base.

Several factors explain why the Ghaznavids found it difficult to contain the Oghuz. The first was geography: Khurasan's long northern frontier and its dispersed oases were hard to defend against mobile raiders. The second was the nature of the opponent, a society organized around kinship, herds, and mobility, able to disperse and reassemble. The third was the political weakness of the Ghaznavid position in Khurasan, where local elites, burdened by taxation and the exactions of garrisons, were willing to accept a new ruler. The fourth was the diversion of Ghaznavid resources to other fronts. None of these made the outcome inevitable, and the Seljuks themselves needed time, luck, and the cooperation of local notables to succeed.

Section 37.30

The Battle of Dandanqan, 1040, and the Collapse of the Western Empire

The battle of Dandanqan in May 1040 was the decisive military event of the Ghaznavid decline. It must be explained, not merely narrated. This section reconstructs the campaign, examines the military and logistical factors, and traces the consequences, including the loss of Khurasan and the death of Masʿud. It tells the story from the Ghaznavid side, leaving the wider Seljuk conquest to Chapter 38.

In 1039 and 1040, Masʿud assembled a large army at Herat and moved against the Seljuks, who were established in Khurasan and based around Nishapur and Marv. The sultan's army consisted of the sultan's household troops, Turkic and Indian contingents, infantry, and elephants. The army marched toward Marv and Sarakhs, into a region of sparse water and desert fringe, where the Seljuk forces, mounted archers moving in fluid formations, could harass them and choose the ground. The Seljuks avoided a decisive encounter for some time, using hit-and-run attacks, interrupting supplies, and withdrawing from wells and pastures. The Ghaznavid army suffered from heat, thirst, and exhaustion. Bayhaqi and later sources describe the army's mood as increasingly nervous, and the sultan's attempts to bring the Seljuks to battle were frustrated.

Military History Study

Dandanqan: Terrain, Mobility, Provisioning, and Strategic Decisions

Students should consider the battle in terms of the following factors, drawing on this section and on the map of the Khurasan frontier:

  • Terrain and water: The battlefield lay at the edge of the desert between Sarakhs and Marv. Water was scarce and wells were few, and control of water sources was decisive in a hot season.
  • Mobility: Seljuk and Oghuz horsemen could move quickly, dispersing and regrouping, while the Ghaznavid army, with its infantry, elephants, baggage, and officials, moved slowly and needed to protect long supply lines.
  • Provisioning and pay: A large army far from its bases required constant supply, and delays in pay or rations reduced morale.
  • Command and cohesion: The army was multi-ethnic, with contingents of uncertain loyalty, and the sultan's choices were affected by factions at court.
  • Political context: Many local elites in Khurasan preferred to wait and see, and the Seljuks' control of cities reduced the sultan's access to supplies.

Analysis Questions:

  1. Why might a large, well-equipped army be at a disadvantage against a smaller mobile force in this terrain?
  2. How did the Ghaznavid army's composition create both strengths and weaknesses?
  3. Why is it misleading to describe the battle as an inevitable victory of nomadic cavalry over a sedentary empire?
  4. Which decisions by the sultan or his commanders might have changed the outcome, and what evidence supports your view?

The battle took place on 23 May 1040 at Dandanqan, in the desert zone between Sarakhs and Marv. The sources differ in detail, but they agree on the outline. The Ghaznavid army, weakened by thirst and fatigue, was drawn into a general engagement in which Seljuk forces, deployed to take advantage of their mobility, attacked from several sides. A significant part of the Ghaznavid army did not fight with determination; some units broke, and others fled. Masʿud himself, according to Bayhaqi and other accounts, fought bravely for a time but was forced to retreat with a small group of followers. The Ghaznavid defeat was decisive. The Seljuks captured the baggage and equipment, and the sultan's army dissolved.

The consequences were swift. The loss of the battlefield meant the loss of Khurasan, whose cities, Nishapur, Marv, Balkh, and Herat, came under Seljuk control or accepted their authority in the months that followed. The Ghaznavid administration in the province collapsed, and the revenues of Khurasan were lost. Masʿud retreated to Ghazna, but the army's morale and unity had been broken. The sultan, apparently convinced that he could not hold Ghazna against the Seljuks, decided to withdraw to India with his treasury and household, a plan that the army and court resented. In early 1041, on the road, mutinous troops seized the sultan, released his blinded brother Muhammad, and proclaimed him ruler. Masʿud was imprisoned in a fortress, and he was killed there, according to the sources, by agents of Muhammad's son. His reign ended in a catastrophe that Bayhaqi, writing decades later, narrated with obvious pain.

The defeat has been explained in many ways. Military historians emphasize the effects of thirst, the Seljuk use of mobility and surprise, and the failure of the Ghaznavid army to maintain cohesion. Political historians emphasize the loss of support among the Khurasani elites and the weaknesses created by the succession struggle and the ministers' quarrels. Fiscal historians emphasize the strain on the army's pay and supplies. Bayhaqi blames the sultan's decisions and the ministers' failures. A balanced view recognizes that all these factors contributed, and that the Ghaznavid defeat resulted from a combination of structural weaknesses and contingent decisions, not from the inevitable superiority of nomads over settled states. The Seljuks themselves were not merely nomads: their leaders had experience in warfare and diplomacy and were able to adopt the administrative traditions of the lands they took, as Chapter 38 shows.

Dandanqan radically changed Ghaznavid power without ending the dynasty. The loss of Khurasan removed the empire's western half and its principal source of revenue and ended the Ghaznavid role as the dominant power of the eastern Iranian world. But the dynasty retained Ghazna, the Punjab, and parts of Zabulistan and Sistan, and it continued to rule for nearly a century and a half. To understand the dynasty's survival and its continuing cultural role, one must follow its history beyond 1040, as the next division does.

Section 37.31 · Division VII — The Later Ghaznavids: Survival, Lahore, and the Ghurid Conquest

Mawdud and the Reconstruction of Ghaznavid Rule, 1041–1059

A chapter that ended in 1040 would omit almost half of the dynasty's political existence and much of its later literary history. The Ghaznavids lost Khurasan, but they did not disappear. This section examines the reconstruction of Ghaznavid rule under Mawdud and the unstable decades that followed, a period of limited sources and real importance.

Mawdud, the son of Masʿud, was governor of Balkh at the time of his father's overthrow. When he learned of the events, he refused to accept the restored rule of Muhammad and his family, whom he held responsible for his father's death, and he marched on Ghazna with an army of supporters. In 1041 he defeated Muhammad's forces, and he took power, executing or removing many of those he regarded as the murderers. He thus restored the line of Masʿud to the throne and reasserted Ghaznavid authority over the territories that remained. The sources, including Gardizi, who wrote in this period, describe him as an energetic and capable ruler, though their accounts are less detailed than Bayhaqi's for the previous decade.

The new sultan faced a strategic situation transformed by Dandanqan. Seljuk power was established across Khurasan, and the Seljuk leaders were consolidating their conquests and moving westward, as Chapter 38 explains. Mawdud attempted to recover the lost lands. His forces fought the Seljuks in the Balkh region and in Tokharistan, and the sultan sought to rally the loyalty of local rulers and elites. The attempts failed. The Seljuk military and political position was strong, and Mawdud lacked the resources for a sustained campaign. The most he could do was hold the line of the Hindu Kush and the Helmand valley and defend Ghazna.

Mawdud also had to deal with trouble in India. In the years after Masʿud's death, local Indian rulers recovered some of the fortresses and territories the Ghaznavids had taken, including places such as Hansi and Thanesar, and a coalition of Indian rulers is reported to have besieged Lahore. The Ghaznavid garrison of Lahore held out, and a relieving force defeated the besiegers, preserving the Punjab for the dynasty. The details come from a few Persian sources and are not fully documented, but the episode shows how important the Punjab had become as a base of Ghaznavid power. The loss of Khurasan made India more significant for revenue and recruitment.

Mawdud died in 1048 or 1049, and his death was followed by a succession of short reigns and disputed successions. A son, a brother or other relatives, and a usurper of uncertain origin, according to the sources, held the throne in rapid succession, with the army and the court officials controlling the outcome. The dynasty seems to have approached collapse in these years, and it is a measure of its resilience that it survived them. Stability returned only with the accession of Ibrahim in 1059, after the period of instability had left the dynasty's finances and prestige damaged.

The unstable period also saw continuing cultural life. The court at Ghazna continued to employ poets and secretaries, and historians such as Gardizi wrote during these years. The loss of Khurasan reduced the resources available to the court but did not eliminate patronage, and the later sultans would revive it on a smaller scale. This continuity of court life, despite political upheaval, illustrates the durability of the institutions and the cultural traditions the dynasty had built.

Section 37.32

Ibrahim and the Stabilization of the Eastern Sultanate, 1059–1099

Ibrahim, who ruled from 1059 to 1099, was the longest-reigning sultan of the dynasty and the ruler who gave the post-Dandanqan state a durable form. His reign is less richly documented than Masʿud's, and it has sometimes been treated as a quiet interlude, but it was in reality a period of consolidation that preserved the dynasty and its institutions for another century.

The central achievement of Ibrahim's reign was a stable relationship with the Seljuks. The Seljuk rulers, who held Khurasan and an expanding empire in western Iran and Iraq, had reasons to prefer peace on their eastern frontier, and the Ghaznavids had no prospect of recovering Khurasan. The two sides negotiated a settlement, according to the sources, early in Ibrahim's reign, and renewed it later; the Seljuks acknowledged the Ghaznavid hold on Ghazna and its eastern territories, and the Ghaznavids acknowledged the Seljuk position in the west. The settlement was reinforced by marriage ties between the two ruling families, and the exchange of embassies. The terms were not that of equals: the Seljuks were the stronger power, and the Ghaznavid sultan was in practice a subordinate ally, though the sources preserve the language of friendship and honor. The arrangement lasted, with interruptions, for several decades.

Within his territories, Ibrahim sought to restore the government and the economy. The sources portray him as pious, just, and attentive to religious scholars and institutions, and as a ruler who patronized building, charity, and learning. Later tradition celebrated his piety and calligraphy, but modern historians also credit him with administrative competence. His court maintained the dīvāns, the chancery, and the traditions of Ghaznavid ceremony, and officials and poets continued to serve.

The Punjab was central to his rule. The loss of Khurasan made Indian revenue and soldiers more important, and Ibrahim's campaigns in India, which the Persian sources describe, extended the area under Ghaznavid control and plundered neighboring kingdoms. Persian chronicles of later centuries attribute to him the capture of fortified towns in the Punjab and the area toward the Sutlej, and they describe expeditions against Hindu rulers in northern India. The details are uncertain, because the sources are brief, but the general pattern is clear: the sultan kept up military pressure in India, using the profits of conquest to finance his army and court. Lahore grew in importance as an administrative and cultural center, and a Persian-speaking elite developed there, in part from officials and soldiers who had moved east.

The relationship with the caliphate in Baghdad continued. Ibrahim, like his predecessors, sought recognition and honorifics from the caliph, and he maintained the Sunni character of the dynasty. The caliphs, themselves under Seljuk protection, acknowledged Ghaznavid rulers as legitimate Sunni sultans. This recognition gave the Ghaznavids continuing status in the Islamic world, even as their political power shrank.

Ibrahim's reign deserves attention because it shows how a state can survive military defeat. The dynasty adapted to a new strategic position, reorganized its resources around the eastern territories, and maintained its institutions and prestige through diplomacy and patronage. The result was a sultanate smaller than Mahmud's but more stable than the regimes of the 1040s and 1050s, and one that provided the setting for the cultural flowering of the twelfth century.

Section 37.33

Masʿud III, Bahram Shah, Ghazna, and the Literary Culture of Lahore

The twelfth century saw the later Ghaznavids at Ghazna and Lahore produce architecture, poetry, and religious literature that rank among the dynasty's lasting contributions. This section examines the courts of Masʿud III and Bahram Shah, the role of Lahore as a literary center, and the growing pressure from the Ghurids.

Masʿud III, who ruled from 1099 to 1115, followed his father Ibrahim and continued his policies of stability and patronage. His reign is associated with the major building program at Ghazna, including a palace whose remains were excavated in the twentieth century, as Section 37.26 noted, and one of the two surviving minarets. The brick minaret, with its inscriptions and geometric decoration, is among the most important monuments of the dynasty. Masʿud's reign also saw an active literary life at court and in the provinces.

Lahore was the setting for an important development in Persian literature. Masʿud-e Saʿd-e Salman, who was born in Lahore in the middle of the eleventh century to a family from Hamadan that had settled in India, became one of the leading poets of the later Ghaznavid court. He wrote panegyrics for the sultans and, notably, a body of poems composed during periods of imprisonment, the habsiyyāt, in which he reflected on confinement, loss, and the vicissitudes of fortune. His career shows both the continuing practice of court patronage and its risks: poets and officials could fall from favor, and the sultan's displeasure could mean years in prison. His work is valuable evidence for the development of Persian literature in the Punjab, because it shows that Persian poetry flourished in a region far from Khurasan and Iran. Abu al-Faraj Runi, another poet of the Lahore court, similarly contributed to the Persian literary culture of the period, though less of his work survives.

The literary culture of the later Ghaznavid period also included religious and philosophical poetry. Sanaʾi, who flourished in the early twelfth century and whose dates are uncertain, wrote at the court of Bahram Shah a long didactic and mystical poem, the Hadiqat al-haqiqa, that helped to shape Persian Sufi literature. Under the same sultan, a court secretary produced a Persian version of the fable collection known as Kalila and Dimna, which became one of the most admired prose works of the period. These achievements show that the later Ghaznavid court was not a cultural backwater but a place of important literary and intellectual activity.

Bahram Shah, who ruled from 1117 to 1157, came to the throne with the help of the Seljuk sultan Sanjar, who defeated a rival claimant and installed Bahram as a vassal. The arrangement placed the Ghaznavid state in a clearer subordination to the Seljuks than at any earlier time, though the sultan retained control of his internal affairs. Bahram's reign, which was long, saw continued building at Ghazna, including a second minaret, and sustained patronage of poets and religious figures. But it also saw the rise of the Ghurids, the mountain dynasty whose rulers had once been Ghaznavid vassals, and whose growing power now threatened Ghazna.

The conflict with the Ghurids developed in the 1140s. Bahram Shah, according to the sources, captured and executed Ghurid princes in circumstances that provoked a vengeful response from their brother Alauddin Husayn, who marched on Ghazna in 1151, defeated Bahram, and sacked the city, burning much of it over several days, an act that earned him the nickname "world burner" in later tradition. Bahram Shah fled and, with Seljuk support, was able to return after Alauddin's departure, but Ghazna had been badly damaged, and the dynasty's prestige and resources had suffered severely. The sultan died in 1157, and his successors faced a shrinking realm. Ghazna itself changed hands, passing to groups of Oghuz Turkmen in the 1160s and then to the Ghurids, and the Ghaznavid rulers shifted their center to Lahore.

The later period also shows the transmission of Persianate culture across space. The Ghaznavid presence in the Punjab created a Persian-speaking community of officials, soldiers, scholars, and poets, and Lahore became a center from which Persian literary and administrative culture would spread within South Asia. This is one of the dynasty's most durable legacies, and it connects the Ghaznavid story to the later history of Persian in India, in which the language became a principal medium of administration and literature under subsequent dynasties.

Section 37.34

The Ghurids and the End of the Ghaznavid Dynasty, 1150s–1186

The final decades of the Ghaznavid dynasty were a story of contraction, resistance, and ultimate defeat, played out in the Punjab and the surrounding regions. This section distinguishes the loss of the old capital from the end of dynastic rule, and it traces the military and political steps by which the Ghurids brought the Ghaznavid line to its close.

The Ghurids were a dynasty from the mountainous region of Ghur, in central Afghanistan, whose rulers had been vassals of the Ghaznavids and then of the Seljuks. Their rise in the mid-twelfth century was rapid. Alauddin Husayn's capture of Ghazna in 1151 showed their military capacity, though he did not hold the city, and his successors, notably the brothers Ghiyath al-Din Muhammad and Muʿizz al-Din Muhammad, built an empire that would extend across Afghanistan and into northern India. They were Sunni Muslims, and they built a sophisticated state that drew on the Persianate traditions that the Ghaznavids had also used.

After Bahram Shah, the chronology of his successors Khusrau Shah and Khusrau Malik becomes difficult to reconstruct. Khusrau Shah, who probably ruled around 1157–1160, appears to have remained at Ghazna for at least part of his reign. Around 1160 or soon afterward, Oghuz bands from Khurasan displaced Ghaznavid authority in the old capital; the surviving sources do not establish conclusively whether this occurred in Khusrau Shah's final years or just after Khusrau Malik's accession. Khusrau Malik, who ruled about 1160–1186, eventually governed a realm concentrated in the Punjab, with Lahore as its capital. In the 1170s, the Ghurid ruler Muʿizz al-Din Muhammad took Ghazna from the Oghuz and made it a Ghurid base, from which he turned toward India. He took Multan in 1175 and then campaigned against the Ghaznavid territories in the Punjab, besieging Lahore and ravaging the region in a series of expeditions around 1179 to 1181. Khusrau Malik, whose resources were limited, sought allies, negotiated, and paid tribute, and he maintained his position through diplomacy and the use of hostages.

In 1186 the end came. According to the sources, Muʿizz al-Din Muhammad returned to Lahore with a large force and, through a combination of siege and negotiation, obtained the surrender of the city. Khusrau Malik, who had been persuaded to accept terms, was taken into custody and sent to Ghur. He was held in captivity and, according to the usual account, was executed a few years later, and with him the Ghaznavid dynasty came to its end. The date of 1186 is generally accepted for the capture of Lahore, though the details of the final negotiations and the fate of the ruler vary in the sources.

The distinction between the loss of Ghazna and the end of the dynasty is important. Ghazna ceased to be a Ghaznavid city in the 1150s and 1160s, but dynastic rule continued in the Punjab for another quarter of a century. A student who looked only at the history of the old capital would conclude that the dynasty ended in the twelfth century's middle decades; one who followed the rulers would see that they governed from Lahore until 1186. The later Ghaznavids, therefore, deserve historical recognition as rulers of a Punjab sultanate whose court continued to be a center of Persian culture. The Ghurid conquest of Lahore marked the beginning of a new phase of Muslim rule in northern India, building on the foundations the Ghaznavids had laid in the Punjab.

Timeline Study

The Ghaznavid Dynasty, 961–1186: Rise, Peak, Contraction, and Survival

DateDevelopmentSignificance
961–963Alptigin withdraws from Khurasan and takes GhaznaFounds the military principality from which the dynasty grows
977Sebuktegin takes power at GhaznaConventional beginning of the dynasty
998–999Mahmud defeats Ismaʿil and takes Khurasan after the Samanid collapseGives the Ghaznavids the resources of the richest eastern province
1001–1010Victories over the Hindu Shahis and MultanExtends power to the Punjab frontier
1017–1029Conquest of Khwarazm; expeditions to Kannauj and Somnath; capture of RayyThe territorial and military peak of the dynasty
1030Death of Mahmud; Masʿud displaces MuhammadReveals the fragility of succession arrangements
1040–1041Dandanqan; loss of Khurasan; deposition and death of MasʿudEnds the western empire and the dynasty's control of Khurasan
1059–1099Reign of Ibrahim, with accommodation with the SeljuksStabilizes the eastern sultanate
1099–1157Masʿud III and Bahram Shah; flourishing of poetry and building; Ghurid sack of Ghazna in 1151Cultural high point and the loss of the old capital's security
1186Ghurid capture of LahoreEnds the dynasty

The sequence shows that the Ghaznavid dynasty was not a single rise and fall. It had a rapid ascent in the late tenth and early eleventh centuries, a peak under Mahmud, a sharp contraction in 1040, and a long survival in a smaller form. The pace of change was uneven, with rapid expansion followed by sudden loss and then gradual decline. The dynasty's institutions and cultural traditions persisted longer than its territorial power.

Timeline Analysis Questions:

  1. Which events on the timeline show territorial expansion, and which show contraction?
  2. Why might the dynasty have survived for nearly a century and a half after Dandanqan?
  3. How does the timeline illustrate the difference between losing a capital and ending a dynasty?
Section 37.35 · Division VIII — Historical Synthesis

The Ghaznavid Legacy: Military Empire, Persianate Kingship, and Transregional Cultural Exchange

The chapter's governing question asked how a ruling dynasty of Turkic military origin became a major institution of Persianate civilization, and why its political and cultural influence survived the loss of much of its original empire. The preceding sections supply the evidence for an answer. This final section draws the findings together and considers what the Ghaznavids left behind.

The first finding concerns military government. The Ghaznavids showed how a dynasty born in a military household could create a hereditary state, building on the Samanid slave system but extending it through large professional armies, revenue from conquest, and a vocabulary of kingship and holy war. They also showed the weaknesses of such a state: the lack of a firm succession rule, the dependence on constant payment of soldiers, and the risk that provincial commanders would act independently. Their experience anticipated features of the Seljuk and later military states, and Chapter 39 will show how those states systematized what the Ghaznavids had practiced.

The second finding concerns culture. The Ghaznavid court expanded the Persianate culture that the Samanids had cultivated. Its poets, historians, and secretaries wrote some of the earliest great works of classical Persian literature, and its chancery helped to develop Persian as a language of sophisticated prose. The court's patronage of Arabic learning, including al-Biruni's work, shows that Persian did not displace Arabic but joined it in a multilingual intellectual world. The dynasty's Turkic origins did not prevent its leaders from becoming major patrons of Persian culture, and this fact challenges any equation of language with ancestry or ethnicity.

The third finding concerns connections between Iran and India. Ghaznavid armies, officials, scholars, and poets moved between Khurasan, Afghanistan, and the Punjab, creating a new zone of interaction. The campaigns had violent consequences, including the destruction of temples and the enslavement of many people, and they must be remembered as such. They also opened a long period of Muslim rule in the northwest of the subcontinent, established Lahore as a Persianate center, and set in motion the spread of Persian as a language of administration and literature in South Asia. The Indian dimension of the dynasty is not a footnote to its Iranian history but a central part of it, and Mahmud's memory in India, as in Iran, has been shaped by later political debates that students must learn to separate from the evidence.

The fourth finding concerns religion and legitimacy. The Ghaznavids built their authority on caliphal recognition, Sunni identity, and a posture of defending Islam against heretics and unbelievers. These claims were sincere and strategic, and they were used to justify campaigns against Ismaʿilis, Shiʿis, Muʿtazilites, and Hindus. The Ghaznavid court nonetheless supported a diverse intellectual life, employed non-Muslim and Indian soldiers and officials, and allowed a measure of local autonomy in the lands it ruled. The combination of religious assertiveness and pragmatic accommodation is characteristic of eleventh-century rulers.

The fifth finding concerns the dynasty's survival. The Ghaznavids lost Khurasan in 1040 and Ghazna in the twelfth century, but they governed in the Punjab until 1186. Their ability to endure rested on the continuity of institutions, the use of diplomacy with the Seljuks, and the resources of India. It was also a function of the Persianate culture that gave the dynasty a continuing role in the Islamic world: poets and scholars sought patronage at Ghazna and Lahore long after the empire's heyday. The longevity of the dynasty should be distinguished from the durability of its cultural influence, which extended beyond the dynasty's end.

The sixth finding concerns evidence and memory. The Ghaznavid period is known through panegyric, chronicles, a few remarkable works of scholarship, coins, and archaeology, and each of these has its limits. The records of the conquered, of cultivators, and of women are largely missing. Later memory has added layers of legend and interpretation, as in the stories of Firdawsi and Mahmud and the debates over Somnath. Responsible history requires attention to what the sources can support, an awareness of how stories change over time, and honesty about both the achievements and the violence of the age.

The Ghaznavids influenced their successors in many ways. The Seljuks inherited Khurasan, much of its administrative personnel, and the model of a sultan who ruled with caliphal recognition. The Ghurids inherited Ghazna, the Punjab, and the practice of Persian court culture, and they carried both into northern India. Later dynasties in the Persianate world, from the Delhi sultans to the Mughals, looked back to Mahmud and his court as a model or as a warning. In the end, the legacy of the Ghaznavids is not a single thing: it is a military state, a cultural patron, a conqueror, and a bridge between Iran and India, and understanding that complexity is the purpose of this chapter.

Chapter Summary

This chapter has argued that the Ghaznavids transformed a Turkic military principality on the eastern frontier of the Samanid state into a Sunni sultanate whose armies reached from the Oxus to the Punjab and Gujarat and whose court became a leading patron of Persian poetry, prose, and learning. The dynasty was neither simply a foreign conquest nor an expression of Persian ethnicity. It combined Turkic military origin, Persianate administration and court culture, and Sunni Islamic legitimacy, and it did so in a way that made it one of the principal transmitters of Persianate civilization to Afghanistan and northern India.

The dynasty grew out of the Samanid military-slave system. Alptigin, a slave commander who lost a succession dispute at Bukhara in 961, took Ghazna in 962 and founded a military principality that his successors held with difficulty. Sebuktegin, a former slave of Alptigin, took power in 977 and expanded the territory toward Bust, Zabulistan, and the Kabul region, defeated the Hindu Shahi king Jayapala in repeated campaigns, and acknowledged Samanid authority while building a hereditary line. His son Mahmud, who defeated his brother Ismaʿil in 998, inherited a strong army and a strategic position.

Mahmud's acquisition of Khurasan after the Samanid collapse gave him the revenue, cities, and administrative personnel with which to build a larger state. He sought recognition and titles from the Abbasid caliph al-Qadir and presented himself as a defender of Sunni Islam, adopting a vocabulary of kingship and holy war. He managed the northern frontier with the Qarakhanids through diplomacy and force, conquered Khwarazm in 1017, took Sistan, and captured Rayy from the Buyids in 1029. His control varied from direct administration in Khurasan and the Punjab to vassalage and occupation in other regions.

In India, Mahmud's armies defeated the Hindu Shahis, took Multan from its Ismaʿili rulers, raided Thanesar, Mathura, and Kannauj, and attacked the temple of Somnath in 1025–1026. These campaigns combined political, economic, and religious dimensions, and historians disagree about their relative weight. The Punjab became a province under Ghaznavid administration, with Lahore as its center, while the raids beyond it did not lead to permanent rule. The human consequences included killing, enslavement, destruction of temples, and displacement, as well as the integration of some Indians into the army and administration. The traditional count of about seventeen campaigns is a convention, and numerical claims in the sources must be treated with caution.

The Ghaznavid state rested on an inherited bureaucracy of viziers and secretaries, organized in dīvāns, and on a large multi-ethnic army of Turkic ghilman, Iranian and Indian troops, and elephants. Its finances depended mainly on land and urban taxes, supplemented by tribute and booty. The army's cost and the need for continual revenue shaped the dynasty's policy and made it vulnerable. Everyday life for cultivators, artisans, and the enslaved is poorly documented, but the evidence suggests heavy burdens and uneven benefits.

The court's cultural achievements were substantial. The Ghaznavids inherited Samanid court practice and extended it, patronizing poets such as ʿUnsuri, Farrukhi, and Manuchehri, whose qasidas combined Iranian royal imagery with Islamic ideals. The Shahnameh of Firdawsi was completed in this period, but the stories of its relationship with Mahmud belong largely to later tradition. Historians and secretaries including al-ʿUtbi, Gardizi, and above all Bayhaqi produced works of high literary and historical value, and al-Biruni, working in the Ghaznavid orbit, wrote an unusually careful study of Indian learning. Archaeological remains at Ghazna and Lashkari Bazar complement the texts.

Masʿud's reign, from 1030 to 1041, saw the dynasty overextended across several frontiers and weakened by court factionalism, fiscal pressure, and the problem of the Oghuz Turkmen who had been allowed to settle in Khurasan. The Seljuks, emerging as the leaders of the Turkmen, took Nishapur in 1038 and defeated Masʿud at Dandanqan in 1040, a defeat explained by thirst, mobility, loss of cohesion, and the political weakness of the Ghaznavid position in Khurasan rather than by any inevitable superiority of nomads. Masʿud was deposed and killed in 1041.

The dynasty survived the defeat. Mawdud reasserted Ghaznavid rule, the Punjab became more important, and Ibrahim, who reigned from 1059 to 1099, stabilized the sultanate through accommodation with the Seljuks. Under Masʿud III and Bahram Shah, Ghazna and Lahore were centers of building and Persian literature, with poets such as Masʿud-e Saʿd-e Salman and Sanaʾi. The rise of the Ghurids led to the sack of Ghazna in 1151, its eventual loss, and the final capture of Lahore and deposition of Khusrau Malik in 1186.

The Ghaznavid legacy lies in the military and administrative models that later dynasties inherited, in the extension of Persianate court culture to Afghanistan and the Punjab, in the opening of a long period of Muslim rule in northwestern South Asia, and in the memory, contested in Iran and India, of Mahmud and his campaigns. The chapter has also illustrated the importance of evidence: panegyric, chronicle, coin, inscription, and ruin each reveal part of the story, and none speaks for the people the dynasty ruled and conquered.

Review Materials

Key Terms

Ghaznavids
A dynasty of Turkic military origin that ruled from Ghazna from 977 and later from Lahore until 1186, with its territorial peak under Mahmud.
Ghulam (pl. ghilman)
A military slave, usually of Turkic origin, trained in a ruler's household and army and eligible for promotion to high command.
Hajib
A chamberlain; under the Samanids and Ghaznavids, a senior court and military officer.
Amir
A commander or governor, the usual title of a military ruler acting under the caliph's authority.
Sultan
A title meaning power or authority, increasingly used for rulers holding effective power; its meaning was still evolving in this period.
Laqab
An honorific title, such as Yamin al-Dawla, conferred by the caliph or ruler.
Yamin al-Dawla
"Right Hand of the State," the honorific that Mahmud received from the caliph, giving its name to al-ʿUtbi's chronicle.
Dīvān
A government department, such as those of the vizier, the army, and correspondence.
Dīvān-e resālat
The chancery responsible for official correspondence, diplomas, and documents, in which Bayhaqi and Abu Nasr Mushkan worked.
ʿĀriḍ
The army controller responsible for the registration, inspection, and payment of troops.
Sāhib-e barid
An agent of the postal and intelligence service who reported on local conditions and officials to the ruler.
Vizier
The chief minister supervising the civil administration, a powerful but vulnerable office.
Iqtaʿ
A grant of revenue rights, or in some cases land, from state resources, often to soldiers; its Ghaznavid form is debated and it is not equivalent to feudalism.
Ghanima
Booty taken in war, divided according to Islamic law and custom, with a share reserved for the ruler.
Ghazi
A warrior for the faith, a title and ideal that the Ghaznavid court applied to Mahmud.
Hindu Shahis
The dynasty that ruled the Kabul and Peshawar region and parts of the Punjab and resisted the Ghaznavids until the 1020s.
Qarakhanids
A Turkic Muslim dynasty of Central Asia that took Bukhara in 999 and shared the Samanid inheritance with Mahmud.
Oghuz (Ghuzz, Turkmen)
Turkic pastoral groups of the steppe whose movement into Khurasan challenged Ghaznavid rule.
Seljuks
A family leading Oghuz groups, whose leaders Tughril and Chaghri defeated Masʿud at Dandanqan.
Karramiyya
A devotional and ascetic movement influential in Khurasan, enjoying court favor at times in this period.
Ismaʿili / Qarmati
Shiʿi groups associated with the Fatimid cause or its offshoots, targeted by Ghaznavid religious policy, as at Multan.
Qasida
A long monorhymed poem with a conventional structure, used above all for praise at court.
Madḥ
Praise or panegyric poetry celebrating a patron.
Adab
Cultivated learning and literary refinement expected of secretaries and courtiers.
Persianate
A modern analytical term for cultural and administrative traditions rooted in New Persian and spread beyond ethnic Persian territory.
Tarikh
History or chronicle; the genre of Bayhaqi, Gardizi, and al-ʿUtbi.
Panegyric
Praise literature composed to glorify a ruler, following conventions that must be read critically.
Dandanqan
The place, in the desert between Sarakhs and Marv, where the Seljuks defeated Masʿud in May 1040.
Lashkari Bazar
A palace and bazaar complex near Bust, excavated in the twentieth century, a major source for Ghaznavid architecture.
Ghurids
A dynasty from Ghur that sacked Ghazna in 1151 and ended Ghaznavid rule in 1186.
Indica
The common name for al-Biruni's study of Indian society, religion, and science completed around 1030.

Major People and Places

Identification & Significance

Alptigin
Samanid slave commander who withdrew to Ghazna in 962 and founded the military principality that became the dynasty's base.
Sebuktegin
Former slave of Alptigin who took power in 977, expanded toward the Kabul region and fought the Hindu Shahis.
Mahmud of Ghazna
Ruler from 998 to 1030; took Khurasan, conquered Khwarazm, campaigned in India, and patronized poets and scholars.
Masʿud I
Son of Mahmud; ruled 1030 to 1041, lost Khurasan at Dandanqan, and was deposed and killed.
Mawdud and Ibrahim
Later sultans who rebuilt the dynasty and, in Ibrahim's case, stabilized it through accommodation with the Seljuks.
Masʿud III and Bahram Shah
Twelfth-century sultans associated with building at Ghazna and with the court poets of the later dynasty.
Khusrau Malik
The last Ghaznavid ruler, deposed by the Ghurids when Lahore fell in 1186.
Jayapala and Anandapala
Hindu Shahi kings who resisted Ghaznavid expansion and whose defeat opened the Punjab.
Al-Qadir
Abbasid caliph whose recognition and titles supported Mahmud's legitimacy.
ʿUnsuri, Farrukhi, Manuchehri
Leading panegyric poets of the early Ghaznavid court.
Firdawsi
Poet of the Shahnameh, whose relationship with Mahmud is known mostly through later tradition.
Bayhaqi
Chancery official and historian whose Persian Tarikh gives detailed evidence on Masʿud's court.
Al-Biruni
Scholar of Khwarazm who lived in the Ghaznavid world and wrote a major study of India.
Tughril and Chaghri
Seljuk leaders who took Nishapur and defeated the Ghaznavids at Dandanqan.
Alauddin Husayn and Muʿizz al-Din Muhammad
Ghurid rulers who sacked Ghazna in 1151 and took Lahore in 1186, respectively.
Ghazna and Bust
The highland capital and the lowland winter city of the Ghaznavid state.
Nishapur, Herat, Balkh
The principal cities of Khurasan, the financial heart of the empire.
Lahore and Multan
Principal Ghaznavid centers in the Punjab and the Indus valley.
Khwarazm and Rayy
Northern and western regions brought under Ghaznavid control in 1017 and 1029.
Somnath
Gujarat temple attacked in 1025–1026, the most debated episode of the Indian campaigns.
Lashkari Bazar
Excavated palace complex near Bust that illuminates Ghaznavid architecture and court life.

Chronology Check

  1. Place the following in chronological order: Mahmud defeats Ismaʿil; Alptigin takes Ghazna; the battle of Dandanqan; Mahmud conquers Khwarazm; Sebuktegin takes power at Ghazna; the Ghurids take Lahore; the expedition to Somnath; Mahmud captures Rayy.
  2. Which of these events belong to the formation of the dynasty, which to its territorial peak, and which to its contraction and end?
  3. Explain how the Samanid collapse and Mahmud's acquisition of Khurasan are connected.
  4. Why does 1029 mark both the western limit of Ghaznavid expansion and the beginning of a crisis?
  5. Identify two overlapping processes in the years 1035 to 1040 and explain how they interacted.
  6. Explain the difference between the significance of 1040, 1151, and 1186.
  7. Group the following into political, military, and cultural developments, and explain overlaps: the conquest of Khwarazm; the completion of the Shahnameh; the sack of Ghazna in 1151; the composition of Bayhaqi's Tarikh.
  8. Which developments show continuity between the Samanid and Ghaznavid periods, and which show change?
  9. How does the order of the later sultans illustrate the importance of succession rules?

Map Study Questions

  1. Using a map, explain why Ghazna's position made it a useful base for operations in both Khurasan and the Punjab.
  2. Compare the regions the Ghaznavids administered directly, those held through vassals, and those only raided. What does the comparison show about the limits of imperial control?
  3. Why did the Oxus river serve as a political frontier with the Qarakhanids?
  4. What logistical problems did the route to Somnath create, and how did the Ghaznavid army deal with them?
  5. Why did the terrain at Dandanqan favor the Seljuk style of warfare?
  6. Why did Lahore become more important after the loss of Khurasan?

Primary Source Questions

  1. Al-ʿUtbi was a secretary of the Ghaznavid chancery writing in ornate Arabic. How might his position and style shape his account of Mahmud's campaigns, and how could a historian test his claims?
  2. Compare Bayhaqi, a former chancery official writing decades later, with al-ʿUtbi. What are the advantages and limits of each as a source on Ghaznavid government?
  3. Al-Biruni lived within the Ghaznavid world yet wrote with attention to Indian viewpoints. What does this suggest about the relationship between patronage and intellectual independence?
  4. What kinds of sources describe the attack on Somnath, and why do their differences matter for historians?
  5. Why must students be careful about quoting from the paraphrases in this chapter's source windows, and how would you verify a quotation?
  6. What perspectives are missing from all of the source windows in this chapter, and how might a historian try to recover them?

Review Questions

  1. How did the Samanid military-slave system produce the Ghaznavid dynasty?
  2. Why is Sebuktegin, rather than Alptigin, usually treated as the founder of the dynasty?
  3. What resources did the acquisition of Khurasan give Mahmud, and why did they matter?
  4. How did Mahmud seek legitimacy from the caliph, and how did he present himself as a Sunni ruler?
  5. How did the Ghaznavids manage the northern frontier with the Qarakhanids?
  6. What distinguished territory the Ghaznavids administered from territory they only raided?
  7. What were the political, economic, and religious dimensions of Mahmud's Indian campaigns, and why do historians disagree about their relative weight?
  8. Why must historians treat the figure of seventeen Indian campaigns and reports of booty with caution?
  9. How was the Ghaznavid army composed, and what problems did its cost create?
  10. Why did a dynasty of Turkic origin patronize Persian poetry and prose?
  11. What does the story of Firdawsi and Mahmud illustrate about the difference between event and later tradition?
  12. What makes Bayhaqi's Tarikh an unusually valuable source, and what are its limits?
  13. Why did the Ghaznavids lose Khurasan in 1040, and why is the explanation of inevitable nomadic victory inadequate?
  14. How did the dynasty survive after 1040, and what role did Lahore play?

Short Answer Questions

  1. Compare Alptigin's principality with the sultanate Mahmud created. What is similar, and what is new?
  2. Explain how the revenue of Khurasan and the booty of India each contributed to Ghaznavid power, and why neither alone is a sufficient explanation.
  3. Explain continuity and change from the Samanid to the Ghaznavid court, using the chancery and panegyric poetry.
  4. Explain how historians evaluate Mahmud's building and patronage, distinguishing what texts report from what archaeology shows.
  5. Distinguish the loss of Ghazna from the end of the Ghaznavid dynasty.
  6. Explain why Persianate court culture and Turkic ancestry were not mutually exclusive in the Ghaznavid state.

Discussion Questions

  1. Is it more accurate to describe the Ghaznavids as successors to the Samanids or as a new military monarchy? What evidence would persuade you, and what would your choice leave out?
  2. How should historians discuss the destruction of temples and the enslavement of captives in Mahmud's campaigns without minimizing violence and without reducing the dynasty to it?
  3. Why might later political movements in different countries have used the memory of Mahmud and Somnath in different ways? What does this teach about historical memory?
  4. How does the Ghaznavid case challenge the equation of language, ancestry, and political identity?
  5. The sources for Ghaznavid history were written by court officials, poets, and scholars. How should that shape the questions we ask and the confidence of our answers?
  6. What are the advantages and risks of a state that depends on conquest to pay its army?
  7. How should historians weigh the cultural achievements of Ghaznavid patronage against the human costs of the military state that financed it?

Writing Prompts

  • Prompt 1 (Explanatory): Explain how a dynasty of Turkic military slave origin became a major sponsor of Persian court culture. Address inheritance from the Samanids, the need for legitimacy, competition among courts, and the multilingual setting, and discuss why a single-cause explanation is inadequate.
  • Prompt 2 (Comparative): Compare the Ghaznavids with the Buyids of Chapter 36 in terms of origins, sources of legitimacy, military organization, relations with the caliph, and cultural patronage. What does each reveal about the options available to rulers of the tenth and eleventh centuries?
  • Prompt 3 (Evidence-based argument): Using at least three kinds of evidence discussed in this chapter, such as panegyric, chronicle, coinage, and archaeology, argue for one interpretation of Mahmud's Indian campaigns: religious warfare, political and economic strategy, or overlapping motives.
  • Prompt 4 (Connecting periods): Trace how the practices of the Ghaznavids concerning military slaves, the chancery, and court patronage were continued, altered, or rejected by the Seljuks and the Ghurids, using Chapters 38 and 39 as they become available.

Research or Library Extension

MGU Library Research Project

Constructing a Source Dossier on a Ghaznavid Episode

This project asks you to assemble and analyze a small dossier of sources on a single episode or institution of Ghaznavid history, comparing how different kinds of evidence describe it and what each leaves out.

  1. Choose a topic. Options include the succession struggle of 1030, the conquest of Khwarazm, the attack on Somnath, the fall of the minister Hasanak, the battle of Dandanqan, or the sack of Ghazna in 1151.
  2. Gather sources. Using library resources, locate published translations or editions of at least three kinds of evidence: a near-contemporary chronicle or poem, a later chronicle or biographical work, and either numismatic, epigraphic, archaeological, or Indian evidence, or a modern scholarly study.
  3. Analyze each source. For each, record author, date, genre, audience, purpose, and perspective, and note what the source can and cannot establish.
  4. Compare. Identify agreements, contradictions, and silences among the sources, and explain whether differences reflect evidence, perspective, or interpretation.
  5. Write. Prepare a 4 to 6 page dossier with a short introduction, annotated source entries, and a conclusion stating what can reasonably be concluded and what remains uncertain, using qualified language where the evidence requires it.

Library resources to use: published translations of medieval Persian and Arabic chronicles, editions of court poetry, numismatic catalogues, archaeological reports on Ghazna and Lashkari Bazar, encyclopedia entries on the Ghaznavids, and the MGU History Library's reference materials on the eastern Islamic world and northwestern South Asia.

Chapter Reflection

The Ghaznavid story matters because it shows how cultural traditions travel across the boundaries of ancestry and language. A dynasty of Turkic soldiers made itself the patron of Persian poetry and the master of a Persianate bureaucracy, and in doing so it carried a literary and administrative culture far beyond the territories where it had first flourished. Students who understand this process can read later medieval history, from the Seljuks to the Delhi sultans, as a series of variations on a pattern the Ghaznavids helped to establish.

The chapter also reveals the double character of a military state. The same armies that financed the court's poets, scholars, and builders also destroyed temples, enslaved captives, and overextended the dynasty's resources. A responsible history must hold both facts together, resisting both the triumphant narratives of the court and the later political uses that reduce a complex dynasty to a single image. The debates over Somnath and over Firdawsi and Mahmud show how memory is shaped long after events, and why historians must separate evidence from tradition.

Several developments begun here continued long after 1186. The Persian language and the Persianate court culture established at Lahore became part of the long history of South Asia. The pattern of a sultan holding military power under caliphal recognition was refined by the Seljuks and their successors. The practice of recruiting soldiers from the steppe and paying them from conquest and taxation recurred in many later states. And the Ghurids, who ended the Ghaznavid dynasty, built on its foundations in India.

For the textbook as a whole, this chapter connects the Persianate revival of the Samanids and the Buyid experiment in Baghdad with the Turkic-Iranian synthesis of the Seljuks that Chapters 38 and 39 will examine. It prepares the discussions of religious institutions in Chapter 40, of Firdawsi and Iranian historical memory in Chapter 42, and of the scientific and scholarly world of Chapter 43. The Ghaznavids were neither simply conquerors nor simply patrons. They were a creative and unstable answer to the problem of governing a large and diverse region, and understanding them helps explain how the eastern Islamic world came to take the shape it did.