Mahdism in Twelver Shiʿism inherited many of its elements from previous religious trends. Without necessarily going back to Zoroastrianism, Manichaeism, Judaism, and Christianity, to which generally eschatology, messianism, and the apocalyptic in Islam owe many of their doctrines and elements (Darmesteter, introduction; Margoliouth, pp. 125-28), one can think of numerous Shiʿite and non-Shiʿite sects that existed prior to the definitive transition from earlier Imamism to Twelver Shiʿism in the first half of the 10th century (Kohlberg 1976, passim). In the study that follows, a descriptive introduction to the doctrines will be accompanied by an overview of the contribution of these borrowed elements in order to better appreciate the historical development and evolution of the articles of faith.

Hesitation and progressive development of Mahdism. According to the traditional date most often retained, Imam Ḥasan ʿAskari (q.v.), the eleventh Imam, died in 874. His death, like that of previous Imams, gave rise to a period of turbulence among the faithful, but this time the crisis seemed even more serious and the Imamis did not themselves hesitate to call the decades that were to follow “the period of perplexity” or “confusion” (ḥayra; Modarressi, introduction). The mysterious fate of the presumed son of the eleventh Imam led to several schisms with notable doctrinal variances. Some groups claimed that his son died at a very young age, others that he had lived until a certain age and then died, and still others simply denied his very existence, believing that Ḥasan ʿAskari never had a son. Only a small minority supported the idea that the son of the eleventh imam was alive, that he was in “occultation,” and that he was to reappear as mahdi (Ar. “the Guided One”) at “the end of time” (āḵer al-zamān). This idea was gradually adopted by all Imamis, who thus became known as “Twelvers” (Nowbaḵti, pp. 90 ff.; Ašʿari Qomi, pp. 102 ff.: Kohlberg, 1976, passim; Sachedina 1981, pp. 42-55; Hussain, pp. 56-67). Sources from this period, reflect, in their particular manner, the hesitation and crisis believers experienced. A close study of these sources indeed seems to show that profound uncertainties and serious lacunae existed regarding a substantial number of important doctrinal elements that became articles of faith. First, the definitive number of Imams and even the notion of “occultation” (ḡayba, q.v.): Abu Jaʿfar Barqi (d. 887 or 893), in his Ketāb al-maḥāsen, contributes no information regarding these two points. In the first chapter, dedicated to different interpretations of numbers, he takes into account the numbers 3 to 10, but says nothing about the number 12 (Barqi, I, pp. 3-13). A few decades later, Ebn Bābuya (Ebn Bābawayh, q.v.; 923-91), known as Shaikh Ṣaduq, in his Ketāb al-ḵeṣāl, reported many traditions regarding the number 12, some among them about twelve Imams (Ebn Bābuya, 1950, II, pp. 264-329). Barqi’s contemporary, Ṣaffār Qomi (d. 902-3) in his Baṣāʾer al-darajāt (pp. 280, 319-20, 372) mentions only five traditions from a total of almost 2,000 regarding the notion that the Imams were to be twelve in number, and he reports nothing about the occultation. The oldest text of certain authenticity that we have, in which a complete list of the twelve Imams is found, seems to be the Tafsir by ʿAli b. Ebrāhim Qomi (d. ca. 919; Qomi, II, p. 44), a work written some years after what would finally be termed the “Minor Occultation” (see below).

It is only from Kolayni’s (d. 940-41) hadith collection onwards that traditions regarding the definitive number of Imams, and the occultation of the twelfth Imam became more frequent. Even so, a study of chains of transmission (esnād) of these traditions, not only in Kolayni, but also in the two voluminous monographs by his famous successors, namely Ketāb al-ḡayba by Ebn Abi Zaynab Noʿmāni (d. ca. 956 or 971), and Kamāl al-din by Ebn Bābuya (see bibliography), reveal that elements of older books on the ḡayba belonging to other Shiʿite trends had been appropriated in the service of the cause, and were adapted to Twelver Shiʿite doctrines (Hussain, pp. 2-6; Amir-Moezzi, 1996, esp. pp. 115 ff.). As examples, one can cite the following names of transmitters: Ebrāhim b. Ṣāleḥ Anmāṭi, disciple of the fifth Imam, Moḥammad Bāqer, authored a book on the occultation and considered the latter as the hidden Mahdi (Najāši, pp. 12, 19; Ṭusi, 1972, p. 14). Among the Wāqefis of the seventh Imam Musā Kāẓem (i.e., those who ended the lineage of the Imams at the latter and considered him as the Mahdi), were ʿAli b. Ḥasan Ṭāṭari Ṭāʿi and Ḥasan b. Moḥammad b. Somāʿa, both authors of works on the ḡayba (Najāši, pp. 193 and 39 respectively; Ṭusi 1972, pp. 216-17 on the first mentioned author). Another “Sevener” transmitter (Wāqefi or Ismaʿili?), Moḥammad b. Moṯannā Ḥażrami (fl. 9th cent.), author of a Ketāb that is part of the “400 original texts” (al-oṣul al-arbaʿomeʾa) of the Imamis, reports a tradition by Jaʿfar Ṣādeq according to which the number of Imams is limited to seven, with the final one to be the Mahdi (al-oṣul al-arbaʿomeʾa, fol. 53b; regarding this collection see Kohlberg, 1987). Ḥasan b. ʿAli Baṭāʾeni Kufi, like his father, served as Wāqefi of the eighth Imam ʿAli al-Reżā (q.v.). He was the author of a work bearing the title Ketāb al-Ḡayba (Ṭehrāni, XVI, p. 76, no. 382). Abu Saʿid ʿOṣfuri (d. 864), a contemporary of the tenth and eleventh Imams is the author of another Ketāb from the “400 original texts” in which he speaks of eleven Imams (though avoiding naming them), with the last to be the Mahdi (al-oṣul al-arbaʿomeʾa, fol. 10a ff.; also Ketāb Abu Saʿid al-ʿOṣfuri, p. 34). The book, already mentioned by the Imami Ṣaffār Qomi, even contains two traditions that seem to indicate that the Imams will be seven in number (Ṣaffār, pp. 146, 150).

