Biography of Mahmud of Ghazni, First Sultan in History

He conquered much of what is now the Middle East

Mausoleum of Mahmud of Ghazni against blue sky.

Corbis / VCG / Getty Images

Mahmud of Ghazni (Nov. 2, 971–April 30, 1030), the first ruler in history to assume the title of "sultan," founded the Ghaznavid Empire. His title signified that the Muslim Caliph remained the religious leader of the empire despite being the political leader of a vast swath of land, encompassing much of what is now Iran, Turkmenistan, Uzbekistan, Kyrgyzstan, Afghanistan, Pakistan, and northern India.

Fast Facts: Mahmud of Ghazni

  • Known For: First sultan in history
  • Also Known As: Yamin ad-Dawlah Abdul-Qasim Mahmud ibn Sabuktegin
  • Born: Nov. 2, 971 in Ghazna, Zabulistan, Samanid Empire
  • Parents: Abu Mansur Sabuktigin, Mahmud-i Zavuli 
  • Died: April 30, 1030 in Ghazna
  • Honor: Pakistan named its short-range ballistic missile the Ghaznavi Missile in his honor.
  • Spouse: Kausari Jahan
  • Children: Mohammad and Ma'sud (twins)

Early Life

On Nov. 2, 971, Yamin ad-Dawlah Abdul-Qasim Mahmud ibn Sabuktegin, better known as Mahmud of Ghazni, was born in the town of Ghazna (now known as Ghazni), in southeast Afghanistan. His father Abu Mansur Sabuktegin was Turkic, a former Mamluk enslaved warrior from Ghazni.

When the Samanid dynasty, based in Bukhara (now in Uzbekistan) began to crumble, Sabuktegin seized control of his hometown of Ghazni in 977. He then conquered other major Afghan cities, such as Kandahar. His kingdom formed the core of the Ghaznavid Empire, and he is credited with founding the dynasty.

Not much is known about Mahmud of Ghazni's childhood. He had two younger brothers; the second one, Ismail, was born to Sabuktegin's principal wife. The fact that she, unlike Mahmud's mother, was a free-born woman of noble blood would turn out to be key in the question of succession when Sabuktegin died during a military campaign in 997.

Rise to Power

On his deathbed, Sabuktegin passed over his militarily and diplomatically skilled eldest son Mahmud, 27, in favor of the second son, Ismail. It seems likely that he chose Ismail because he was not descended from enslaved people on both sides, unlike the elder and younger brothers.

When Mahmud, who was stationed at Nishapur (now in Iran), heard of his brother's appointment to the throne, he immediately marched east to challenge Ismail's right to rule. Mahmud overcame his brother's supporters in 998, seized Ghazni, took the throne for himself, and placed his younger brother under house arrest for the rest of his life. The new sultan would rule until his own death in 1030.

Expanding the Empire

Mahmud's early conquests expanded the Ghaznavid realm to roughly the same footprint as the ancient Kushan Empire. He employed typical Central Asian military techniques and tactics, relying primarily on a highly mobile horse-mounted cavalry, armed with compound bows.

By 1001, Mahmud had turned his attention to the fertile lands of the Punjab, now in India, which lay southeast of his empire. The target region belonged to fierce but fractious Hindu Rajput kings, who refused to coordinate their defense against the Muslim threat from Afghanistan. In addition, the Rajputs used a combination of infantry and elephant-mounted cavalry, a formidable but slower-moving form of army than the Ghaznavids' horse cavalry.

Ruling a Huge State

Over the next three decades, Mahmud of Ghazni would make more than a dozen military strikes into Hindu and Ismaili kingdoms to the south. By the time of his death, Mahmud's empire stretched to the shores of the Indian Ocean at southern Gujarat.

Mahmud appointed local vassal kings to rule in his name in many of the conquered regions, easing relations with non-Muslim populations. He also welcomed Hindu and Ismaili soldiers and officers into his army. However, as the cost of constant expansion and warfare began to strain the Ghaznavid treasury in the later years of his reign, Mahmud ordered his troops to target Hindu temples and strip them of vast quantities of gold.

Domestic Policies

The Sultan Mahmud loved books and honored learned men. In his home base at Ghazni, he built a library to rival that of the Abbasid caliph's court in Baghdad, now in Iraq.

Mahmud of Ghazni also sponsored the construction of universities, palaces, and grand mosques, making his capital city the jewel of Central Asia.

Final Campaign and Death

In 1026, the 55-year-old sultan set out to invade the state of Kathiawar, on India's west (Arabian Sea) coast. His army drove as far south as Somnath, famous for its beautiful temple to the Lord Shiva.

Although Mahmud's troops successfully captured Somnath, looting and destroying the temple, there was troubling news from Afghanistan. A number of other Turkic tribes had risen up to challenge Ghaznavid rule, including the Seljuk Turks, who had already captured Merv (Turkmenistan) and Nishapur (Iran). These challengers had already begun to nibble away at the edges of the Ghaznavid Empire by the time Mahmud died on April 30, 1030. The sultan was 59 years old.


Mahmud of Ghazni left behind a mixed legacy. His empire would survive until 1187, although it began to crumble from west to east even before his death. In 1151, the Ghaznavid sultan Bahram Shah lost Ghazni itself, fleeing to Lahore (now in Pakistan).

The Sultan Mahmud spent much of his life battling against what he called "infidels"—Hindus, Jains, Buddhists, and Muslim splinter-groups such as the Ismailis. In fact, the Ismailis seem to have been a particular target of his wrath, since Mahmud (and his nominal overlord, the Abbasid caliph) considered them heretics.

Nonetheless, Mahmud of Ghazni seems to have tolerated non-Muslim people so long as they did not oppose him militarily. This record of relative tolerance would continue into the following Muslim empires in India: the Delhi Sultanate (1206–1526) and the Mughal Empire (1526–1857).


  • Duiker, William J. & Jackson J. Spielvogel. World History, Vol. 1, Independence, KY: Cengage Learning, 2006.
  • Mahmud Of Ghazni. Afghan Network.
  • Nazim, Muhammad. The Life and Times of Sultan Mahmud of Ghazna, CUP Archive, 1931.
  • Ramachandran, Sudha. “Asia's Missiles Strike at the Heart.” Asia Times Online., Asia Times, 3 Sept. 2005.
mla apa chicago
Your Citation
Szczepanski, Kallie. "Biography of Mahmud of Ghazni, First Sultan in History." ThoughtCo, Aug. 27, 2020, Szczepanski, Kallie. (2020, August 27). Biography of Mahmud of Ghazni, First Sultan in History. Retrieved from Szczepanski, Kallie. "Biography of Mahmud of Ghazni, First Sultan in History." ThoughtCo. (accessed March 31, 2023).