Mary Magdalene (sometimes called Mary of Magdala, or simply the Magdalene or the Madeleine) was a woman who, according to the four canonical gospels, travelled with Jesus as one of his followers and was a witness to his crucifixion and resurrection. provides a brief summary of her role during his ministry:

thumb|upright=1.2|[[The Conversion of Mary Magdalene () by Paolo Veronese]]

According to the Gospel of Luke, Jesus exorcised "seven demons" from Mary Magdalene. That seven demons had possessed Mary is repeated in Mark 16:9, part of the "longer ending" of that gospel – this is not found in the earliest manuscripts and is possibly a second-century addition to the original text, possibly based on the Gospel of Luke. In the first century, demons were believed widely to cause physical and psychological illness. Bruce Chilton, a scholar of early Christianity, states that the reference to the number of demons being "seven" may mean that Mary had to undergo seven exorcisms, probably over a long period of time, due to the first six being partially or wholly unsuccessful.

Bart D. Ehrman, a New Testament scholar and historian of early Christianity, contends that the number seven may be merely symbolic, since, in Jewish tradition, seven was the number of completion, so that Mary was possessed by seven demons may simply mean she was completely overwhelmed by their power. In either case, Mary must have suffered from severe emotional or psychological trauma for an exorcism of this kind to have been perceived as necessary. Consequently, her devotion to Jesus resulting from this healing must have been very strong. The Gospels' writers normally relish giving dramatic descriptions of Jesus's public exorcisms, with the possessed person wailing, thrashing, and tearing their clothes in front of a crowd. By contrast, that Mary's exorcism receives little attention may indicate that either Jesus performed it privately or that the recorders did not perceive it as particularly dramatic.

Because Mary is listed as one of the women who supported Jesus' ministry financially, she must have been relatively wealthy. The places where she and the other women are mentioned throughout the gospels indicate strongly that they were vital to Jesus' ministry and that Mary Magdalene always appears first, whenever she is listed in the Synoptic Gospels as a member of a group of women, indicates that she was seen as the most important out of all of them. Carla Ricci notes that, in lists of the disciples, Mary Magdalene occupies a similar position among Jesus' female followers as Simon Peter does among the male apostles.

That women played such an active and important role in Jesus' ministry was not entirely radical or even unique; inscriptions from a synagogue in Aphrodisias in Asia Minor from around the same time period reveal that many of the major donors to the synagogue were women. Jesus' ministry did bring women greater liberation than they would typically have held in mainstream Jewish society.

Witness to Jesus's crucifixion and burial

thumb|Detail of Mary Magdalene weeping at the crucifixion of Jesus, as portrayed in [[The Descent from the Cross (van der Weyden)|The Descent from the Cross () by the Flemish artist Rogier van der Weyden]]

All four canonical gospels agree that several women watched Jesus's crucifixion from a distance, with three explicitly naming Mary Magdalene as present. lists the names of these women as Mary Magdalene; Mary, mother of James; and Salome. lists Mary Magdalene, Mary mother of James and Joseph, and the unnamed mother of the sons of Zebedee (who may be the same person Mark calls Salome). mentioned a group of women watching the crucifixion, but did not give any of their names. lists Mary, mother of Jesus, her sister, Mary, wife of Clopas, and Mary Magdalene as witnesses to the crucifixion.

Virtually all reputable historians agree that Jesus was crucified by the Romans under the orders of Pontius Pilate. James Dunn states of baptism and crucifixion that these "two facts in the life of Jesus command almost universal assent". Nonetheless, the gospels' accounts of Jesus's crucifixion differ. Ehrman states that the presence of Mary Magdalene and the other women at the cross is probably historical because Christians would have been unlikely to make up that the main witnesses to the crucifixion were women and also because their presence is attested in both the Synoptic Gospels and in the Gospel of John independently. Maurice Casey concurs that the presence of Mary Magdalene and the other women at the crucifixion of Jesus may be recorded as a historical fact. According to E. P. Sanders, the reason why the women watched the crucifixion even after the male disciples had fled may have been because they were less likely to be arrested, they were braver than the men, or some combination thereof.