One also encounters signs of hesitation and grasping for ideas concerning the nature and modalities of the occultation. Different theories appear to have co-existed in the decades following the death of the eleventh Imam. One discerns a trace of this in reports regarding a character as influential as Abu Sahl Nowbaḵti (d. 923), who would have played a determining role in the establishment of a definitive form of the theology of occultation (Eqbāl, s.v.; Arjomand 1996a and 1996b). Indeed, the sources attribute two different conceptions of the occultation to him. According to the first, cited by Ebn Bābuya, based on Ketāb al-tanbih wa’l-emāma, a work by Abu Sahl now apparently lost, the Hidden Imam “exists in the world by his spiritual substance thanks to a subsisting essence” (mawjud al-ʿayn fi’l-ʿālam wa ṯābet al-ḏāt: Ebn Bābuya 1985, I, pp. 90 ff.). According to a second theory reported by Ebn Nadim (d. 990; see also AL-FEHREST), Abu Sahl is said to have maintained that the twelfth Imam died, but secretly left behind a son as a successor to him; the lineage of Imams would thus be perpetuated in occultation from father to son until the final Imam manifests himself publicly as the Mahdi (Ebn al-Nadim, p. 225). Eventually, none of the theories were sustained, but here one recognizes tentative efforts (undoubtedly among the oldest) to rationalize the concept of occultation. During the same period, Abu Jaʿfar Ebn Qebba (d. before 931) wrote some texts with the same objective, such as his Masʾala fi’l-emāma and al-Naqż ʿalā Abi’l-Ḥasan ʿAli b. Aḥmad b. Baššār fi’l-ḡayba (both edited in Modarressi, 1993). The rationalizing theorization of the concept of occultation continued in full force with Shaikh Mofid (d. 1022) and his disciples, Šarif Mortażā (d. 1044), Mo-ḥammad b. ʿAli Karājaki (d. 1057), and Shaikh Abu Jaʿfar Ṭusi, known as Šayḵ al-Ṭāʾefa (d. 1067), thinkers who explicitly had recourse to dialectical demonstration drawing notably from some older Muʿtazilite principles (Sachedina 1981, pp. 108 ff.; see bibliography).

Other uncertainties and contradictions concern the notion of the “double occultations” and belief in the “delegation” (niāba, sefāra, wekāla) and the “four delegates or deputies” (nowwāb / sofarāʾ arbaʿa) of the Hidden Imam. We shall consider them further on.

All this tends to show that during this period the Imami community underwent what one might consider a serious identity crisis. This “time of confusion” is one of groping in the dark, of research, development, and the more or less painful establishment of doctrines related to the authority and legitimacy of the twelfth Imam. These doctrines were faced with, and overcame, much resistance before eventually standing as articles of faith. The transition from Imami Shiʿism to Twelver Shiʿism was certainly not achieved seamlessly (Kohlberg, 1976). In the introduction of his Ketāb al-Ḡayba, Ebn Abi Zaynab Noʿmāni laments the fact that a large majority of his co-religionists still did not know the identity of the Hidden Imam, or even go so far as to contest his existence (Noʿmāni, pp. 18-32). Ebn Bābuya makes a similar observation when he says that he was inundated by questions from the Shiʿites of Khorasan regarding the identity of the Hidden Imam and this, in fact, was what prompted him to write his Kamāl al-din (Ebn Bābuya 1985, I, pp. 2 ff.). In this confused atmosphere in which schisms were growing in number (Sachedina, 1981, pp. 42 ff.) and adversarial movements, particularly the Ismaʿilis, justifiably benefited from the situation, propaganda intensified and as a consequence the Twelver Shiʿite trend saw a large number of its faithful, including some notable personalities, abandon its ranks (Halm, 1981, passim). The main preoccupation of Twelver Shiʿite thinkers at this time was to demonstrate the actual existence of the son of Imam Ḥasan al-ʿAskari, and to establish his legitimate authority as the Hidden Imam. This objective was attained thanks to the sustained efforts of a certain number of thinkers and transmitters of traditions, some of whom have already been cited: Nowbaḵti, Abu Jaʿfar Ebn Qebba, Kolayni, Noʿmāni, and especially Ebn Bābuya and his masterly Kamāl al-din, the principal architect of the canonization of elements relating to the Hidden Imam, his occultation, and status as eschatological Savior (Amir-Moezzi, 1996, pp. 122 ff.). Still, one can list some authors and their works that were decisive in the definitive establishment of doctrines regarding the Mahdi of the Twelvers: the father of Ṣaduq, ʿAli b. Ḥosayn Ebn Bābuya (d. 940) and his book, al-Emāma wa’l-tabṣera men al-ḥayra; Ebn Quluya (Ebn Qulawayh, q.v., d. 979) and his Kāmel al-ziārāt; Ḵazzāz Rāzi (2nd half of 10th cent.) and his Kefāyat al-aṯar; and Ebn ʿAyyāš Jawhari (d. 1011) and his Moqtażab al-aṯar (see bibliography). Consequently, when Shaikh Ṭusi (d. 1067) wrote his Ketāb al-Ḡayba, a substantial monograph on the subject, articles of faith regarding the Mahdi of the Twelver Imamis appeared already well established: that the son of the eleventh Imam is indeed the twelfth and final Imam; that he had two occultations: during the first and much shorter one, he communicated with believers through the intermediary of four delegates. During the second, which is to last until the end of time, he remains providentially living in his physical body in order to return to save the world as Mahdi. We shall now examine these points in greater detail.

