Middle Ages1040
Battle of Dandanaqan (1040): Rise of the Seljuk Turks
At Dandanaqan in May 1040 the Seljuk Turks under Tughril and Chaghri defeated Sultan Mas'ud of Ghazni, winning Khorasan and launching the Great Seljuk Empire.

Contents
The Battle of Dandanaqan, fought on 23 May 1040 in the desert between Merv and Sarakhs, was the victory that turned the Seljuk Turks from nomadic raiders into the masters of Iran. Led by the brothers Tughril Beg and Chaghri Beg, the Seljuks routed the army of Sultan Mas’ud I of Ghazni. Within fifteen years they would be in Baghdad, and within thirty-one they would defeat the Byzantine emperor at Manzikert.
Background: the Seljuks and the Ghaznavids
The Seljuks were a clan of Oghuz Turks, named after their leader Seljuk, who had converted to Islam in the late tenth century on the steppe east of the Aral Sea. His grandsons Tughril and Chaghri led bands of Turkmen herders south towards the rich lands of Khorasan, in what is now north-eastern Iran, Turkmenistan and northern Afghanistan.
Khorasan belonged to the Ghaznavid empire, founded in Ghazni by Turkish soldiers who had once served the Samanids. Its greatest ruler, Mahmud of Ghazni, known for campaigns such as the sack of Somnath, had already imprisoned a Seljuk chief and settled some Turkmen in Khorasan, hoping to control them. When Mahmud died in 1030, his son Mas’ud fought his brother for the throne and inherited an empire stretched between India and Iran.
The road to battle
In 1035 the Seljuks crossed the Amu Darya (Oxus) into Khorasan in larger numbers and defeated a Ghaznavid force sent against them. Mas’ud granted them lands around Nasa and Farawa in return for their submission, but the Turkmen continued to raid. In 1037 Chaghri took Merv, and in 1038 Tughril entered Nishapur, the main city of Khorasan, where he sat on Mas’ud’s throne and had the Friday sermon read in his own name.
Mas’ud responded with a major campaign. His army was large and well equipped, with heavy cavalry, infantry and war elephants, but it was poorly suited to the steppe and desert. The Seljuks avoided pitched battle, harassed his columns, cut off supplies and filled in or guarded wells. By the spring of 1040 the Ghaznavid troops were exhausted, hungry and thirsty.
Key people
- Tughril Beg (c. 990–1063): Seljuk leader who took Nishapur, won at Dandanaqan and later became sultan in Baghdad.
- Chaghri Beg (died c. 1060): Tughril’s brother, conqueror of Merv and ruler of the eastern Seljuk lands; father of Alp Arslan.
- Mas’ud I of Ghazni (ruled 1030–1040): Ghaznavid sultan defeated at Dandanaqan.
- Abu’l-Fadl Bayhaqi (995–1077): Ghaznavid secretary and historian whose account is the main source for the campaign.
The battle
In May 1040 Mas’ud’s army was marching across the waterless country near the small fortified town of Dandanaqan. On 23 May the Seljuks attacked. The Ghaznavid army, already demoralised, began to break apart. Some commanders and units deserted, and others fled. Mas’ud is reported to have fought bravely in person, but he could not prevent a rout and escaped from the field with a small following.
The best account comes from Abu’l-Fadl Bayhaqi, a secretary in Mas’ud’s chancery who followed the campaign. His history describes the heat, the thirst and the collapse of discipline in vivid detail. Numbers of troops are uncertain: later sources often give Mas’ud around 50,000 men and the Seljuks about 16,000 or more, but these figures are not reliable.
Military historians often point to Dandanaqan as a classic example of a mobile steppe army defeating a larger, slower, state army. The Seljuk horse archers did not need to destroy Mas’ud’s army in a single charge; they wore it down over weeks until it fell apart. The same method would serve the Seljuks and other Turkish and Mongol armies for centuries.
Consequences
On the battlefield Tughril was proclaimed amir of Khorasan, and the Seljuks wrote to the Abbasid caliph in Baghdad announcing their victory and their loyalty to Sunni Islam. The brothers divided their conquests: Chaghri ruled the east from Merv, while Tughril pushed west.
Mas’ud retreated to Ghazni and then set out for India, but in 1041 he was deposed and killed by his own troops. The Ghaznavid dynasty survived, but now only in Afghanistan and the Punjab.
Tughril took Rayy, made Isfahan his capital in 1051 and in 1055 entered Baghdad, as told in the Seljuk capture of Baghdad, where the caliph recognised him as sultan. Under his nephew Alp Arslan the Seljuks defeated the Byzantines at the Battle of Manzikert in 1071, opening Anatolia to Turkish settlement.
Timeline
- 1030: Death of Mahmud of Ghazni; Mas’ud I takes the throne.
- 1035: Seljuks cross the Oxus into Khorasan and defeat a Ghaznavid army.
- 1037: Chaghri Beg takes Merv.
- 1038: Tughril Beg enters Nishapur.
- 1040, 23 May: Battle of Dandanaqan; Seljuk victory.
- 1041: Mas’ud I is deposed and killed.
- 1055: Tughril Beg enters Baghdad.
- 1071: Seljuk victory at Manzikert.
Why it matters
Dandanaqan was one of the turning points of medieval Asian history. It transferred power in Iran from the Ghaznavids to the Seljuks, began centuries of Turkish rule across the Middle East and set off the chain of events that later brought the Turks into Anatolia.
Frequently asked questions
What was the Battle of Dandanaqan?
It was a battle fought on 23 May 1040 near the fortified town of Dandanaqan, between Merv and Sarakhs in what is now Turkmenistan. The Seljuk Turks defeated the army of the Ghaznavid sultan Mas'ud I and took control of Khorasan.
Who won the Battle of Dandanaqan?
The Seljuks, led by the brothers Tughril Beg and Chaghri Beg, won a decisive victory. The Ghaznavid army, exhausted by heat and thirst and weakened by desertions, broke and fled.
Why did the Ghaznavids lose at Dandanaqan?
Mas'ud's large, heavy army, which included war elephants, had been worn down by long marches in the desert, while the mobile Seljuk horsemen harassed it and controlled the water sources. During the battle some of Mas'ud's own commanders and troops deserted, and the army collapsed.
How big were the armies at Dandanaqan?
Numbers are uncertain. Later sources often credit Mas'ud with around 50,000 men and the Seljuks with about 16,000 or more, but these figures are not reliable and should be treated as rough estimates.
What happened after the Battle of Dandanaqan?
Tughril was proclaimed ruler of Khorasan and the Seljuks expanded rapidly westward, taking Rayy, Isfahan and in 1055 Baghdad. Mas'ud retreated towards India and was killed by his own troops in 1041, and the Ghaznavids were limited to Afghanistan and northern India.
Sources and further reading
- C. E. Bosworth, The Ghaznavids: Their Empire in Afghanistan and Eastern Iran, 994–1040 (1963)
- A. C. S. Peacock, The Great Seljuk Empire (2015)
- Encyclopaedia Iranica, "Dandanqan"
Cite this article
“Battle of Dandanaqan (1040): Rise of the Seljuk Turks.” Chronicle, https://chronicle.bigworldlist.com/articles/battle-of-dandanaqan-1040/.