Yasir Qadhi YQ Index
How 16,000 Nomads Destroyed an Empire (Dandanqan 1040) | Ramadan Series 2026

How 16,000 Nomads Destroyed an Empire (Dandanqan 1040) | Ramadan Series 2026

Yasir Qadhi12 Mar 2026 · 17:16
YouTube

Transcript

Made automatically from the audio, unedited: names and Arabic terms are often misheard. Tap a timestamp to play from there; the player stays with you as you read.

00:00The battle of Dandanqan

No one watching the Ghaznavid elephants lumber across the plains of Dandanqan in 1040 CE could have ever predicted that they were witnessing the end of an era in Muslim history. Yet, there they were, chasing the Seljuq Turks across miles of desert, pursuing unassuming nomadic warriors who refused to stand and fight, their troops and their elephants getting more exhausted by the day. How did the Seljuk Turks, a nomadic tribespeople whom the Ghaznavids merely considered a persistent irritation, topple one of the strongest empires in Muslim history?

00:38

And how did this single battle reshape the political map of the Middle East for centuries to come? Let us take a step back and set up the Battle of Dandanqan.

00:48Splintering of Abbasid power

After the early Muslim conquest and the height of the Abbasid power, the Eastern and Western lands started to be divided amongst petty dynasties. Ever since the passing of the Prophet and especially after the time of the Khalafat Rashidun, the Muslims really had not been a unified force. But the majority of power had usually been consolidated under one Khalifa and one rule. Now, with the Abbasids weakening and unable to keep their governors in check, the empire began to splinter.

01:19

The first to break away, or one of the first, was Tahir ibn al-Husayn of Khurasan, who had become al-Ma'moon's trusted general, who had been made the governor of the region east of Baghdad in 820 CE, with his power concentrated on Khurasan and his capital of Merr. Two years before Tahir's death, he omitted to mention the Khalifa's name in his Friday sermon, and his descendants then produced a dynasty that extended to the Indian frontier with their capital in Neshapur.

01:51

They were toppled in 872 by the Safarids, who ruled almost all of Persia and the outskirts of India, and even threatened Baghdad until they too were conquered by the Samanid dynasty of Trans-Augziana and Persia. This dynasty originated in Balkh, in modern-day Afghanistan, and they reigned until the year 999.

02:14The Samanid dynasty

Outwardly, they professed loyalty to the Abbasids, But they were virtually independent. Although the Abbasids viewed them as governors, effectively they ruled independently. The Samanids executed the final subjugation of Trans-Oxiana to Muslim rule. And they had their capital in the famous city of Bukhara. The latter city and also Samarkand almost eclipsed Baghdad as centers of learning and art, where both Persian and Arabic scholarship were supported.

02:45

The great physician Abu Bakr al-Razi and also the intellectual Ibn Sina are both a result of the thriving culture of the Samanid empire. Despite being one of the most enlightened Iranian dynasties, they actually had a turbulent military aristocracy and a precarious dynastic succession. They also started to be attacked by Turkish nomads in the north, whilst also losing power from within the Turkish slaves in their own court. The Samanid territory, south of the Oxus, was absorbed in 994 by the Ghaznavids, whose origin also went back to a Turkish slave by the name of Al-Btegeen.

03:26Rise of the Ghaznavids

And this Al-Btegeen had actually been, once upon a time, a part of the Samanid court. Al-Btegeen had started life as a bodyguard for the Samanids, who received governmental promotions until he was made the governor of Khorasan in 961. But after falling out of favor with the new Samanid ruler shortly thereafter, he left for the eastern border of the kingdom. And then in 962, he captured Ghazna in the country of Afghanistan today, and he established his own principality, his own realm.

03:58

However, the real founder of the Ghaznavid dynasty, which was ruling over what we now call Afghanistan and Punjab, from 962 until 1186 was Subuktagin. And Subuktagin extended the territory into Peshawar in India and Khorasan in Persia. His son, Mahmood al-Ghaznavi, is considered to be the greatest ruler of the Ghaznavid dynasty. And he continued this expansion. Mahmood al-Ghaznavi led over 17 campaigns into India from his position in Ghazna through the valley of Kabul.

04:36

He was able to capture Punjab and its center, the city of Lahore, and what is now a part of Sindh. He also extended the Western territory to include Persian Iraq, including the famous cities of Rayy and Isfahan from the Shia dynasty of the Bweyhids, who at the time basically controlled the Abbasid Khalifa. At the height of his power, Mahmood al-Ghaznavi's territory included northern India in the east and Persian Iraq in the west, as well as Khorasan, Turkharistan, and its center Balkh and Sijistan in the south.

05:11