Birth and occultation of the Mahdi. What precisely do traditional accounts of the Mahdi relate? Versions that would eventually be considered “orthodox” began to emerge in the first half of the 10th century and only attained their definitive form in the following century. For what follows, we base our information mainly on the works of authors such as Noʿmāni, Ebn Bābuya (1985), and Shaikh Ṭusi (1965), to cite only the most important monographs on the subject.

The eschatological Savior of Imamism is presented as Abu’l-Qāsem Moḥammad b. Ḥasan al-ʿAskari, twelfth and last among the Imams. He therefore bears the same name and konya as the Prophet, thus fulfilling the hadith that probably goes back to ʿĀṣem b. Bahdala (d. 744-45) from Kufa. It undoubtedly owes its origin to Moḵtār’s rebellion in favor of Moḥammad b. al-Ḥanafiya, son of ʿAli, who, once when he was described as Mahdi, declared that his privilege consisted in bearing the same name and konya as the Prophet (Ebn Saʿd, V, p. 68; Madelung, “al-Mahdī,” p. 1223a). However, it was inadvisable to call the Mahdi by his name, according to a ban attributed to many among the imams (al-nahy ʿan al-esm/al-manʿ ʿan al-tasmiya), the aim of which was to protect the Savior (commissioned to put an end to injustice) from the threat posed by the ʿAbbasid court (Kolayni, n.d., II, pp. 126 ff.; Noʿmāni, chap. 16; Ebn Bābuya, 1985, I, pp. 333 ff., 370; II, p. 648; Amir-Moezzi, 1992, pp. 257-59). This also reflected uncertainties that weighed upon the identity of the Mahdi. The latter is thus called by any one of his surnames: mahdi (the Guided One), montaẓar (the Awaited One), ṣāḥeb al-zamān (Lord of the Time), al-ḡāʾeb (the Occulted/Hidden One), ḥojjat Allāh (Proof of God), ṣāḥeb al-amr (Lord of the Cause), baqiyat Allāh (Remainder of God) and, most often, qāʾem (a complex term meaning among other things: the standing, one who stands up, one who rises, the resurrector). The latter title, which among the Imamis gradually replaced that of Mahdi, was employed in Shiʿite circles to designate the Imam who “stood up” to fight against unjust and illegitimate power. In this sense, it contrasted with qāʿed, literally “the seated one,” a term designating previous imams who did not participate in rebellious movements against Umayyad and ʿAbbasid rule (Nowbaḵti, pp. 90 ff.; Aš-ʿari Qomi, pp. 102 ff.; Sachedina, 1981, s.v.; Madelung, “Ḳāʾim Āl Muḥammad”).

According to some accounts, his mother, to whom various names are given (Narjis, Rayḥāna, Sawsan, Maryam), was a black slave of Nubian origin (the first three names, being those of flowers and plants, and often given to female slaves, seems to confirm this version); according to other accounts, undoubtedly legendary and hagiographic, she was the grand-daughter of the Byzantine emperor, himself a disciple of the Apostle Simon. According to this version, the Byzantine princess was captured by Muslim troops and sold as a slave in Baghdad to a man belonging to the entourage of the tenth Imam, ʿAli al-Naqi (see ʿALI AL-HĀDI) who then came to Sāmarrāʾ and offered the girl to Ḥakima, the latter’s sister. Even before her captivity, the princess had a dream vision of Mary, mother of Jesus, as well as of Fāṭema (q.v.), daughter of the Prophet Moḥammad, both of whom had asked her to convert to Islam and let herself be captured by the Muslim armies as she was destined for a glorious life. In Sāmarrāʾ, the tenth Imam, having by clairvoyance recognized in her the future mother of the Mahdi, gave her in marriage to his son Ḥasan, the future eleventh Imam. Signs of the mother’s pregnancy as well as the birth of the child were miraculously concealed, since the ʿAbbasids sought to eliminate an expected child whom persistent rumors described as a Savior. The date most often cited for his birth is 15 Šaʿbān 256/18th July 870 (one of the most important Imami festivals). The father showed the newborn to some forty intimate disciples, and then the child was hidden. According to many accounts, the eleventh imam is said to have adopted a two-fold tactic to guarantee the child’s security. First, apart from his intimate circle, the Imam kept the birth of the child secret, going so far as to designate his mother, Ḥodayṯ, as his sole heir. Now, it is known that according to Imami law, under some conditions the inheritance belongs to the mother of the deceased when the latter does not leave behind a child. Secondly, Imam Ḥasan al-ʿAskari had recourse to a ruse to cloud the issue and distract attention. Some time before his death in 874, he allowed a rumor to spread that his servant Ṣaqil was pregnant with his child. Informants of the caliph al-Moʿtamed (r. 870-92) closely observed the activities of the Imam, who was kept under surveillance in the military camp at Sāmarrāʾ. When, following a serious illness, the Imam’s death seemed inevitable, the caliph dispatched his trusted men to the site. After the eleventh Imam died, his servant was arrested for observation. During the year that followed, she showed no signs of pregnancy and was released and promptly forgotten. The caliph and his entourage were then convinced that the deceased eleventh Imam left behind no descendants. According to Imami authors, divine providence had been accomplished. The twelfth Imam, the awaited Savior, was thus saved and grew up in hiding (for these accounts and a critical analysis of them, see Amir-Moezzi, 1992, pt. IV-1 and IV-2). This “gilded legend” meets the obvious hagiographic requirements, but at the same time it reflects the uncertainties that continued to be felt in Imami circles regarding the very existence of a child of Imam Ḥasan al-ʿAskari. This led, as we have seen, to a number of schisms. It is certainly no accident that the sources present “the concealed birth” as one of the distinctive signs of the Savior (Noʿmāni, chap. 10, no. 7, p. 244; Ebn Bābuya, 1985, I, chap. 32, no. 2, p. 325).

