The deaths of Nizam al-Mulk and Malikshah within a few weeks in 1092 left no agreed successor. Terken Khatun pushed her four-year-old son Mahmud; other factions backed Malikshah's older son Berkyaruq. Mahmud died young, but Berkyaruq then fought long wars with his half brother Muhammad Tapar, and Seljuk uncles and cousins in Syria and Iran carved out regions of their own. The great empire never again obeyed a single ruler for long.
The family firm divides
Part of the problem lay in steppe custom. Among the Seljuks, as among many nomadic peoples, sovereignty belonged to the whole ruling family, not to one heir. Brothers, sons, uncles and nephews could all claim a share, and there was no settled rule, such as inheritance by the eldest son, to decide among them. A strong sultan could keep relatives in line. A weak or disputed one could not.
The custom of guardianship made things worse. Young princes sent to govern provinces were placed under a senior commander called an atabeg. The Turkic title atabeg means roughly "father-lord". An atabeg's first role was guardian and tutor of a young prince, and he often married the prince's widowed mother. In practice the guardian ruled. Over the twelfth century atabegs founded dynasties of their own, in Mosul, Azerbaijan, Fars and elsewhere, keeping a Seljuk prince as a figurehead or dropping him altogether.
Syria shows how the breakup worked on the ground. After Tutush died in 1095, his sons Ridwan in Aleppo and Duqaq in Damascus each ruled a city and distrusted the other more than any outside enemy. Each relied on an atabeg or a household of ghulams, and each made local deals to survive. When foreign armies arrived from the west a few years later, no single Seljuk prince could gather the region's forces against them.
Sanjar in the east
One son of Malikshah held the east together for sixty years. From 1097 Sanjar governed Khurasan, ruling from Merv on behalf of his brothers. After Muhammad Tapar died in 1118, Sanjar became the senior sultan of the whole family, while Muhammad's sons ruled western Iran and Iraq under his loose oversight. Merv under Sanjar was among the largest cities of the age, and his court drew poets, scholars and physicians.
His long reign ended in two disasters. In 1141, on the Qatwan steppe near Samarkand, the Qara Khitai defeated Sanjar. They were a people from northern China who had lost their homeland, moved west under a ruler of the Liao royal house, and now set up an empire in Central Asia, largely Buddhist in its ruling circle but tolerant of its Muslim subjects. Sanjar fled, and Transoxiana passed out of Seljuk control.
News of a great defeat of Muslims by a ruler from the east traveled west in garbled form. In 1145 a Syrian bishop told the chronicler Otto of Freising about a Christian king beyond Persia who had crushed the Muslims and hoped to march to Jerusalem. News of Qatwan helped spread the legend of Prester John, the imagined priest-king whom Europeans would seek for centuries.
Worse followed. In 1153 Oghuz tribesmen near Balkh, angry at the sultan's tax collectors, rose in revolt. Sanjar was captured by rebel Oghuz tribesmen, who then plundered Merv and Nishapur. He was held for about three years, escaped in 1156 and died in 1157. His great domed tomb still stands among the ruins of Merv. The nomads who had made the Seljuks were now the ones who broke them.
The caliphs strike back
As the sultans weakened, the caliphs of Baghdad tried to regain real power. The caliph al-Mustarshid raised troops and fought the Seljuk sultan Mas'ud. In 1135 al-Mustarshid was captured by the sultan and then murdered in his tent by Nizari agents, while still a prisoner. Later caliphs did better. Al-Nasir, who reigned from 1180 to 1225, built up his own army and alliances. He encouraged the ruler of Khwarazm, south of the Aral Sea, to attack the last Seljuk sultan of the west, and in 1194 the Khwarazmshah Tekish killed Tughril III, the last Great Seljuk sultan, near Rayy. The main Seljuk line ended where Tughril Beg had once built his power.
Worked example: why did it break apart?
Historians explain the breakup with several causes. One useful exercise is to rank them by asking which, if removed, would have changed the outcome most.
Take the family share system. If the Seljuks had used a fixed rule of succession, the wars of the 1090s might have been shorter, but disputed successions still happened in states that had such rules. Take the atabegs. They grabbed power where princes were weak, but they were a symptom as much as a cause, since a strong sultan could still remove a guardian. Take the Turkmen. Their mobility had won Dandanqan, yet they never fully accepted taxes and control, and their revolt captured Sanjar.
A fair conclusion is that the Seljuks faced a built-in tension: the tribal force that won the empire resisted the settled government needed to keep it. Nizam al-Mulk's bureaucracy and the ghulam army were attempts to resolve that tension. When those attempts lost their leaders in 1092, the old pressures returned.
