The Ghaznavids MCQs

From Ghazni in present-day Afghanistan, Mahmud of Ghazni raided India again and again between 1000 and 1027, broke the Hindu Shahi kings of the Punjab, took Lahore in 1021 and attacked Somnath in 1025. His father Subuktigin had founded the empire and opened the way.

Facts checked 28 November 2026.11 practice MCQs on this topic

The Ghaznavids — Study Notes

Subuktigin — the founder who opened the way

The Ghaznavid story begins with Subuktigin, a Turkic slave who rose to become ruler of Ghazni in present-day Afghanistan. He founded the Ghaznavid Empire and opened the path into the subcontinent, pushing east against the Hindu Shahi kingdom that held the Punjab and the north-west. Without Subuktigin there is no Mahmud: the father built the state, the army and the road through the Khyber Pass that his son would ride down again and again. Ghazni itself, high in the Afghan mountains, was the base for every expedition that followed — the armies went out from it, and the plunder and the scholars came back to it.

Mahmud of Ghazni — the expeditions, traditionally seventeen

Mahmud of Ghazni ruled from 998 to 1030. Between 1000 and 1027 he made a series of expeditions into the subcontinent, traditionally counted as seventeen. That number comes from Sir Henry Elliot's count, followed by most exam sources — but say it exactly that way, ‘traditionally counted seventeen’, because modern historians debate the exact number, and some expeditions were small raids rather than great invasions. The pattern of the expeditions matters more than the count: they were fast, hard raids from Ghazni through the Khyber Pass, aimed at rich temples and cities, and after each one Mahmud returned home to Ghazni. He raided; he did not stay to rule India.

The Hindu Shahi kings and the taking of Lahore

Mahmud's main enemies in the north-west were the Hindu Shahi rulers of the Punjab. He defeated Raja Jayapala and his son Anandapala, breaking the power of the dynasty that had guarded the passes into India. In 1021 he took Lahore, and the Punjab was annexed and ruled from Lahore. That is the one lasting conquest among all his raids: the Punjab stayed under Ghaznavid rule, governed from Lahore, long after Mahmud himself was gone. Remember the sequence — Jayapala, then Anandapala, then Lahore in 1021 — because exams ask for each link in the chain.

Somnath, 1025

Mahmud's most famous attack was on the Somnath temple in Gujarat, in 1025. Some sources give 1026, and you will meet both dates in books and in past papers — teach 1025 as the year, and know that 1026 is the variant some sources use. Somnath was the richest temple of its time, and its plunder made Mahmud famous across the Muslim world and feared across India. It is also why he is remembered by the title But-Shikan, the Breaker of Idols — a title exams ask for, so fix it to his name and to Somnath together.

The court at Ghazni — Firdausi and Al-Biruni

Mahmud was not only a raider; he was a great patron of learning. The Persian poet Firdausi was at his court, and so was the scholar Al-Biruni, who travelled with Mahmud into India and described what he saw in Kitab-ul-Hind, a famous account of India. That book is one of the most asked-about facts of this topic: Al-Biruni wrote Kitab-ul-Hind, and he wrote it from what he saw while travelling with Mahmud's expeditions. Ghazni under Mahmud was a centre of Persian learning and art, paid for by the wealth his armies brought home.

Ghaznavid Lahore and the Sufi saints

Under Ghaznavid rule Lahore became a Muslim city of scholars and saints. The shrine of Data Ganj Bakhsh (Ali Hajveri) in Lahore was first built by the Ghaznavid king Zakiruddin Ibrahim in the late eleventh century, and Data Ganj Bakhsh himself wrote Kashaf-ul-Mahjub, a famous book on Sufism. The saints matter here because they show the second way Islam spread — not by armies but by preaching, love and tolerance, winning converts in the Punjab while the sultans held the forts. That is why the spread of Islam in the Punjab was gradual and peaceful in many areas, even in a century of raids.

Why the Ghaznavids matter — and what they did not do

The Ghaznavids matter because they broke the Hindu Shahi kingdom, made Lahore a Muslim capital, and opened the road into India that every later conqueror would use. But remember what they did not do: they did not build a permanent Muslim state in India. Mahmud raided and returned to Ghazni; only the Punjab stayed under his governors. The permanent state came later, with Muhammad of Ghor — the next subtopic. If an exam asks you to tell Mahmud and Ghori apart, that is the answer: one raided, the other stayed.

Keep Learning — The Ghaznavids