Not unlike previous imams, the Mahdi had a birth and childhood bathed in the miraculous. Supernatural signs, divine lights, and celestial messengers accompanied him from his very birth. From his early childhood on, he demonstrated initiatory knowledge and manifested supernormal powers. Our sources regularly relate that even while in hiding, the young twelfth Imam was visited by initiated adepts of his father, and the latter never missed an occasion to reveal to his followers that his son was indeed the qāʾem. Upon the death of his father in 260/874, the twelfth Imam entered his first occultation while still a child, later termed the Minor Occultation (al-ḡaybat al-ṣoḡrā), which lasted 70 lunar years, i.e., until 329/940. During this period, the Hidden Imam is said to have communicated with his believers through four intermediary delegates or representatives: (1) Abu ʿAmr ʿOṯmān b. Saʿid ʿAmri/ʿOmari; (2) Abu Jaʿfar Moḥammad ʿAmri/ʿOmari, son of the above; (3) Abul-Qāsem Ḥosayn b. Ruḥ, from the influential family of the Banu Nowbaḵt; and (4) Abul-Ḥasan ʿAli b. Moḥammad Semmari (regarding these representatives and the sources see Ali, pp. 197 ff.; Hussain, chap. IV-VII; on the vocalization of the fourth name, usually erroneously pronounced Samarri, see Halm, 1988, chap. 4, s.v.).

The most important activities of these “representatives” would have included ensuring that canonical precepts were respected by the believers, the collection and distribution of taxes, delivering questions of a religious nature to the Hidden Imam, making his responses known in public and, finally, performing miracles to convince those believers who were prey to perplexity and confusion. Ebn Bābuya dedicates several pages of his Kamāl al-din to enumerating and describing the supernatural powers of the representatives, perceived by the faithful to be the result of direct initiation by the Hidden Imam (Ebn Bābuya, 1985, II, pp. 486-520; Amir-Moezzi, 1992, pp. 272-75).

According to official tradition, in 329/940, the fourth and last delegate received a final letter signed by the Hidden Imam in which he declared that henceforth and “until the end of time,” no one will see him or be his representative, and that whosoever declares otherwise is no less than an imposter. This important document, apparently reported for the first time by Ebn Bābuya in his Kamāl al-din (II, chap. 45, no. 44, p. 516), heralds the second, or Major Occultation (al-ḡaybat al-kobrā), which according to Twelver Shiʿite doctrine still continues and will last until the eschatological return of the Mahdi (regarding this letter, reports concerning it in ancient sources, and translations of it into Western languages, see Amir-Moezzi 1996, pp. 122-23 and n. 51). Thus, for more than a thousand years the Imamis have lived in a period of Major Occultation of the Hidden Imam. Imami tradition cites four principal reasons to prove the necessity of the occultation: safeguarding the life of the Hidden Imam; independence with regard to temporal powers which, according to some traditions, will all be unjust until the return of the Mahdi; testing believers in order to measure the degree of their faith; and finally, a secret reason not to be revealed until the end of time (Kolayni, n.d., II, pp. 127-45; Noʿmāni, chap. 10; Ebn Bābuya, 1985, chap. 44; idem, 1966, chap. 179; Ebn ʿAyyāš, pp. 34-36; Ṭusi 1965, pp. 73 ff. pp. 109-11, 214-15). It must be emphasized that the concept of two occultations, the first shorter than the second, originated in the beliefs of the Wāqefis of the seventh Imam Musā al-Kāẓem. For them, these two occultations constituted a distinctive sign of the Mahdi, obviously here alluding to the two periods of imprisonment of the seventh Imam, the first of a shorter period under the caliphate of the ʿAbbasid caliph al-Mahdi (r. 775-85), and the second, lasting until the death of the Imam, ordered by Hārun al-Rašid (r. 786-809; Madelung, “al-Mahdī,” p. 1226b). This Wāqefi origin also seems at issue in a hadith, preserved by the Twelver Shiʿite corpus, that mentions the imprisonment of the Savior (Noʿmāni, p. 288; Ebn Bābuya, 1985, II, p. 548; Ṭusi, 1965, p. 181). As a corollary to the preceding concept, belief in the delegation of four official representatives of the Hidden Imam during the first occultation seems to have started to take form long after the proclamation of major occultation, most likely in the second half of the 10th century. As we have seen, Barqi and Ṣaffār do not even deal with the theme of occultation. With two authors from the end of the 9th century, namely Nowbaḵti in his Feraq al-šiʿa, and Ašʿari Qomi in his Maqālāt, there is still no mention of any representative. The same is true of Noʿmāni, who wrote in the first half of the next century. During the same period, Kolayni in his Kāfi, and Kašši in his Rejāl, provide names of several “representatives” (for example the two ʿAmri/ʿOmari, Ebrāhim b. Mahziyār, Marzbāni Ḥāreṯi, Ḥājez b. Yazid, etc.), but never speak of an official list of four individuals (Kolayni, n.d., II, pp. 449 ff.; Kašši, s.v.). In her well-documented study, V. Klemm convincingly demonstrates that Ḥosayn b. Ruḥ Nowbaḵti (d. 938), the “third” nāʾeb, would have been the first to claim to be the only representative of the Hidden Imam, and as a consequence, the supreme leader of the community in the absence of the latter. According to Klemm, the dogma of delegation to the Hidden Imam by a sole representative seems to have been invented and spread by the powerful Nowbaḵti family in Baghdad. The two previous claimants, the two ʿAmri/ʿOmaris, were no doubt elevated to the status of sole representative posthumously to prove to believers the continuity of this institution since the presumed beginning of the occultation (Klemm, passim). This conception of the niāba was far from being accepted without hesitation or resistance, and one has to wait almost half a century until the Kamāl al-din by Ebn Bābuya has it take its more or less definitive canonical form for the first time. “More or less,” indeed, since even Ebn Bābuya, who provides the list of “four representatives,” speaks of other trusted men of the Hidden Imam in different cities (Ebn Bābuya, 1985, II, pp. 432, 442).

