Abbasid Revolution (747–750) The Abbasid caliphs descended from
Abbas ibn Abd al-Muttalib, one of the youngest uncles of
Muhammad and of the same
Banu Hashim clan. This family relation to Muhammad made them appealing to those who were discontented with the rule of the
Umayyad caliphs (661–750), who did not descend from the same family. Over the course of their rule, the Umayyads even suppressed several rebellions that attempted to bring other members of Muhammad's family to power. One of the claims that the Abbasids made in the early years of their political movement was that
Abu Hashim, the son of
Muhammad ibn al-Hanafiyya and grandson of
Ali, had formally transferred the
Imamate () to
Muhammad ibn Ali (the great-grandson of Abbas) and thus to the Abbasid family. Muhammad ibn Ali began to campaign in Persia for the return of power to the family of Muhammad, the Hashemites, in the context of the reign of
Umar II. Later, after they had attained power and needed to broaden their support among Muslims, the Abbasids supplemented this claim with other claims to justify their legitimacy. The Abbasids also drew on the broader prestige of the
Banu Hashim lineage, including figures such as
Abd Allah ibn Abbas, an early Islamic scholar later regarded as one of the greatest authorities on
Qur’anic interpretation, whose status in Islamic tradition contributed to the perceived religious standing of the family in later memory. The Abbasids also distinguished themselves from the Umayyads by attacking their moral character and administration in general. The Abbasids also appealed to
non-Arab Muslims, known as
mawali, who remained outside the kinship-based society of the Arabs and were perceived as a lower class within the Umayyad empire. According to
Ira Lapidus, "The Abbasid revolt was supported largely by Arabs, mainly the aggrieved settlers of
Merv with the addition of the Yemeni faction and their
Mawali". During the reign of
Marwan II, this opposition culminated in the rebellion of
Ibrahim al-Imam, the fourth in descent from Abbas. Supported by the province of
Khurasan (eastern Iran), even though the governor opposed them, and the Shi'i Arabs, After this loss, Marwan fled to Egypt, where he was subsequently killed. The remainder of his family, barring one male, were also eliminated.
Establishment and consolidation (750–775) -period
Tarikhnama of
Bal'ami (10th century) depicting
al-Saffah () as he receives
pledges of allegiance in
Kufa|left Al-Saffah's reign () was spent consolidating Abbasid rule over the Muslim community. In addition to the caliph himself, most of the real power at this time was in the hands of a triumvirate including the revolutionary leader Abu Muslim, al-Saffah's older brother
Abu Ja'far (the future caliph al-Mansur) and al-Saffah's uncle
Abdallah ibn Ali (the commander at the battle at the Great Zab). Soon after the victory of 750, Abu Muslim sent forces to
Central Asia to confront an army from
Tang China led by
Gao Xianzhi. Gao Xianzhi and his army were defeated in 751 at the
Battle of Talas, near present-day
Tashkent, by the Abbasid army under
Ziyad ibn Salih. This defeat marked the end of Tang influence in
Transoxiana and halted Tang westward expansion. The Abbasids then consolidated their rule in Transoxania. Elsewhere, the Abbasids focused on putting down numerous rebellions in Syria and Iraq. The
Byzantines conducted raids during these early distractions. One of the first major changes effected by Abbasid rule was the move of the caliphate's center of power from Syria to Iraq. This was closer to the Persian
mawali support base of the Abbasids and the move addressed their demand for reduced Arab dominance in the empire. However, no definitive capital was yet selected. In these early Abbasid years,
Kufa generally served as the administrative capital, but the caliphs were wary of the
Alid sympathies in the city and did not always reside here. In 752, al-Saffah built a new city called al-Hashimiyya, at an uncertain location, most likely near Kufa. Later that same year, he moved to
Anbar, where he built a new settlement for his Khurasani soldiers and a palace for himself. (
r. 754–775) from an
Ottoman-era work, the "Cream of Histories" (
Zübdet-üt Tevarih) in 1598 It was al-Saffah's successor, Abu Ja'far al-Mansur () who firmly consolidated Abbasid rule and faced down internal challenges. His uncle, Abdallah ibn Ali, the victor over the Umayyads at the Battle of the Zab, was the most serious potential rival for leadership and al-Mansur sent Abu Muslim, the Khurasani revolutionary commander, against him in 754. After Abu Muslim successfully defeated him, al-Mansur then turned to eliminate Abu Muslim himself. He arranged to have him arrested and executed in 755. On the western frontier, the Abbasids were unable to re-assert caliphal control over the western and central
Maghreb, which the Umayyads had lost in the 740s. One member of the Umayyad dynasty, Abd ar-Rahman, also managed to escape the purge of his family and established independent rule in
al-Andalus (present-day Spain and Portugal) in 756, founding the
Umayyad emirate of Córdoba. In 756, al-Mansur had also sent over 4,000 Arab mercenaries to assist the Tang dynasty against the rebel leader
An Lushan. The Abbasids, or "Black Flags" as they were commonly called, were known in Tang dynasty chronicles as the
hēiyī Dàshí, "The Black-robed Tazi" () ("Tazi" being a borrowing from Persian
Tāzī, the word for "Arab"). Later, Caliph
Harun al-Rashid sent embassies to China and established good relations with the Tang emperors. After the war, these embassies remained in China and al-Rashid established an alliance with China. Several embassies from the Abbasid caliphs to the Chinese court have been recorded in the
Old Book of Tang, the most important being those of al-Saffah, al-Mansur, and Harun al-Rashid. between 767 and 912 CE, according to
William Muir In 762, al-Mansur suppressed
a rebellion in the
Hejaz led by
al-Nafs al-Zakiyya, a descendant from
Ali ibn Abi Talib, whose challenge to the Abbasid claim to leadership was based on his Alid lineage and thus presented a serious political threat. He was defeated by an Abbasid army led by
Isa ibn Musa. It was after this victory, in 762, that al-Mansur finally established a proper Abbasid capital,
Baghdad – officially called
Madinat al-Salam ('City of Peace') – located on the
Tigris River, near the former ancient capital city of
Ctesiphon. Prior to this, he had continued to consider multiple sites for a capital, including al-Hashimiyya, which he used as a capital for a while, and
al-Rumiyya (near the ruins of Ctesiphon), which he used for a few months. Various other sites in the region also appear to have served as "capitals" under either al-Saffah or al-Mansur prior to the founding of Baghdad. The Umayyad empire was mostly Arab; however, the Abbasids progressively became made up of more and more converted Muslims in which the Arabs were only one of many ethnicities. The Abbasids had depended heavily on the support of Persians It was also during this early period of the dynasty, in particular during the rule of al-Mansur, Harun al-Rashid, and
al-Ma'mun, that its reputation and power were created. The position of
wazir (vizier) developed in this period. It was initially akin to a secretary, but under the tenure of the
Barmakids, an Iranian family close to the Abbasids, the position became powerful and Harun al-Rashid delegated state affairs to them for many years. This resulted in a more ceremonial role for many Abbasid caliphs compared with caliphal rule under the Umayyads; the viziers began to exert greater influence, and the role of the caliph's aristocracy was slowly replaced by a Barmakid bureaucracy. His father,
al-Mahdi (),
restarted the fighting with the
Byzantines, and his sons continued the conflict until
Empress Irene pushed for peace. After several years of peace,
Nikephoros I broke the treaty, then fended off multiple incursions during the first decade of the 9th century. These Abbasid attacks pushed into the
Taurus Mountains, culminating with a victory at the
Battle of Krasos and the
massive invasion of 806, led by al-Rashid himself. Harun al-Rashid's navy also proved successful, taking
Cyprus. Al-Rashid then focused on the rebellion of
Rafi ibn al-Layth in Khurasan and died while there. While Baghdad remained the official capital, al-Rashid chose to reside in
Raqqa from 796 until the end of his reign. In 802, he established an unusual succession plan which decreed that his son
al-Amin would inherit the title of Caliph and have control of Iraq and the western empire while his other son
al-Ma'mun would rule Khurasan and most eastern parts of the empire. In 803, he turned on and imprisoned or killed most of the Barmakids, who had wielded administrative power on his behalf. The reasons for this sudden and ruthless move remain unclear and have been the subject of much discussion by contemporary writers and later historians. minted during the reign of
al-Amin (809–813) Al-Rashid's decision to split the succession proved to be damaging to the longevity of the empire. After his death in 809, his succession pact eventually collapsed and the empire was split by a
civil war between al-Amin in Iraq and al-Ma'mun in Khurasan. This ended with a successful
siege of Baghdad by al-Ma'mun's forces. When the city fell in 813, al-Amin was captured and executed on the orders of al-Ma'mun's general,
Tahir ibn Husayn. This marked the first time that an Abbasid ruler was publicly executed and it irrevocably damaged the prestige of the caliphate. Al-Ma'mun became caliph and ruled until his death in 833. He initially ruled the empire from his established base in Merv, Khurasan, where his main support was found, but this prolonged the discontent and instability in Iraq and triggered further fighting in the years following his victory. In 817, he officially declared an Alid, '
Ali al-Rida, as his heir, instead of an Abbasid family member, perhaps hoping to promote Muslim unity, but the move backfired. Eventually, he was compelled to step back from these policies and move his court to Baghdad, where he arrived in August 819. After this, the rest of his reign was relatively peaceful. Exceptions included a rebellion in
Azerbaijan by the
Khurramites, supported by the Byzantines, which continued until 837. These troops were likely the first
standing army of the caliphate and provided the caliph with a strong base of military support. However, the influx of new foreign troops into the capital created tensions with its inhabitants and with older elites. This was one of the main reasons why, in 836, al-Mu'tasim decided to found a new capital,
Samarra, on an open site to the north of Baghdad. The new capital housed the caliph's army, allowed for the unhindered construction of massive new palaces, and became the focus of an even more elaborate courtly culture. Al-Mu'tasim's reign marked the end of the strong caliphs. He strengthened his personal army with the Mamluks and promptly restarted the war with the Byzantines. Though his attempt to seize
Constantinople failed when his fleet was destroyed by a storm, his military excursions were generally successful, culminating with a resounding victory in the
Sack of Amorium.
Political fragmentation (861–945) From the ninth century onward, the Abbasids found they could no longer keep together a centralized polity from Baghdad, which had grown larger than that of
Rome. As mentioned, Harun al-Rashid had already granted the province of Ifriqiya to the Aghlabids, who ruled this region as an autonomous vassal state until its fall to the
Fatimids in 909. In al-Ma'mun's reign, Tahir ibn Husayn (al-Ma'mun's general in the civil war) was appointed viceroy of Iran and most of the eastern regions of the empire from 821 onward. His descendants, the
Tahirids, continued to govern in this position with significant autonomy until 873, although they remained loyal to the caliph and used only the title of
amir. From their capital at
Nishapur, they were important patrons of Arabic literature and Sunni religious scholarship, in addition to making major improvements to agriculture. In Transoxiana, the Persian
Samanids of
Bukhara and
Samarkand ruled as local governors, initially under the Tahirids. They oversaw the development of the region's cities into major trade centers, profiting from long-distance trade between China, Central Asia, Eastern Europe, and the Middle East. of the
Great Mosque of Samarra, built from 848 to 852 CE in the Abbasid capital of
Samarra The reign of
al-Mutawakkil () was characterized by the caliph's extravagant spending, his attempts to further consolidate power within the state, and his replacement of the
Mihna policy with support for more orthodox Sunni scholars, in particular the
Hanbali school. In 853, the Byzantines
sacked Damietta in Egypt, and the caliph responded by sending troops into Anatolia, who sacked and marauded until they were
eventually annihilated in 863. Al-Mutawakkil's lifestyle and spending weakened his support among the military. In 861, he was murdered at a party by a group of Turkish soldiers. This was the first time the Abbasid military intervened so directly and violently at court and it set a precedent for further coups. The following period, sometimes known as the "
Anarchy at Samarra" (861–870), saw four different caliphs come and go. While they each attempted to reassert their authority, they were at the mercy of military and political factions. Tax collection lapsed and, along with al-Mutawakkil's previous spending, this left the state short on funds, which exacerbated the infighting. In 865, the Turkish soldiers of Samarra even
besieged Baghdad to overthrow the caliph
al-Musta'in and, when the city fell the following year, they replaced him with
al-Mu'tazz. The latter was overthrown by the same faction in 869 and replaced by
al-Muhtadi, who was similarly overthrown in 870. Al-Muhtadi was succeeded by
al-Mu'tamid, who was finally able to restore some order, in large part thanks to the help of his brother
al-Muwaffaq, who kept the military under control and ran most government affairs. The restoration was hampered by the
Zanj rebellion, which erupted in 869 and threatened the center of Abbasid control in Iraq. This major threat was not brought under control until a determined campaign was launched in 879. By the 870s, Egypt became autonomous under
Ahmad ibn Tulun and his
Tulunid successors, though they continued to acknowledge the caliph and generally sent tribute to Baghdad. For a time, they even controlled Syria and parts of the Jazira (
Upper Mesopotamia). In 882, the caliph al-Mu'tamid even tried to move his residence to Egypt at Ibn Tulun's invitation, though this move was aborted by the intervention of al-Muwaffaq. In the east, the
Saffarids were former soldiers in the Abbasid army who were stationed in
Sistan and remained there as local strongmen. They began to challenge the Tahirids from 854 onward and in 873 they captured Nishapur, ending Tahirid rule. They marched on Baghdad in 876 but
were defeated by al-Muwaffaq. The two sides were forced to come to terms and the Abbasids allowed the Saffarids to rule over Sistan,
Fars,
Kirman, and Khurasan. In 898, al-Mu'tadid set the Saffarids and Samanids against each other by formally endorsing a Saffarid claim over Transoxiana, the Samanid domain. The Samanids emerged triumphant in battle and were able to expand their control thenceforth to Khurasan, while the Saffarids were contained further south. The Samanids never threatened Iraq or western Iran, but they were also not as close to the caliphs as their Tahirid predecessors and in practice they were almost entirely independent of Baghdad. They became even greater patrons of religion and the arts than the Tahirids. They still maintained an orthodox Sunni ideology but they differed from their predecessors by promoting the
Persian language. There was a brief Abbasid political and military revival at the end of the 9th century, especially under the policies of caliphs
al-Mu'tadid () and
al-Muktafi (). Under al-Mu'tadid, the capital was moved from Samarra back to Baghdad. Incursions by the
Qarmatians and allied Bedouin tribes posed a serious threat from 899 onwards, but the Abbasid army, led by
Muhammad ibn Sulayman, won a reprieve against them in 904 and 907. In 905, the same general invaded Egypt and overthrew the weakened Tulunids, re-establishing Abbasid control to the west. By the time caliph al-Muktafi died in 908, the Abbasid revival was at its peak and a strong centralized state was in place again. After his death, however, the state became dominated by feuding bureaucrats. Under
al-Muqtadir (), the Abbasid court continued to project power and wealth publicly but the politics and financial policies of the time compromised the caliphate's sustainability in the long-term. It was in this period that the practice of giving out
iqtas (
fiefs in the form of tax farms) as favours began, which had the effect of reducing the caliphate's own tax revenues. In 909, North Africa was lost to the
Fatimid dynasty, an
Isma'ili Shia sect tracing its roots to Muhammad's daughter
Fatima. The Fatimids took control of Ifriqiya from the Aghlabids and eventually
conquered Egypt in 969, where they established their capital,
Cairo, near
Fustat. By the end of the century, they were one of the main political and ideological challenges to Sunni Islam and the Abbasids, contesting the Abbasids for the titular authority of the Islamic
ummah. The challenge of the Fatimid Caliphate only ended with their downfall in the 12th century. Under the caliph
al-Radi (), Baghdad's authority declined further as local governors refused to send payments to the capital. The
Ikhshidids ruled Egypt and Syria autonomously prior to the Fatimid takeover. Even in Iraq, many governors refused to obey and the caliph was unable to send armies against them. Al-Radi was forced to invite the governor of
Wasit,
Muhammad ibn Ra'iq, to take over the administration under the newly created position of
amir al-umara ("Commander of Commanders"). Ibn Ra'iq disbanded the salaried army of the caliph and reduced much of the government's bureaucratic infrastructure, including the traditional vizierate, thus removing much of the Abbasid state's basis for power. He was overthrown in 938 and the following years were bogged down in political turmoil.
Al-Mustakfi had a short reign from 944 to 946, and it was during this period that the Persian faction known as the
Buyids from
Daylam swept into power and assumed control over the bureaucracy in Baghdad. According to the history of
Miskawayh, they began distributing
iqtas to their supporters. This period of localized secular control was to last nearly 100 years. Outside Iraq, all the autonomous provinces slowly took on the characteristic of de facto states with hereditary rulers, armies, and revenues and operated under only nominal caliph suzerainty, which may not necessarily be reflected by any contribution to the treasury, such as the
Soomro emirs that had gained control of
Sindh and ruled the entire province from their capital of
Mansura. The medallion has an inscription
"al-Muqtadir bi-llāh" (ٱلْمُقْتَدِر بِٱللَّٰه "The one who is powerful through God"): it is uncertain if this medallion is also meant to portray al-Muqtadir. Caliph
al-Mustarshid () was the first caliph to build an army and to lead it in battle since the 10th century. He recruited Kurdish and Arab Bedouin tribes and re-fortified Baghdad. His first concern was not the Seljuks but the
Mazyadids of
Hilla in central Iraq, whom he met in battle in 1123. His bid for independence was ultimately unsuccessful, as he was defeated by a Seljuk army in 1135 and assassinated soon after. Under
al-Muqtafi (), a new caliphal state began to emerge with the help of his vizier
Ibn Hubayra. Ibn Hubayra concentrated on reasserting authority in Iraq while the Seljuk Empire deteriorated. The Abbasids successfully defended Baghdad against the Seljuqs in the
siege of 1157 and then conquered their Mazyadid enemies in Hilla in 1162. By the end of al-Muqtafi's reign, Baghdad controlled a state stretching from
Basra in the south to the edges of
Mosul in the north. After over two hundred years of Abbasid subjection to foreign dynasties, Caliph
al-Mustanjid () formally declared independence from the Seljuk sultans in 1165, when he dropped their names from Abbasid coinage. Initially, the caliphs were still vulnerable to the power of the viziers, but
al-Mustadi () was able to further rally some support from the Baghdad public as well as symbolic support abroad from the
Ayyubid sultan
Saladin and the
Rum Seljuk sultan
Kilij Arslan II. The long reign of Caliph
al-Nasir () marked a definitive shift in late Abbasid power. He reinvigorated public displays of caliphal prestige, removed officials who were too powerful, engaged in diplomacy with regions beyond Iraq, and extended his control over former Seljuk territories in western Iran — including
Isfahan,
Hamadan,
Qazvin and
Zanjan. He sought to build up his influence among Muslim rulers abroad largely through the
Sufi-inspired
futuwwa brotherhood that he headed. Under caliph
al-Mustansir (), the Abbasid state achieved significant stability and many of the same policies continued. He built the
Mustansiriyya Madrasa, inaugurated in 1234, the first madrasa to teach all four Sunni
maddhabs (schools of
jurisprudence) and the first madrasa commissioned by an Abbasid caliph.
Mongol invasion and end In 1206,
Genghis Khan established a powerful dynasty among the
Mongols of Central Asia. During the 13th century, this
Mongol Empire conquered most of the Eurasian land mass, including both China in the east and much of the old Islamic caliphate and the
Kievan Rus' in the west. In 1252,
Hulagu Khan, a grandson of Genghis Khan and brother of the new Mongol ruler,
Möngke Khan, was placed in charge of a new western campaign to the Middle East that would culminate in the
conquest of Baghdad in 1258. , a Baghdad gate built by
al-Nasir in 1221 (destroyed in 1917), possibly depicting the caliph wrestling dragons In the years leading up the Mongol invasion, Baghdad's strength was sapped by political rivalries, sectarian tensions between Sunnis and Shias, and damaging floods. In 1257, after
destroying the Assassins in Iran, Hulagu wrote to the Abbasid caliph,
al-Musta'sim, demanding his submission. The caliph refused, with Hulagu's status as a non-Muslim (unlike the earlier Buyids and Seljuks) likely a factor. There followed months of diplomacy, during which the Mongols may have been informed of Baghdad's weakness by correspondence with the caliph's vizier,
Ibn al-Alqami, a Shia who was later accused of colluding with them. The Mongols began their siege of the city on 29 January 1258. On 10 February, al-Musta'sim agreed to meet with Hulagu, who demanded that the caliph order the defenders to stand down and come out of the city in exchange for mercy. The caliph complied, but the Mongols slaughtered the population and then began the sack of the city on 13 February. Contemporary accounts describe destruction, looting, rape, and killing on a massive scale over many days, with hundreds of thousands killed and the city reduced to near-empty ruins, though some, like the Christian and Shia communities, were spared. The caliph's immediate family was also executed, with the lone exceptions of his youngest son who was sent to Mongolia and a daughter who became a slave in the
harem of Hulagu. by the Mongols led by
Hulagu Khan in 1258, as illustrated in a copy of the 14th-century ''
Jami' al-tawarikh'' The fall of Baghdad marked the effective end of the Abbasid Caliphate. It made a deep impression on contemporary and later writers both inside and outside the Muslim world, some of whom created legendary stories about the last caliph's demise. It is also traditionally seen as the approximate end to the "classical age" or
"golden age" of Islamic civilization. The events brought profound geopolitical changes to the traditional lands of the Islamic caliphate, with Iraq, Iran, and most of the eastern lands falling under Mongol control while other Muslim rulers retained the lands to the west. Mongol expansion further west was eventually halted by the
Mamluks of Egypt at the
Battle of Ain Jalut in 1260, followed by the conflict between the
Ilkhanids (Hulagu and his successors) and their
Golden Horde rivals, which diverted Mongol attention.
Abbasid caliphs in Cairo (1261–1517) Prior to the Mongol invasion, the later Ayyubid sultans of Egypt had built up an army recruited from slaves, the
Mamluks. During a political and military crisis in 1250, the Mamluks seized power and established what is now known as the Mamluk Sultanate. Following the devastation of Baghdad in 1258 and in an effort to secure political legitimacy for the new regime in Egypt, the Mamluk ruler
Baybars invited a surviving member of the Abbasid family to establish himself in Cairo in 1260–1261. The new caliph was
al-Mustansir II, a brother of the former caliph al-Mustansir. In 1262, he disappeared while leading a small army in an attempt to recapture Baghdad from the Mongols. Baybars subsequently replaced him with
al-Hakim I, another Abbasid family member who had just been proclaimed in
Aleppo. The claim that al-Mutawakkil III "transferred" the office of the caliph to the Ottoman sultan during their meeting in Aleppo is a legend that was elaborated in the 19th century and is not corroborated by contemporary accounts. ==Culture==