The Fatimid dynasty () was an Arab dynasty that ruled the Fatimid Caliphate, between 909 and 1171 CE. Descended from Fatima and Ali, and adhering to Isma'ili Shi'ism, they held the Isma'ili imamate, and were regarded as the rightful leaders of the Muslim community. The line of Nizari Isma'ili imams, represented today by the Aga Khans, claims descent from a branch of the Fatimids. The Alavi Bohras, predominantly based in Vadodara, also claim descent from the Fatimids.
The Fatimid dynasty emerged as the leaders of the clandestine early Isma'ili missionary movement () in the ninth century CE, ostensibly acting on behalf of a hidden imam, implied at the time to be Muhammad ibn Isma'il. The Isma'ili spread widely across the Islamic world, then ruled by the Abbasid Caliphate. In 899, the future first Fatimid caliph, Abdallah, proclaimed himself to be the expected imam, causing a rift in the Isma'ili as the Qarmatians, who did not recognize his imamate, split off. In the meantime, Isma'ili agents had managed to conquer large parts of Yemen and Ifriqiya, as well as launch uprisings in Syria and Iraq. Fleeing Abbasid persecution to Ifriqiya, Abdallah proclaimed himself openly and established the Fatimid Caliphate in 909. From there, the Fatimid imam–caliphs extended their rule over most of the Maghreb as well as Sicily, before conquering Egypt in 969. Founding Cairo as their new capital, for the next two centuries, the Fatimids would be based in Egypt and identified with the country. At their height, the Fatimids claimed control or suzerainty over much of North Africa, Sicily, Egypt, the Levant, the Hejaz, Yemen, and Multan.
The Fatimids' claimed pedigree of descent from Fatima and Ali was central to their legitimacy as the legitimate imams in an unbroken, divinely ordained line from Ali onwards. Their initial obscurity, and the publication of conflicting and incorrect genealogies by the first Fatimid caliph, Abdallah al-Mahdi Billah (known by the diminutive Ubayd Allah by his detractors), cast doubt on the accuracy of these claims, which were usually rejected by contemporary Sunni and Twelver Shi'a alike, who considered them impostors and usurpers. As a result, many sources into the 20th century referred to the Fatimids by the derogatory name Ubaydids.
Fatimid expansion into the Levant, and the ideological challenge that the ascendancy of Shi'a regimes represented, resulted in the Sunnis rallying around the Abbasid Caliphate in response, triggering the Sunni revival of the 11th century. Faced with internal turmoil, and the arrival of the Seljuk Turks and then the Crusades, Fatimid power began to decline in the later 11th century. the dynasty was saved by passing power to powerful military viziers, but this also meant that the imam–caliphs often were mere puppet rulers. The initial dynamism of the was diminished by bitter succession disputes, which resulted in large parts of the Isma'ili community, such as the Druze, Nizaris, and Tayyibis, breaking off from the Fatimid allegiance, and tarnished the prestige and authority of the dynasty. The last of the Fatimid imam–caliphs were powerless child rulers that were pawns in the hands of their viziers. The last of these viziers, Saladin, deposed the dynasty in 1171, after the death of Caliph al-Adid. The remaining members of the dynasty and their offspring were placed under house arrest in Cairo until their deaths; the last members of the dynasty died in the mid-13th century.
Origin Background: early Shi'ism Since the death of Caliph Ali () in 661, which led to the establishment of the Umayyad Caliphate, a part of the Muslim community rejected the Umayyads as usurpers and called for the establishment of a regime led by a member of the , the family of Muhammad. The Abbasids, who claimed descent from Muhammad's paternal uncle Abbas ibn Abd al-Muttalib and thus claimed membership of the wider family, profited from this during their rise to power against the Umayyads; but their claim was rejected by the Shia, who insisted on the exclusive right of the descendants of Hasan () and Husayn (), Ali's sons by Muhammad's daughter Fatima. A line of imams emerged from the offspring of Husayn, who did not openly lay claim to the caliphate, but were considered by their followers as the true representatives of God on earth. This doctrine was founded on the designation () of Ali by Muhammad at Ghadir Khumm, and later pro-Fatimid scholars held that an unbroken chain of designated imams would follow until the end of the world; indeed, these scholars argued that the imams' existence was an inevitable necessity.
The sixth of these imams, Ja'far al-Sadiq, appointed () his son Isma'il al-Mubarak as his successor, but Isma'il died before his father, and when al-Sadiq himself died in 765, the succession was left open. One faction of al-Sadiq's followers held that he had designated another son, Musa al-Kazim, as his heir. Others followed other sons, Muhammad al-Dibaj and Abd Allah al-Aftah—as the latter died soon after, his followers went over to Musa's camp—or even refused to believe that al-Sadiq had died, and expected his return as a messiah. Musa's adherents, who constituted the majority of al-Sadiq's followers, followed his line down to a twelfth imam who supposedly vanished in 874. Adherents of this line are known as the Twelvers. Another branch believed that Ja'far al-Sadiq was followed by a seventh imam, who also had gone into hiding; hence this party is known as the Seveners. The exact identity of that seventh imam was disputed, but by the late ninth century had commonly been identified with Muhammad, son of Isma'il and grandson of al-Sadiq. From Muhammad's father, Isma'il, the sect receives its name of 'Isma'ili'. Neither Isma'il's nor Muhammad's lives are well known, and after Muhammad's reported death during the reign of Harun al-Rashid (), the history of the early Isma'ili movement becomes obscure.
Fatimid genealogies and controversies Official Fatimid doctrine claimed an uninterrupted line of succession between Ali and Fatima and the first Fatimid caliph Abd Allah al-Mahdi Billah () via Muhammad ibn Isma'il. This descent was both accepted and challenged already in the Middle Ages, and remains a topic of debate among scholars today.cf. for a summary. As the historian of Shi'a Islam Heinz Halm comments, "The alleged descent of the dynasty from Ali ibn Abi Talib and Muhammad's daughter Fatima has been called into question by contemporaries from the very beginning and cannot be proven", while Michael Brett, an expert on the Fatimids, asserts that "a factual answer to the question of their identity is impossible".
The main problem arises with the succession linking al-Mahdi with Ja'far al-Sadiq. According to Isma'ili doctrine, the imams that followed Muhammad ibn Isma'il were in concealment (), but early Isma'ili sources do not mention them, and even later, official Isma'ili genealogies diverge on the number, names and identities of these 'hidden imams' (), a problem complicated by the Isma'ili claims that the hidden imams assumed various aliases for safety. Thus the pro-Isma'ili Prince Peter Hagop Mamour, in his 1934 apologetic work Polemics on the Origin of the Fatimi Caliphs, lists no fewer than fifty variations of the line of the four hidden imams between Isma'il ibn Ja'far and al-Mahdi, claiming that the various names represent pseudonyms. Early Isma'ili sources tend to be silent on the matter, from a mixture of both religious imperative—since God has decreed his imams to be hidden, they should remain so—and apparent ignorance. Al-Mahdi himself, in a letter sent to the Isma'ili community in Yemen, even claimed not to be descended from Isma'il ibn Ja'far, but from his older brother Abdallah al-Aftah, who is generally held to not have had any descendants at all. Notably, later official Fatimid genealogies rejected this version. In addition, it appears that the first known ancestor of the Fatimid line, Abdallah al-Akbar, the great-grandfather of the first Fatimid caliph, initially claimed descent not from Ali at all, but from his brother Aqil ibn Abi Talib, and was accepted as such by the Aqilids of Basra. According to Brett, the line of descent claimed by the Fatimid between Ja'far al-Sadiq and al-Mahdi reflects "historical beliefs rather than historical figures, for which there is little or no independent confirmation", as even Isma'il ibn Ja'far is an obscure figure, let alone his supposed hidden successors.
While pro-Fatimid sources emphasize their Alid descent—the dynasty named itself simply as the 'Alid dynasty' ()—many Sunni sources instead refer to them as the 'Ubaydids' (), after the diminutive form Ubayd Allah for al-Mahdi's name, commonly used in Sunni sources with an apparently pejorative intent. Medieval anti-Fatimid polemicists, starting with Ibn Rizam and Akhu Muhsin, were keen to discredit Isma'ilism as an antinomian heresy and generally considered Fatimid claims to Alid descent fraudulent. Instead, they put forth a counter claim that al-Mahdi descended from Abdallah, the son of a certain Maymun al-Qaddah from Khuzistan, that al-Mahdi's real name was Sa'id, or that al-Mahdi's father was in reality a Jew (a common antisemitic trope among medieval Arab authors). While several medieval Sunni authors and contemporary potentates—including the impeccably Alid sharifs of Mecca and Medina—accepted or appeared to accept Fatimid claims at face value, this anti-Isma'ili 'black legend', as the modern scholar Farhad Daftary calls it, influenced Sunni historiographers throughout the following centuries, and became official doctrine with the Baghdad Manifesto of 1011. Due to the paucity of actual Isma'ili material until Isma'ili sources started to become available and undergo scholarly examination during the 20th century, the Sunni version was adopted even by some early modern Orientalists.
Early Isma'ili sources ignore the existence of Maymun al-Qaddah, but later, Fatimid-era sources were forced to confront their opponents' claims about his person, and tried to reconcile the conflicting genealogies accordingly. Some sectarian Isma'ili—especially Druze—sources even claimed that during the period of concealment of the Isma'ili imams, the Isma'ili movement was actually led by the descendants of Maymun al-Qaddah, until the restoration of the true line with the Fatimid caliphs. Later Tayyibi Isma'ili authors also used the figures of Maymun al-Qaddah and his son Abdallah to argue for the legality of there being a substitute or representative of the imam, whenever the latter was underage. A further controversy that emerged already in medieval times is whether the second Fatimid caliph, Muhammad al-Qa'im bi-Amr Allah, was the son of al-Mahdi, or whether the latter was merely usurping the position of a still-hidden imam; that would mean that al-Qa'im was the first true Fatimid imam-caliph.