Let us end this section by recalling an interesting phenomenon at the time of the occultation that increases devotion to the Hidden Imam and strengthens faith in his invisible presence: accounts of meetings with the Mahdi. Hagiographic literature dedicated to the twelfth Imam has always accorded a special place to accounts of meetings with the Mahdi. It covers a period of almost one thousand years, ranging from some decades after the occultation with, for example, Kolayni, until the contemporary period with monographs by Mirzā Ḥosayn Ṭabarsi/Ṭabresi Nuri (d. 1902), which are veritable encyclopedias of this genre, and Beḥār al-anwār by ʿAllāma Moḥammad-Bāqer Majlesi (d. 1699-1700: see bibliography). Regarding encounters during the Major Occultation, henceforth a question arises to which some Imami thinkers have responded: how to consider accounts of meetings during the Major Occultation authentic when in his final letter to his last representative the Imam declares any encounter to be impossible until the end of time? It is important to note that Ebn Bābuya, who reports this letter in his Kamāl al-din, does not hesitate to relate in the same work some accounts of meetings with the Hidden Imam after his Major Occultation. From the very beginning, ocular vision of the imam, to which the letter refers, seems to have been understood not in a general sense, but as a condition of the Hidden Imam’s representative. Thus, what is declared impossible during the major occultation (thus until the end of time) is not an encounter with the Hidden Imam as such, but laying claim to the niāba of the latter by citing a meeting with the Hidden Imam as grounds. A believer may be granted the privilege of meeting the Imam, but if following this he declares himself to be the “representative” of the Imam due to the encounter, he is considered (according to terms of the letter) no less than a liar and impostor (Šarif Mortażā, n.d., pp. 233 ff.; Ebn Ṭāwus, 1931, pp. 34, 48, 73-75; Majlesi, LII, p. 151; Ṭabarsi/Ṭabresi Nuri, 1991, chap. 8, pp. 559 ff.).

These encounters may occur anywhere, but certain sites seem to be more propitious: Mecca; beside the Imams’ mausoleums; the Cave (sardāb) in Sāmarrāʾ where the Hidden Imam is said to have begun his occultation; the mosque of Sahla in Najaf, and the sanctuary of Jamkarān, not far from Qom (Amir-Moezzi, 1997, first part). Typologically, one can distinguish three categories of narratives of encounters, based on the principal dimension promoted: a humanitarian dimension in which the great generosity of the Hidden Imam towards his believers and his concern for their well-being are emphasized; an initiatory dimension in which the Imam teaches his believers prayers, transmits spiritual knowledge, and bears secrets etc.; and finally, an eschatological dimension, presented mainly by late mystical sources, in which the encounter prompts a believer’s individual spiritual resurrection (Amir-Moezzi, 1996, passim, esp. pp. 127-35; see also Corbin, 1963-64, pp. 67 ff., and idem, 1972, book VII, esp. pp. 346-67).

The end of time and rising of the Mahdi. These subjects have been discussed at length in the article dedicated to Twelver Shiʿite eschatology (Amir-Moezzi, 1998). Here we mostly summarize this work, contributing additional information where necessary. The “end of time” or, in other words, the date of the final advent of the Hidden Imam, is unknown and believers are urged to await deliverance (faraj) patiently and piously. The future coming of the Savior is the most frequently cited subject in predictions made by the Prophet, Fāṭema, and the Imams: entire lengthy chapters are dedicated to the topic in the sources. This coming is heralded by a number of signs (ʿalāmāt). The universal signs are the widespread invasion of the earth by Evil, the overcoming of knowledge by ignorance, and the loss of a sense of the sacred and all that links man to God and his neighbors. These, in some measure, require the manifestation (ẓohur) and the rising (ḵoruj, qiām) of the Qāʾem, or else humanity will be overwhelmed by darkness. Furthermore, there are certain specific signs among which five recur more regularly and are hence justifiably called the “five signs”: (1) the coming of Sofyāni, the enemy of the Qāʾem, who will command an army in battle against the latter (Madelung, 1986, passim, and 2000); (2) the advent of Yamāni, who appears in the Yemen to preach support for the Qāʾem; (3) the Cry/Scream (ṣayḥa, nedāʾ ) of supernatural origin, coming from the sky and calling man to defend the Imam’s cause; (4) the swallowing (ḵasf) of an army composed of the Imam’s enemies in a desert often located between Mecca and Medina, according to a hadith most likely propagated by ʿAbd-Allāh b. Zobayr during his war propaganda against the Umayyad caliph Yazid (r. 680-83), during the latter’s campaign against Mecca and Medina, popularized by the traditionist of Basra, Qatāda (d. 773-74; see Madelung, 1981, pp. 293-95); and (5) the assassination by the Meccans of the messenger to the Qāʾem, often called Nafs or al-Nafs al-Zakiya (echoing the messianic rebellion and death in 762 of the Hasanid Moḥammad b. ʿAbd-Allāh, surnamed al-Nafs al-Zakiya).

