Shajaram
10th–12th centuries

The Ghaznavid State

From Sabuktigin to Mahmud of Ghazni, Mas'ud, Ibrahim and Khusrau Malik

8 generations15 people

Sabuktigin, a Turkic ghulam of the Samanid commander Alptigin, became governor of Ghazni in 977, and his son Mahmud of Ghazni built a mighty sultanate embracing Khorasan, Khwarazm and northern India; al-Biruni, Unsuri and al-Utbi worked at his court, and Ferdowsi presented the Shahnameh to him. After Dandanaqan (1040) the state, defeated by the Seljuks, retreated to Ghazni and the Punjab; in 1186 the Ghurids brought it to an end.

Drag and zoom the tree. Tap a card to read about that person below.

List by generation

Generation 1

Sabuktigin

942 – 997Reign: 977–997

A Turkic ghulam from Barskhan, the ghulam and son-in-law of Alptigin; in 977 he became governor of Ghazni and founded the dynasty. He fought for the Samanids against the Karakhanids.

Children
Mahmud of Ghazni, Ismail ibn Sabuktigin

Generation 2

Mahmud of Ghazni

02.11.971 – 30.04.1030Reign: 998–1030

Sultan (998–1030) — one of the first rulers to be called “sultan” in the sources. By the traditional count he led 17 campaigns into India and took Khwarazm (1017) and Ray; he brought al-Biruni to Ghazni, and Ferdowsi dedicated the Shahnameh to him.

Father
Sabuktigin
Children
Muhammad ibn Mahmud, Mas'ud I, Abd al-Rashid

Ismail ibn Sabuktigin

Reign: 997–998

Took the throne by his father's will and was removed seven months later by his brother Mahmud.

Father
Sabuktigin

Generation 3

Muhammad ibn Mahmud

? – 1041Reign: 1030, 1040–1041

Twice briefly sultan (1030, 1040–1041).

Father
Mahmud of Ghazni

Mas'ud I

998 – 1040Reign: 1030–1040

Sultan (1030–1040). Defeated by the Seljuks at the Battle of Dandanaqan (1040), he lost Khorasan; during his retreat to India his mutinous army deposed him, and he was executed in the fortress of Giri. Bayhaqi's history covers his reign. His year of death is 1040 or 1041, depending on the source.

Father
Mahmud of Ghazni
Children
Mawdud, Farrukh-Zad, Ibrahim

Abd al-Rashid

? – 1052Reign: 1049–1052

Sultan (1049–1052).

Father
Mahmud of Ghazni

Generation 4

Mawdud

? – 1049Reign: 1041–1049

Sultan (1041–1049; his year of death is 1048 or 1049, depending on the source); he avenged himself on his father's murderers.

Father
Mas'ud I

Farrukh-Zad

? – 1059Reign: 1053–1059

Sultan (1053–1059).

Father
Mas'ud I

Ibrahim

1033 – 1099Reign: 1059–1099

Sultan (1059–1099), for 40 years; he made peace with the Seljuks and kept the state at peace.

Father
Mas'ud I
Children
Mas'ud III

Generation 5

Generation 6

Shirzad

? – 1116Reign: 1115–1116

Sultan (1115–1116).

Father
Mas'ud III

Arslan-Shah

? – 1118Reign: 1116–1117

Sultan (1116–1117); deposed by Sultan Sanjar.

Father
Mas'ud III

Bahram-Shah

? – 1157Reign: 1117–1157

Sultan (1117–1157), a vassal of the Seljuks; the poet Sanai lived at his court. The Ghurids burned Ghazni (1151).

Father
Mas'ud III
Children
Khusrau Shah

Generation 7

Khusrau Shah

? – 1160Reign: 1157–1160

Sultan (1157–1160); moved the capital to Lahore.

Father
Bahram-Shah
Children
Khusrau Malik

Generation 8

Khusrau Malik

? – 1191Reign: 1160–1186

The last Ghaznavid (1160–1186); the Ghurid Mu'izz al-Din took Lahore and made him a captive.

Father
Khusrau Shah

Compiled from open historical sources; some dates are approximate. These trees cannot be edited.

Build your own family tree

Record your ancestors, keep family photos and fill in the tree together with your relatives — for free.

Get started free

Other family trees

All family trees