He adorned his capital with grand buildings and created a large academy, filled his court with poets and scholars and some of the most intellectual luminaries of the time, such as Al-Utbi and the scientific author Bayroni and the Persian poet Firdausi. All of them were a part of this court. And in fact, there's a semi-humorous anecdote about Firdausi. Firdausi wrote a 60,000-line poem in praise of Mahmoud al-Ghaznavi, expecting to be rewarded in gold coins.

05:43

But when Mahmoud al-Ghaznavi gave him 60,000 silver coins, dirhamd, instead of 60,000 dinars, gold coins, he wrote a satire against the ruler in disgust. And because of that, he had to flee the empire for his life. But returning to our story, The Ghaznavid dynasty represents the first victory for the Turkish faction over the Iranian faction. But it differed little from the earlier Safarids and the Samarids, who had ruled by force of arms. And when Mahmood passed away, its power began to fade and a new power began to rise, the Saljuks.

06:20Emergence of the Seljuks

Who were the Saljuks? The Seljuks were a Turkic military dynasty who emerged in southwestern Asia from the 11th century. The Turks are related to what we now call the Mongol Empire. And they broke away from that empire and they started making their way westward through the lands of Islam. And the rise of the Seljuqs is one of the earliest, if not the earliest timeframes in which the Turkic Empire begins its ascent.

06:51

And from this ascent, it will eventually form the famous Ottoman Empire. The Seljuqs came from the nomadic horsemen from the steppies of southwestern Asia. And they were renowned horsemen and archers. Their ancestor, after whom they're named, Seljuq, split away from the rest of the clan. and Saljuq embraced Islam, becoming Muslim. His grandson, Tughr al-Bayg, moved them into the lands of Khurasan, where they took advantage of the fading Ghaznavid empire and took the cities of Maru, Herat, and Neshapur.

07:26

With so much land having been lost, Mahmood's son, Mas'ud al-Ghaznavi, who had succeeded his father, was forced to lead an army to stop the Saljuqs. And this is where the battle of Dandanqan takes place.

07:39Ghaznavid defeat

Dandan Qan is a fortress in the desert between Maru and Sarakhs And the two forces of the Ghaznavids and the Seljuqs met on the 8th of Ramadan in the year 1040 CE An army led by Mas'ud was heading from Neshafur to Maru to seek out the Seljuqs But the Ghaznavids force was exhausted already from the long desert road and the shortage of supplies and fighting had already broken out between the Sultan's personal guard and between the ordinary soldiers over the lack of water.

08:13

This army was led by Tughrul and Chaghr, and the Seljuq attacked with 16,000 horsemen and routed the Ghaznavids. For Mirbal Thoreau, the Ghaznavid military was, it faced insuperable logistical and tactical difficulties. Their heavy armor and their use of elephants, a tactic learned from India intending to terrify their foes, actually slowed them down and made it impossible to operate in the desert or in the steppe where resources were scarce.

08:46

In individual battles, the Ghaznavids tended to get the upper hand, but the Saljuks usually evaporated into the steppe before a direct confrontation could take place. The prevailing famine in Khorasan meant that the Ghaznavid army struggled to find supplies, but the Seljuks did not care about that because the Seljuks were accustomed to be very content with small amounts of food and water. The maneuverability of the Seljuks also meant that the Ghaznavid forces were massively overstretched by having to defend the whole vast region, stretching from Jorjan by the Caspian to the Oxus.

09:24

As a result, even important cities were left with wholly inadequate garrisons or with no garrison at all. Some major centers even lacked protective walls and fortresses. Such cities were thus easy prey for the Saljuqs to capture. Hence, Mas'ud from the Ghaznavit side was forced to flee to India, after which he was deposed.

09:50Seljuk expansion

After Dandan Qan, the famous historian Ibn al-Athir recalls how Shagri's men did not dismount for three days and would not be parted from their horses except when they needed to eat and drink and so on out of fear of the return of Mas'ud's army When the scale of their victory became clear the Seljuq sought to secure control of Khurasan While Shagri set off to seize Balgh Tughrul entered the famous city of Neshapur, thus ushering in a new era.

10:24

The Ghaznavids continued to weaken. In the north and west, the Khans of Turkestan and the Seljuks of Persia took Ghaznavid territory. And in the center, the Ghurids of Afghanistan and the dynasty with their victory in Lahore in 1186. In the absence of Ghaznavid authority, it was left to urban notables to decide how to react. Some towns such as Abi Ward seem to have defected to the Seljuqs on the initiative of these local elites.

10:54