The Mahdi thus becomes manifest, all the while having miraculously maintained his youth. He fights and definitively uproots Evil and pervasive ignorance, re-establishing the world to its original pure state (Amir-Moezzi, 2000, passim). For this to occur, he must first avenge the assassination of Imam Ḥosayn in order that the majority of Muslims be purged of the most villainous crime that it ever committed. Moreover, according to the eschatological doctrine of rajʿa (q.v.), a certain number of past saints, victims of their community’s injustice, and their persecutors come back to life in order that the good may take revenge on the evil ones. The Savior will thus not only re-establish Islam, but all religions, to their purity and original integrity, making “submission to God” (Ar. eslām) the universal religion. He will also bring wisdom to mankind by revealing the esoteric secrets of sacred Scriptures (Amir-Moezzi, 1992, pt. IV-3).

In this final battle against the forces of Evil, the Qāʾem is obviously not alone. First, he will be accompanied by certain important characters from the sacred history of humanity; thus, according to different hadiths one finds various prophets of the past such as Jesus and the Prophet Moḥammad, and various Imams, most often ʿAli and/or Ḥosayn. In this war, the Mahdi commands an army in which, apart from the masses of oppressed who enlist depending on the progress of his victories, three kinds of “warriors” are present: (1) angels, especially the 313 angels that accompanied the 313 fighters from Badr, the site of a battle of the Prophet against the Meccans; (2) a terrifying celestial entity named Fear (roʿb; see ESCHATOLOGY iii. IMAMI SHIʿISM) who marches at the head of the Mahdi’s army and terrifies his enemies; and (3) most importantly, 313 Companions of the Qāʾem forming his militia (jayš), a term whose letters also add up to the value of 313. These are specially initiated disciples bearing secret knowledge and possessing miraculous powers. The Savior will no doubt triumph, and the entire world will be brought to submission. Forces of injustice and ignorance will once and for all be exterminated, the earth embellished with justice and wisdom, and humanity revived by knowledge. The Mahdi thus prepares the world for the ultimate trial of the final resurrection of the Last Judgment. According to some traditions, he will reign upon the earth for some time (7, 9, 19 . . . years), after which occurs the death of all humanity just prior to the Judgment. Other traditions report that after the death of the Qāʾem, the government of the world will remain in the hands of the initiated for a certain period before the Day of Resurrection.

Influence and consequences. Unlike in Sunnism, where belief in the Mahdi, although present, never became an essential article of faith, in Shiʿism in general, and Twelver Imamism in particular, it is made a constitutive dogma of its religious doctrine, its dualist vision of the world and more specifically, its conception of maʿād, “place of return” or the hereafter (see SHIʿITE DOCTRINE). During the course of time, Imami panegyric as well as hagiographic literature dedicated to the Hidden Imam tried hard to demonstrate that the figure of the Mahdi, present in Sunni hadith, referred to the twelfth Imam (Madelung, “al-Mahdī”). Imami arguments gained momentum during the 13th century when some great Sunni scholars contributed their support to the Imami dogma of identifying the Mahdi with the twelfth Imam: the two Syrian Shafiʿite scholars Moḥammad b. Yusof Ganji in his Bayān fi aḵbār ṣāḥeb al-zamān, composed in 1250-51, and Kamāl-al-Din Moḥammad ʿAdawi Naṣibini in his Maṭāleb al-soʾul, completed in 1252, and the renowned Sebṭ Ebn al-Jawzi (d. 1256) in his Taḏkerat al-ḵawāṣṣ (see bibliography). Given the dates of these authors and their works, coinciding with the arrival of the Mongols, the end of Sunni caliphal power and the increasing political influence of the Imamis, one wonders if this doctrinal reversal was not dictated by a certain opportunism. One might note in this respect that Moḥammad b. Yusof Ganji was assassinated in Damascus in 1260 for having collaborated with the Mongol conquerors. In any case, it is from this period onward that one notices, from time to time, some learned Sunnis rallying to Imami Mahdism. The phenomenon is also noticeable among Sunni mystics. Already in the 11th century, Abu Bakr Bayhaqi had denounced the consent of some Sufis concerning the identification of the Mahdi with the last Imam of the Twelvers (Madelung, “al-Mahdī”). Setting aside the influence of Imamism upon the eschatological hagiology of Ebn al-ʿArabi (q.v.; Elmore, pp. 111-40), one can cite the disciple of the latter, Saʿd-al-Din Ḥammuya in his Farāʾed al-semṭayn, the Egyptian ʿAbd-al-Wahhāb Šaʿrāni in al-Yawāqit wa’l-jawāher (1551) or, more recently, the Naqšbandi master from Balkh, Solaymān Qonduzi (d. 1877) in his Yanābiʾ al-mawadda (see bibliography). Finally, let us note that some doctrinal issues regarding the person of the twelfth Imam, his occultation, his final advent, his companions, and accounts of encounters with him have been interpreted in terms of spiritual and esoteric hermeneutics (taʾwil) in the Imami mystical schools and texts, particularly among the Šayḵis and Neʿmat-Allāhis (Amir-Moezzi 2001, 2003).



