The Gospel of Mary was first discovered not at Nag Hammadi but in Cairo in 1896, when a German scholar named Carl Reinhardt purchased a fifth-century Coptic manuscript — the Berlin Gnostic Codex — from an antiquities dealer in Cairo. The codex contained four texts, including the Gospel of Mary. Publication was delayed by a series of extraordinary mishaps: a flood damaged the printer's workshop, then World War I intervened, then World War II. The text was not published until 1955 — nearly sixty years after its discovery.
What the Berlin Codex preserved was already incomplete: pages 1–6 of the original are missing, meaning the text opens mid-conversation. The surviving text shows Jesus responding to questions from the disciples about matter, sin, and the nature of the Good — then departing, leaving the disciples in grief and fear. Mary steps forward and comforts them with teachings she has received in private vision. Andrew and Peter challenge her. Levi defends her. The text ends there — or rather, it ends where the surviving pages end.
Small Greek fragments of the same text, discovered at Oxyrhynchus in Egypt, confirm that the Coptic version is a translation of a Greek original — and that the text was circulating in at least two different manuscript traditions in the early centuries of the Common Era.