And a local historian writing from the time frame seems to have echoed this sentiment when he cites a letter stating that Tughrul and Chagri wrote to the Khalifa Al-Qa'im in Baghdad in which they claimed the notables and the famous people of Khorasan requested us to protect them. This marked the empowerment of the Seljuk dynasty, who would rule in Iran and Iraq until 1194. And the Seljuq then created a dynasty in Rome from 1077 to 1307 in what is now central and eastern Turkey. Under the sultans Al-Arsalan and then Malik Shah, the Seljuk empire was extended to include all of Iran and Mesopotamia and Syria, including Palestine and Aqsa. In 1071, Al-Arsalan defeated an immense Byzantine army at Manzikart and captured the Roman Emperor.

11:52

And that will be the subject of the next episode. There are so

11:56Historical lessons

many lessons to learn from Dandanqan, of them, the sad reality of Muslim against Muslim violence. But if ostensibly Muslim people could justify killing Uthman radiallahu anhu or assassinating Ali radiallahu anhu even surrounding the grandson of the Prophet sallallahu alayhi wasallam then these sad dynastic battles should not surprise us in the least and while they certainly do not bring any joy we also need to understand as Allah subhanahu wa ta'ala says in the Quran wa tilka al-ayamu nudaawiluha bainan nas these are the days that we distributed amongst the people every few generations every Every few centuries, another dynasty rises, yet another falls.

12:37

And each one of them, Allah subhanahu wa ta'ala brings good through some, and there's also other than that. And of course, our job, as the Quran mentions, when two groups of Muslims fight, we try our best to bring peace between them. However, if one of them transgresses, then we are taught to work with the one that is transgressed and bring the transgressor into check. and we learn as well from our theology and our books of Islamic law that if it is not clear which side is in the right and wrong then we should try our best to be as neutral as possible and these are very very difficult realities and we're simply speaking in generics and indeed Allah subhanahu wa ta'ala knows best also in looking at the disintegration of the Ghaznavid forces at the point just prior to the Saljuq attack One is reminded of Allah's commandment in Surah Al-Imran, verse 103.

13:30

وَاعْتَصِّمُوا بِحَبْلِ اللَّهِ جَمِيعًا وَلَا تَفَرَّقُوا Hold on fast, all of you, to the rope of Allah and be not divided amongst yourselves. Disunity is always the greatest cause of defeat. In seeing the demise of the Ghaznavids, one can see how their unjust policies and their over-taxation had dissipated their local support, which is crucial in any battle. Throughout Islamic history, almost always when there was an uprising, it involved legitimate claims of injustice against the Umayyads, against various factions, the Abbasids, against the Seminids, against the Ghaznavis.

14:11

And each time we learn here that injustice, that transgression always has negative impacts and evil after effects upon those who do so. Allah never allows injustice to flourish. We also learn the reality that dynasties and empires come and go by Allah's will, even when they are seemingly so powerful that ruin seems impossible. Yet, this removal of power is by the wrongdoing of the people themselves.

14:44

Allah says in the Quran, whatever hardship befalls you, it is because what you yourselves have done, what your own hands have committed, Hence, we should always be careful of our own mistakes And the impact of those mistakes on the people around us And the Ummah collectively As such, we should always remember to humble ourselves To cleanse our hearts of any ego, of any arrogance To make sure that we are not taking the rights of other people Transgressing against innocent souls Because this is the greatest sin that we can do After the sin of shirk as our Prophet ﷺ said, that a person will have some relaxation, some room to negotiate on the Day of Judgment as long as he hasn't taken the rights of other people.

15:31

We also learn here from all of these battles that we're doing that generally speaking, politics and influencing politics is typically beyond the direct control of the average person. Here we are discussing leaders and military generals But never forget that there were millions of people living in this time frame. We don't know their names, but Allah subhanahu wa ta'ala does. And while all of this is going on, in each dynasty, in every epoch, there are scholars, there are activists, there are mothers and fathers, there are children, there are people living in society, breathing, praying, fasting, being righteous and doing good deeds.

16:12

And even if we do not know their names, and here we are talking about one or two people or politicians or generals, in the end, the hundreds of millions of people who have lived throughout all of these centuries, every single one of them, Allah subhanahu wa ta'ala knows what they have done and contributed behind the scenes. And so we too should take this into account. Do not just be concentrated on the one or two people that we are mentioning here and realize every single person is responsible for himself and herself.

16:44

As Allah subhanahu wa ta'ala says, you will not be asked about what they have done. تِلْكَ أُمَّةٌ قَدْ خَلَتْ That's a generation long gone. لَهَا مَا كَسَبَتْ وَلَكُمْ مَا كَسَبَتْمْ وَلَا تُسْأَلُونَ عَمَّا كَانُوا يَعْمَلُونَ They have to answer for what they have done. you have to answer for what you are doing and you will not be asked about what they did. So we ask Allah subhanahu wa ta'ala to purify our hearts and to accept our good deeds and to forgive our sins. And I'll see you inshaAllah ta'ala for our next episode. Wassalamu alaikum warahmatullahi wabarakatuh.