Āḡā Bozorg, al-Ḏariʿa. J. Aguade, Messianismus zur Zeit der frühen Abbasiden: Das Kitāb al-Fitan des Nuʿaim b. Ḥammād, Tübingen, 1979.

Javad Ali, “Die beiden ersten Safire des Zwölften Imams,” Der Islam 25, 1939, pp. 197-227.

M. A. Amir-Moezzi, Le Guide divin dans le shi’isme originel, Paris, 1992; tr. David Streightas, The Divine Guide in Early Shi’ism, New York, 1994.

Idem, “Contribution à la typologie des rencontres avec l’imam caché (Aspects de l’imamologie duodécimaine II),” JA 284, 1996, pp. 109-35.

Idem, “Jamkarân et Mâhân: deux pèlerinages insolites en Iran,” in idem, ed., Lieux d’islam: cultes et cultures de l’Afrique à Java, Paris, 1997, pp. 154-67.

Idem, “Eschatology in Imami Shiʾism,” in EIr. VIII, 1998, pp. 575-81.

Idem, “Fin du Temps et Retour à l’Origine (Aspects de l’imamologie duodécimaine VI),” in M. Garcia Arenal, ed., Mahdisme et millénarisme en Islam, Revue des mondes musulmans et de la Méditerranée, 91-94, 2000, pp. 53-72.

Idem, “Une absence remplie de présences: herméneutiques de l’Occultation chez les Shaykhiyya (Aspects de l’imamologie duodécimaine VII),” BSOAS 64, 2001, pp. 1-18; tr. in R. Brunner and W. Ende, eds., The Twelver Shia in Modern Times: Religious Culture and Political History, Leiden, 2001, pp. 38-57.

Idem, “Visions d’Imam en mystique duodécimaine moderne et contemporaine (Aspects de l’imamologie duodécimaine VIII),” in E. Chaumont et al., eds., Autour du regard: Mélanges Gimaret, Louvain, 2003, pp. 97-124.

S. A. Arjomand, “The Crisis of the Imamate and the Institution of the Occultation in Twelver Shi’ism: A Sociohistorical Perspective,” IJMES 28, 1966a, pp. 491-515.

Idem, “The Consolation of Theology: Absence of the Imam and Transition from Chiliasm to Law in Shi’ism,” The Journal of Religion 76, 1996b, pp. 548-71.

Saʿd b. ʿAbd-Allāh Ašʿari Qomi, Ketāb al-maqālāt wa’l-feraq, ed. M. J. Maškur, Tehran, 1963.

Abu Jaʿfar Barqi, Ketāb al-maḥāsen, ed. J. Moḥaddeṯ Ormavi, Tehran, 1950.

H. Corbin, “Au pays de l’imam caché,” Eranos Jahrbuch 32, 1963-64, pp. 31-87.

Idem, En Islam iranien. Aspects spirituels et philosophiques, Paris, 1971-72.

J. Darmesteter, Le Mahdi depuis les origines de l’Islam jusqu’à nos jours, Paris, 1885.

Ebn ʿAyyāš Jawhari, Moqtażab al-aṯar fi’l-naṣṣ ʿalā ʿadad al-aʾemmat al-eṯnā ʿašar, Tehran, 1927.

ʿAli b. Ḥosayn Ebn Bābuya [Bābawayh], al-Emāma wa’l-tabṣera men al-ḥayra, Qom, 1984.

Moḥammad b. ʿAli b. Ḥosayn (Shaikh Ṣaduq), al-Ḵeṣāl, ed. M.-B. Kamareʾi, Tehran, 1950.

Idem, ʿElal al-šarāʿeʾ, Najaf, 1966.

Idem, Kamāl al-din wa tamām al-neʿma, ed.ʿA.-A. Ḡaffāri, repr. Qom, 1985.

Ebn al-Nadim, Fehrest, ed. R. Tajaddod, Tehran, 1971.

Ebn Quluya [Qulawayh], Kāmel al-ziārāt, lithograph, Iran, n.d.

Ebn Saʿd, al-Ṭabaqāt al-kobrā, ed. E. Sachau, Leiden, 1904-17.

Ebn Ṭāwus, Kašf al-maḥajja, n.p. (Iran), 1931.

Idem, al-Malāḥem wa’l-fetan, Najaf, 1963.

G. Elmore, Islamic Sainthood in the Fullness of Time: Ibn al-ʿArabī’s Book of the Fabulous Gryphon, Leiden, 1999.

ʿA. Eqbāl, Ḵāndān-e Nowbaḵti, Tehran, 2nd ed., 1966.

Moḥammad b. Yusof Ganji, Bayān fi aḵbār ṣāḥeb al-zamān, ed. M.-H. Amini, Najaf, 1970.

Ṣāfi Golpāyegāni, Montaḵab al-aṯar fi’l-emām al-ṯāni ʿašar, Tehran, 1953.

ʿAbd-al-Karim Ḥāʾeri Yazdi, Elzām al-nāṣeb fi eṯbāt ḥojjat al-ḡāʾeb, Tehran, 1932.

H. Halm, “Die Sīrat Ibn Ḥaushab: Die ismailitische daʿwa im Jemen und die Fatimiden,” Die Welt des Orients 12, 1981, pp. 107-35.

Idem, Die Schia, Darmstadt, 1988.

Saʿd-al-Din Ḥammuya, Farāʾed al-semṭayn, Tehran, 2001.

J. M. Hussain, The Occultation of the Twelfth Imam: A Historical Background, London, 1981.