thumb|upright=1.1|left|[[The Deposition (Raphael)|The Deposition (1507) by Raphael, showing a distressed, reddish-blond-haired Mary Magdalene dressed in fine clothes clutching the hand of Jesus's body as he is carried to the tomb]]

All four canonical gospels, as well as the apocryphal Gospel of Peter, agree that Jesus's body was taken down from the cross and buried by a man named Joseph of Arimathea. lists Mary Magdalene and Mary, mother of Jesus as witnesses to the burial of Jesus. lists Mary Magdalene and "the other Mary" as witnesses. mentions "the women who had followed him from Galilee", but does not list any of their names. does not mention any women present during Joseph's burial of Jesus, but does mention the presence of Nicodemus, a Pharisee with whom Jesus had a conversation near the beginning of the gospel. Ehrman, who previously accepted the story of Jesus's burial as historical, now rejects it as a later invention on the basis that Roman governors almost never allowed for executed criminals to be given any kind of burial and Pontius Pilate in particular was not "the sort of ruler who would break with tradition and policy when kindly asked by a member of the Jewish council to provide a decent burial for a crucified victim". Casey argues that Jesus was given a proper burial by Joseph of Arimathea, noting that, on some very rare occasions, Roman governors did release the bodies of executed prisoners for burial. Nonetheless, he rejects that Jesus could have been interred in an expensive tomb with a stone rolled in front of it like the one described in the gospels, leading him to conclude that Mary and the other women must not have seen the tomb. Sanders affirms Jesus's burial by Joseph of Arimathea in the presence of Mary Magdalene and the other female followers as completely historical.

Resurrection of Jesus

thumb|upright=1.1|Holy Women at Christ's Tomb () by [[Annibale Carracci. In , Mary Magdalene and "the other Mary" encounter an angel at the tomb, who tells them that Christ has risen.]]

The earliest description of Jesus's post-resurrection appearances is a quotation of a pre-Pauline creed preserved by Paul the Apostle in , which was written roughly 20 years before any of the gospels. This passage made no mention of Mary Magdalene, the other women, or the story of the empty tomb, but rather credits Simon Peter with having been the first to see the risen Jesus. Despite this, all four canonical gospels, as well as the apocryphal Gospel of Peter, agreed that Mary Magdalene, either alone or as a member of a group, was the first person to discover that Jesus's tomb was empty. Nonetheless, the details of the accounts differ drastically.

According to , the earliest account of the discovery of the empty tomb, Mary Magdalene, Mary the mother of James, and Salome went to the tomb just after sunrise, a day and half after Jesus's burial and found that the stone had already been rolled away. They went inside and saw a young man dressed in white, who told them that Jesus had risen from the dead and instructed them to tell the disciples that he would meet them in Galilee. Instead, the women ran away and told no one, because they were too afraid. The original text of the gospel ends here, without the resurrected Jesus making an appearance to anyone. Casey argues that the reason for this abrupt ending may be because the Gospel of Mark is an unfinished first draft.

According to , Mary Magdalene and "the other Mary" went to the tomb. An earthquake occurred and an angel dressed in white descended from Heaven and rolled aside the stone as the women were watching. The angel told them that Jesus had risen from the dead. Then the risen Jesus himself appeared to the women as they were leaving the tomb and told them to tell the other disciples that he would meet them in Galilee.

According to Mary Magdalene, Joanna, and Mary the mother of James went to the tomb and found the stone already rolled away, as in Mark. They went inside and saw two young men dressed in white who told them that Jesus had risen from the dead. Then they went and told the eleven remaining apostles, who dismissed their story as nonsense. In Luke's account, Jesus never appears to the women, but instead makes his first appearance to Cleopas and an unnamed "disciple" on the road to Emmaus. Luke's narrative also removes the injunction for the women to tell the disciples to return to Galilee and instead has Jesus tell the disciples not to return to Galilee, but rather to stay in the precincts of Jerusalem.

thumb|upright=1.2|left|[[Christ's Appearance to Mary Magdalene after the Resurrection (1835) by Alexander Andreyevich Ivanov. In , Mary Magdalene sees the risen Jesus alone and he tells her "Don't touch me, for I have not yet ascended to my father."]]

Mary Magdalene's role in the resurrection narrative is greatly increased in the account from the Gospel of John. According to , Mary Magdalene went to the tomb when it was still dark and saw that the stone had already been rolled away. She did not see anyone, but immediately ran to tell Peter and the "beloved disciple", who came with her to the tomb and confirmed that it was empty, but returned home without seeing the risen Jesus. According to , Mary, now alone in the garden outside the tomb, saw two angels sitting where Jesus's body had been. Then the risen Jesus approached her. She at first mistook him for the gardener, but, after she heard him say her name, she recognized him and cried out "Rabbouni!" (which is Aramaic for 'teacher'). His next words may be translated as "Don't touch me, for I have not yet ascended to my Father" or "Stop clinging to me, [etc.]", the latter more probable in view of the grammar (negated present imperative: stop doing something already in progress) as well as Jesus's challenge to Thomas a week later (see ). Jesus then sent her to tell the other apostles the good news of his resurrection. The Gospel of John therefore portrays Mary Magdalene as the first apostle, the apostle sent to the apostles. Because she was the first to witness Jesus's resurrection, Mary Magdalene is known in some Christian traditions as the "apostle to the apostles".

Because scribes were unsatisfied with the abrupt ending of the Gospel of Mark, they wrote several different alternative endings for it. In the "shorter ending", which is found in very few manuscripts, the women go to "those around Peter" and tell them what they had seen at the tomb, followed by a brief declaration of the gospel being preached from east to west. This "very forced" ending contradicts the last verse of the original gospel, stating that the women "told no one". The "longer ending", which is found in most surviving manuscripts, is an "amalgam of traditions" containing episodes derived from the other gospels. First, it describes an appearance by Jesus to Mary Magdalene alone (as in the Gospel of John), followed by brief descriptions of him appearing to the two disciples on the road to Emmaus (as in the Gospel of Luke) and to the eleven remaining disciples (as in the Gospel of Matthew).

In his book published in 2006, Ehrman states that "it appears virtually certain" that the stories of the empty tomb, regardless of whether or not they are accurate, can definitely be traced back to the historical Mary Magdalene, saying that, in Jewish society, women were regarded as unreliable witnesses and were forbidden from giving testimony in court, so early Christians would have had no motive to make up a story about a woman being the first to discover the empty tomb. In fact, if they had made the story up, they would have had strong motivation to make Peter, Jesus's closest disciple while he was alive, the discoverer of the tomb instead. He also says that the story of Mary Magdalene discovering the empty tomb is independently attested in the Synoptics, the Gospel of John, and in the Gospel of Peter. N. T. Wright states that, "it is, frankly, impossible to imagine that [the women at the tomb] were inserted into the tradition after Paul's day."

Casey challenges this argument, contending that the women at the tomb are not legal witnesses, but rather heroines in line with a long Jewish tradition. He contends that the story of the empty tomb was invented by either the author of the Gospel of Mark or by one of his sources, based on the historically genuine fact that the women really had been present at Jesus's crucifixion and burial. In his book published in 2014, Ehrman rejects his own previous argument, stating that the story of the empty tomb can only be a later invention because there is virtually no possibility that Jesus's body could have been placed in any kind of tomb and, if Jesus was never buried, then no one alive at the time could have said that his non-existent tomb had been found empty. He concludes that the idea that early Christians would have had "no motive" to make up the story simply "suffers from a poverty of imagination" and that they would have had all kinds of possible motives, especially since women were overrepresented in early Christian communities and women themselves would have had strong motivation to make up a story about other women being the first to find the tomb. He does conclude later, however, that Mary Magdalene must have been one of the people who had an experience in which she thought she saw the risen Jesus, citing her prominence in the gospel resurrection narratives and her absence everywhere else in the gospels as evidence.

Portrayal in Gnostic writings

Mary is a central figure in Gnostic Christian writings, including the Dialogue of the Savior, the Pistis Sophia, the Gospel of Thomas, the Gospel of Philip, and the Gospel of Mary. These texts portray her as an apostle, as Jesus's closest and most beloved disciple and the only one who truly understood his teachings. In the Gnostic texts, or Gnostic gospels, Mary's closeness to Jesus results in tension with another disciple, Peter, due to her gender and Peter's envy of the special teachings given to her. In the Gospel of Philip's text, Marvin Meyer's translation says (missing text bracketed): "The companion of the [...] is Mary of Magdala. The [...] her more than [...] the disciples, [...] kissed her often on her [...]."

Apocryphal early Christian writings

New Testament apocrypha writings mention Mary Magdalene. Some of these writings were cited as scripture by early Christians.However, they were never admitted to the canon of the New Testament. Catholic, Eastern Orthodox and Protestant churches generally do not view these writings as part of the Bible. In these apocryphal texts, Mary Magdalene is portrayed as a visionary and leader of the early movement whom Jesus loved more than he loved the other disciples. These texts were written long after the death of the historical Mary Magdalene. They are not regarded by bible scholars as reliable sources of information about her life. Sanders summarizes the scholarly consensus that:

<blockquote>... very, very little in the apocryphal gospels could conceivably go back to the time of Jesus. They are legendary and mythological. Of all the apocryphal material, only some of the sayings in the Gospel of Thomas are worth consideration.</blockquote>

Nonetheless, the texts have been frequently promoted in modern works as though they were reliable. Such works often support sensationalist statements about Jesus and Mary Magdalene's relationship.

Dialogue of the Saviour

thumb|upright|Fragment of a fourth-century text of the apocryphal [[Dialogue of the Saviour, in which Mary Magdalene is a central figure]]

The earliest dialogue between Jesus and Mary Magdalene is probably the Dialogue of the Saviour, a badly damaged Gnostic text discovered in the Nag Hammadi library in 1945. The dialogue consists of a conversation between Jesus, Mary and two apostles – Thomas the Apostle and Matthew the Apostle. In saying 53, the Dialogue attributes to Mary three aphorisms that are attributed to Jesus in the New Testament: "The wickedness of each day [is sufficient]. Workers deserve their food. Disciples resemble their teachers." The narrator commends Mary stating, "she spoke this utterance as a woman who understood everything."

Pistis Sophia

The Pistis Sophia, possibly dating as early as the second century, is the best surviving of the Gnostic writings. It was discovered in the 18th century in a large volume containing numerous early Gnostic treatises. The document takes the form of a long dialogue in which Jesus answers his followers' questions. Of the 64 questions, 39 are presented by a woman who is referred to as Mary or Mary Magdalene. At one point, Jesus says, "Mary, thou blessed one, whom I will perfect in all mysteries of those of the height, discourse in openness, thou, whose heart is raised to the kingdom of heaven more than all thy brethren." At another point, he tells her, "Well done, Mary. You are more blessed than all women on earth, because you will be the fullness of fullness and the completion of completion." Simon Peter, annoyed at Mary's dominance of the conversation, tells Jesus, "My master, we cannot endure this woman who gets in our way and does not let any of us speak, though she talks all the time." Mary defends herself, saying, "My master, I understand in my mind that I can come forward at any time to interpret what Pistis Sophia [a female deity] has said, but I am afraid of Peter, because he threatens me and hates our gender." Jesus assures her, "Any of those filled with the spirit of light will come forward to interpret what I say: no one will be able to oppose them."

Gospel of Thomas

thumb|upright|Last page of the [[Gospel of Thomas from Nag Hammadi, containing the account of Jesus's reaffirmation of Mary's authority to Peter]]

The Gospel of Thomas, usually dated to the late first or early second century, was among the ancient texts discovered in the Nag Hammadi library in 1945. The Gospel of Thomas consists entirely of 114 sayings attributed to Jesus. Many of these sayings are similar to ones in the canonical gospels, but others are completely unlike anything found in the New Testament. Some scholars believe that at least a few of these sayings may authentically be traced back to the historical Jesus. Two of the sayings reference a woman named "Mary", who is generally regarded as Mary Magdalene. In saying 21, Mary herself asks Jesus, "Whom are your disciples like?" Jesus responds, "They are like children who have settled in a field which is not theirs. When the owners of the field come, they will say, 'Let us have back our field.' They (will) undress in their presence in order to let them have back their field and to give it back to them." Following this, Jesus continues his explanation with a parable about the owner of a house and a thief, ending with the common rhetoric, "Whoever has ears to hear let him hear."

Mary's mention in saying 114, however, has generated considerable controversy:

In the ancient world, many patriarchal cultures believed that women were inferior to men and that they were, in essence, "imperfect men" who had not fully developed. When Peter challenges Mary's authority in this saying, he does so on the widely accepted premise that she is a woman and therefore an inferior human being. When Jesus rebukes him for this, he bases his response on the same premise, stating that Mary and all faithful women like her will become men and that salvation is therefore open to all, even those who are presently women.

Gospel of Philip

thumb|upright|Text of the [[Gospel of Philip from Nag Hammadi]]

The Gospel of Philip, dating from the second or third century, survives in part among the texts found in Nag Hammadi in 1945. In a manner very similar to , the Gospel of Philip presents Mary Magdalene among Jesus's female entourage, adding that she was his koinônos, a Greek word variously translated in contemporary versions as 'partner, associate, comrade, companion':

The Gospel of Philip uses cognates of koinônos and Coptic equivalents to refer to the literal pairing of men and women in marriage and sexual intercourse, but also metaphorically, referring to a spiritual partnership, and the reunification of the Gnostic Christian with the divine realm. The Gospel of Philip also contains another passage relating to Jesus's relationship with Mary Magdalene. The text is badly fragmented, and speculated but unreliable additions are shown in brackets: