Seljuk Conquest of Baghdad
دخول السلاجقة بغداد
# The Seljuks in Baghdad: The Sunni Revival of the Caliphate
The State of the Abbasid Caliphate Before the Seljuks
To appreciate the significance of the Seljuk arrival in Baghdad in 447 AH / 1055 CE, one must understand the condition to which the Abbasid Caliphate had been reduced by a century of Buwayhid domination. The Buwayhids (also spelled Buyids) were a Shia dynasty of Daylamite origin — from the mountainous region south of the Caspian Sea — who had seized control of Baghdad and the Abbasid Caliph in 334 AH / 945 CE.
The situation was both theologically anomalous and politically humiliating: the Abbasid Caliph, recognized across most of the Sunni Islamic world as the heir of the Prophet's ﷺ community leadership, was in practice a prisoner in his own capital. The Buwayhid amirs controlled the army, the treasury, and the administration. The Caliph performed ceremonial religious functions — leading the Friday prayer, issuing formal religious legitimization of events — but exercised no real political authority.
More than this, the Buwayhid period witnessed the active promotion of Shia practices in Baghdad. The Shia commemoration of Ashura (the martyrdom of Husayn ibn Ali) was publicly celebrated in Baghdad's streets — a direct challenge to Sunni religious sensibility. The Buwayhid vizier al-Muhallabi reportedly encouraged the public recitation of curses upon the Companions of the Prophet ﷺ on certain occasions, a practice that Sunni Muslims found deeply offensive. The Abbasid Caliph could do nothing to prevent it.
The Sunni population of Baghdad and the surrounding territories — the vast majority of the population — chafed under this situation. The Caliph al-Qa'im bi-Amr Allah (r. 422-467 AH / 1031-1075 CE) was a man of personal piety and genuine religious learning, but his political impotence was total. The arrival of a powerful Sunni military force presented both an opportunity and a danger — depending on the character of the force in question.
The Seljuk Turks: Converts and Champions
The Seljuks were a clan of the Oghuz Turkic people from the steppes of Central Asia. Their conversion to Sunni Islam — under the leadership of Seljuq ibn Duqaq, the clan's eponymous ancestor — occurred in approximately the late 4th century AH / late 10th century CE, when the clan entered the orbit of the Samanid and then the Ghaznavid states. The Seljuqs served as military auxiliaries, and the clan's men proved to be exceptionally effective warriors.
The great-grandsons of Seljuq — Tughril and Chaghri Beg — led the clan's expansion into Khorasan in the 420s AH. In 431 AH / 1040 CE, the Seljuks defeated the Ghaznavid Sultan Masud at the Battle of Dandanaqan, seizing control of Khorasan and Transoxiana. They continued westward, taking Nishapur (the great intellectual capital of Khorasan), then Ray (near modern Tehran), then Isfahan.
Throughout this expansion, the Seljuks consistently presented themselves as champions of Sunni Islam and defenders of the Abbasid Caliphate against its enemies — both the Shia powers that had dominated it and the Ismaili Fatimid Caliphate in Cairo that claimed to be the rightful rulers of all Muslims. This Sunni champion identity was not purely opportunistic: the Seljuks appear to have been genuinely committed to Sunni orthodoxy, and their subsequent patronage of Sunni institutions (madrasas, mosques, endowments for Sunni scholars) was extensive and costly.
Tughril Enters Baghdad (447 AH / 1055 CE)
The immediate trigger for the Seljuk entry into Baghdad was a power struggle within the Buwayhid ruling family combined with an invitation from the Abbasid Caliph al-Qa'im. The last effective Buwayhid amir, al-Malik al-Rahim, had been weakened by internal conflicts, and his authority in Baghdad was challenged by a subordinate. The Caliph, seeing an opportunity, sent messages to Tughril inviting his military intervention.
Tughril Beg entered Baghdad in Ramadan 447 AH / December 1055 CE. The reception he received from the Caliph and the Sunni population was that of a liberator. The Caliph al-Qa'im received Tughril with great ceremony, robing him in garments of honor and granting him the title "Sultan of East and West" — the first time this specific title had been used in Islamic history, and a formal acknowledgment of Seljuk authority over the lands from Central Asia to Iraq.
The deposed Buwayhid amir was captured and imprisoned. Shia public practices that had been promoted under Buwayhid patronage were ended. The Friday khutbah in Baghdad — which for over a century had omitted the Abbasid Caliph's name or included it only grudgingly — was restored to full and proper recognition of the Abbasid Caliph as the legitimate Imam of the Sunni community.
Ibn al-Athir, in his comprehensive historical work "al-Kamil fi al-Tarikh" (The Complete History), describes the atmosphere in Baghdad when Tughril arrived: the Sunni population celebrated as if a long-oppressive burden had been lifted. Scholars and merchants, who had chafed under Buwayhid cultural domination, welcomed a ruler who was publicly committed to Sunni practice and the honor of the Abbasid institution.
The Seljuk Contribution to Sunni Revival
The Seljuks' impact on Sunni Islam extended far beyond the political restoration of Abbasid dignity. Their most lasting contribution was the systematization of Sunni institutional life through the madrasa system.
Under the great Seljuk vizier Nizam al-Mulk (408-485 AH / 1018-1092 CE) — arguably the most effective administrator in medieval Islamic history — the Seljuk state established a network of state-funded madrasas across the empire. The Nizamiyyah madrasa in Baghdad (founded 459 AH / 1067 CE) was the flagship of this system: the most prestigious educational institution in the Islamic world, attracting the finest scholars and students from across the empire. Al-Ghazali taught there from 484-488 AH, during which he wrote some of his most important works.
The Nizamiyyah system had an explicit theological agenda: it was designed to promote Ash'ari theology (against Mu'tazilism and Ismaili Shia influence) and Shafi'i jurisprudence (the legal school preferred by Nizam al-Mulk and the Seljuk court). By funding these institutions generously and staffing them with the most capable scholars of the day, the Seljuks shaped the theological and legal culture of Sunni Islam in ways that persisted long after the Seljuk empire itself had dissolved.
The Battle of Manzikert and the Opening of Anatolia
The Seljuk Sultan Alp Arslan — Tughril's nephew and successor — achieved the most strategically consequential Seljuk military victory at the Battle of Manzikert (Malazgird) in 463 AH / August 1071 CE. The Byzantine Emperor Romanos IV Diogenes personally led the Byzantine army into eastern Anatolia to contest Seljuk expansion. In a battle near the town of Manzikert in eastern Anatolia, Alp Arslan's mobile Turkic cavalry decisively defeated and captured the Byzantine Emperor — an event without precedent in Byzantine history.
The consequences of Manzikert were transformative. Byzantine authority over Anatolia, which had been continuous for centuries despite Persian and Arab pressure, collapsed. Turkic nomads and settlers poured into the Anatolian plateau over the following decades, establishing a pattern of Turkish-Muslim settlement that transformed Anatolia from a primarily Christian, Greek-speaking land to a primarily Muslim, Turkish-speaking one. This process, completed over several centuries, is why modern Turkey is the country it is.
The Battle of Manzikert also triggered the First Crusade (489-492 AH / 1096-1099 CE): the Byzantine Emperor Alexios I appealed to the Pope for military help against the Seljuks, and Pope Urban II launched the Crusade in response. The First Crusade's capture of Jerusalem (492 AH / 1099 CE) — and the subsequent history of the Crusader states, the Saladin's liberation of Jerusalem (583 AH), and everything that followed — was thus, in a chain of historical causation, set in motion by Manzikert.
The Seljuk Legacy
The Great Seljuk Empire reached its peak under Malik Shah (r. 465-485 AH / 1072-1092 CE), stretching from Central Asia to the Mediterranean. Nizam al-Mulk's administrative genius held this vast territory together through an elaborate system of iqta' (revenue assignments), well-staffed madrasas, and careful management of diverse populations.
Nizam al-Mulk's assassination by an Ismaili Nizari (Assassin) operative in 485 AH — reportedly dispatched by the Nizari founder Hasan ibn al-Sabbah — removed the regime's most capable administrator. Malik Shah died the same year. The empire fragmented into competing Seljuk dynasties: the Sultanate of Rum in Anatolia, the Seljuks of Kirman, the Seljuks of Syria. None achieved the unity or the reach of the Great Seljuk Empire.
Yet the Seljuk legacy endured in the institutions and cultural patterns they established. The madrasa system they pioneered became the standard form of Islamic higher education across the Sunni world. The architectural tradition they developed — the four-ivan mosque plan, the elaborately decorated portal, the brick minaret — defined Islamic architecture across Central Asia and Iran. The Persianate court culture they patronized, in which Persian was the language of administration and high literature even in a Turkic-ruled state, shaped the literary traditions of Central Asia, India, and the Ottoman world.
Most importantly, the Seljuks had demonstrated that Sunni Islam could survive and even flourish under Turkic military leadership — establishing a pattern that would continue through the Zengids, the Ayyubids, and ultimately the Ottoman Empire.
Sources:
- Ibn al-Athir, al-Kamil fi al-Tarikh (The Complete History)
- Nizam al-Mulk, Siyasatnama (Book of Government), trans. Hubert Darke
- Ibn Khallikan, Wafayat al-A'yan
- C.E. Bosworth, The New Islamic Dynasties (Edinburgh: Edinburgh University Press, 1996)
- A.K.S. Lambton, Continuity and Change in Medieval Persia (London: I.B. Tauris, 1988)
- Carole Hillenbrand, The Crusades: Islamic Perspectives (Edinburgh: Edinburgh University Press, 1999)
- Gary Leiser (trans.), A History of the Seljuks: Ibrahim Kafesoglu's Interpretation and the Resulting Controversy (Carbondale: Southern Illinois University Press, 1988)
For the Prophetic era, see the Seerah timeline .