Moḥammad b. ʿAli Karājaki, al-Borhān ʿalā ṭul ʿomr ṣāḥeb al-zamān, in the margins of idem, Kanz al-fawāʾed, Tabriz, n.d. Kašši, Eḵtiār maʿrefat al-rejāl, Mašhad, 1970.

Ḵazzāz Rāzi, Kefāyat al-aṯar fi’l-naṣṣ ʿalu’l-aʾemmat al-eṯnā ʿašar, Tehran, 1888.

Ketāb Abu Saʿid al-ʿOṣfuri, Tehran, 1951.

V. Klemm, “Die vier sufarāʾ des Zwölften Imam. Zur formativen Periode der “Zwölferšīʿa,” Die Welt des Orients 15, 1984, pp. 126-43; Engl. tr. in E. Kohlberg, ed., Shīʿism, Aldershot, England, 2003, pt. VI.

E. Kohlberg, “From Imāmiyya to Ithnā-ʿashariyya,” BSOAS 39, 1976, pp. 521-34; repr. in his Belief and Law in Imāmī Shīʿism, Aldershot, England, 1991, pt. XIV.

Idem “Al-Uṣul al-arbaʿumiʾa,” Jerusalem Studies in Arabic and Islam 10, 1987, pp. 128-66; reprint in his Belief and Law, pt. VII.

Idem, “Early Attestations of the Term ithnā ʿashariyya,” Jerusalem Studies in Arabic and Islam 24, 2000, pp. 343-55.

Moḥammad b. Yaʿqub Kolayni, al-Rawża men al-Kāfi, ed. H. Rasuli Maḥallāti, Tehran, 1969.

Idem, Oṣul men al-Kāfi, 4 vols., ed. J. Moṣṭafawi, Tehran, n.d.

W. Madelung, “ʿAbdallāh b. Zubayr and the Mahdī,” JNES 40, 1981, pp. 291-305.

Idem, “The Sufyānī between Tradition and History,” Stud. Isl. 43, 1986, pp. 5-48.

Idem, “Apocalyptic Prophecies in Ḥimṣ in the Umayyad Age,” Journal of Semitic Studies 31, 1987, pp. 141-85.

Idem, “Ḳāʾim Āl Muḥammad,” EI ² IV, 1978, pp. 456-57.

Idem, “Al-Mahdī,” EI ² V, 1978, pp. 1230-38.

Idem, “Abū’l-ʿAmayṭar the Sufyānī,” Jerusalem Studies in Arabic and Islam 24, 2000, pp. 327-42.

Moḥammad-Bāqer Majlesi, Beḥār al-anwār, Tehran and Qom, 1956-72.

H. Modarressi Tabatabaʾi, Crisis and Consolidation in the Formative Period of Shiʾite Islam, Princeton, 1993.

E. Moeller, Beiträge zur Mahdilehre des Islams, Heidelberg, 1901.

Moḥammad b. Mo-ḥammad b. Noʿmān Mofid, al-Foṣul al-ʿašara fi’l-ḡayba, Najaf, 1951.

Najāši, Rejāl, Tehran, n.d.

Kamāl-al-Din Naṣibini, Maṭāleb al-soʾul, Tehran, 1870-71.

Ḥasan b. Musā Nowbaḵti, Feraq al-šiʿa, ed. H. Ritter, Istanbul, 1931.

Noʿaym b. Ḥammād, Ketāb al-fetan, ed. S. Zakkār, Beirut, 1993.

Ebn Abi Zaynab Noʿmāni, Ketāb al-ḡayba, ed. ʿA.-A. Ḡaffāri, Tehran, 1977.

Mirzā Ḥosayn Ṭabarsi/Ṭabresi Nuri, Jannat al-maʾwā, at the end of vol. 53 of al-Majlesi’s Beháār al-anwār. Al-Oṣul al-arbaʿomeʾa, University of Tehran, MS no. 962.

ʿAli b. Ebrāhim Qomi, Tafsir, ed. Musawi Jazāʾeri, Najaf, 1966-68.

Qonduzi, Yanābiʾ al-mawadda, Qom, 2000.

Ṣaffār Qomi, Baṣāʾer al-darajāt, ed. M. Kučebāḡi, Tabriz, 1960.

A. A. Sachedina, “A Treatise on the Occultation of the Twelfth Imamite Imam,” Stud. Isl. 68, 1978, pp. 109-24.

Idem, Islamic Messianism: the Idea of the Mahdi in Twelver Shiʿism, Albany, 1981.

ʿAbd-al-Wahhāb Šaʿrāni, al-Yawāqit wa’l-jawāher, Cairo, 1932.

Šarif Mortażā [Abu’l-Qāsem ʿAli b. Ḥosayn], Masʾala wajiza fi’l-ḡayba, in Nafāʾes al-maḵṭuṭāt, ed. Āl Yāsin, IV, Baghdad, 1955.

Idem, Tanzih al-anbiāʾ, Qom, n.d. Sebṭ Ebn al-Jawzi, Taḏkerat al-ḵawāṣṣ, Najaf, 1964.

Abu Jaʿfar Moḥammad (Šayḵ al-Ṭāʾefa) Ṭusi, Ketāb al-ḡayba, Najaf, 1965.

Idem, Fehrest kotob al-šiʿa, ed. Sprenger and ʿAbd-al-Ḥaqq, Mašhad, 1972, repr.

(Mohammad Ali Amir-Moezzi)

Originally Published: December 15, 2007

Last Updated: April 5, 2012

This article is available in print.
Vol. XIV, Fasc. 2, pp. 136-143