A fourth-century scribe copied a text onto papyrus and bound it in leather. The codex was buried in a clay jar near the Egyptian town of Nag Hammadi and unearthed by peasants in December 1945. Inside was a work titled the Apocryphon of John – the Secret Book of John. It claimed to record a revelation given to the apostle John after the resurrection. The same apostle gave his name to the Gospel that opens with “In the beginning was the Word.” Two texts, one name, two radically different Christs. The relationship between the Gospel of John and the Secret Book of John is not a simple case of heresy versus orthodoxy. It is a conversation between two theologies that drew from the same well – and then went their separate ways.
Definition. The Gospel of John and the Secret Book of John (Apocryphon of John) are two early Christian texts attributed to John, son of Zebedee. The canonical Gospel of John, written around 90–100 CE, presents Jesus as the divine Logos who became flesh. The Secret Book of John, composed in the second century and preserved in four Coptic copies from the Nag Hammadi library, reinterprets Johannine themes through a Gnostic lens: the true God is a transcendent Monad; the material world is the mistake of a lower deity, the Demiurge; and salvation is the recovery of hidden knowledge (gnosis). Both texts likely emerged from the same Johannine school of thought, but they parted ways over the nature of God, creation, and Christ.
Where the Two Texts Come From

The Gospel of John was probably written in Ephesus near the end of the first century. Its theology is already distinct from the Synoptic Gospels – no parables, long dialogues, a high Christology that calls Jesus one with the Father. By the early second century, Christians who identified with John’s writings began to develop their own traditions. One branch produced the Gnostic cosmologies found in the Secret Book.
The earliest surviving reference to the Secret Book comes from Irenaeus of Lyon, who around 180 CE condemned it in Against Heresies (1.29). Irenaeus described a group he called the “Barbelo Gnostics” who used a text very similar to the one we now know as the Apocryphon of John. For centuries, the only knowledge of the text came from this hostile summary. Then the Nag Hammadi discovery changed everything. The four Coptic copies – Papyrus Berolinensis 8502 and Nag Hammadi Codices II, III, and IV – date from the fourth century but preserve earlier Greek originals. Codex II contains the longest version; Codex III a shorter recension. Scholars now know the text existed in multiple forms, revised by different communities over time. The peasant who found the jar could not have guessed he had unearthed the missing half of a theological debate that lasted two centuries.
What Each Text Says About God, Creation, and Christ

The Gospel of John begins with the Logos who was with God and was God. All things were made through him. The Secret Book of John also begins with a first principle, but it calls it the Monad – a solitary, unknowable spirit that sees itself in the light that surrounds it. That light gives rise to the divine Fullness (Pleroma), a series of emanations called aeons. The last of these aeons, Sophia, produces a being without her partner – the Demiurge, who creates the material world in ignorance. This Demiurge is the “God” of the Old Testament, a blind deity who boasts “I am God and there is no other” (Apocryphon of John, Nag Hammadi Codex II 11–13). The Gospel of John’s Logos, by contrast, is not an emanation but the direct agent of creation: the Word becomes flesh.
The relationship here is one of radical reinterpretation. The Secret Book takes Johannine symbols – light, life, truth, water – and maps them onto a dualistic cosmos. When the Gospel of John says “I am the light of the world,” the Secret Book answers: the true light is the invisible Monad, and the light that shines in the material world is only a reflection. When the Gospel presents Jesus as the living water, the Secret Book describes the water of life that flows from the Pleroma into the soul. The Gospel insists that the Word became flesh – a scandalous claim for the Gnostic author, who saw flesh as a prison. The Secret Book’s Christ never takes a physical body in the same sense; he merely appears in the form of a human to awaken the divine spark trapped inside matter.
How the Texts Were Used by Their Communities
We know that by the late second century the Gospel of John was read in orthodox churches on Sundays, often as the fourth gospel alongside Matthew, Mark, and Luke. Its use in liturgy is attested by Irenaeus and later by Origen. The Secret Book of John was never read in those churches. It was used in Sethian Gnostic communities for a different purpose: as a meditation text that guided the initiate through the descent and ascent of the soul.
The text itself is framed as a dialogue. John asks questions; Jesus answers. A member of a Sethian group might have read it aloud to a circle of initiates, pausing at each level of the Pleroma to help the hearers recognize their own origin. The concrete practice: a small oil lamp on a low table, a bowl of water for purification, the codex open. The reader would name the aeons – Barbelo, Pronoia, the Autogenes – and invite each person to say silently, “I too came from that light.” The Secret Book describes a ritual of the “five seals,” a baptismal or anointing practice that marked the initiate’s ascent through the divine realms. We have no surviving manual, but the text’s structure suggests a contemplative, almost liturgical use that differed sharply from the public reading of the gospel in a basilica.
Comparing the Two: Shared Author, Shared Source?
Both texts claim the same human author. This is not accidental. The early church associated John with esoteric teachings – the “beloved disciple” who reclined on Jesus’ breast and presumably heard secret words. The author of the Secret Book capitalized on this tradition to give his revelation authority. Modern scholarship, however, does not accept either text as written by the historical John. The Gospel of John is the work of an anonymous Christian theologian, likely a member of a Johannine community. The Secret Book is a product of that same community’s later Gnostic wing, or possibly of a separate Sethian tradition that adopted John as a figurehead.
The relationship is not one of direct textual dependence. The Secret Book does not quote the Gospel of John verbatim. It shares with it a vocabulary of light and darkness, truth and falsehood, life and death. But the Secret Book’s cosmology is closer to Middle Platonism than to the Gospel’s Jewish monotheism. Both texts worry about the origin of evil and the role of the divine Word, but they answer those questions differently. The Gospel says the world was made good through the Logos; the Secret Book says the world was a mistake by a lower god. The gap is not one of misunderstanding – it is a deliberate theological fork in the road.
Common Misconceptions
The most persistent error is that the Secret Book of John is a straightforward heretical rewriting of the Gospel – a Gnostic parody. It is not. It is a serious theological work that tries to solve problems left open by the Gospel: if God created the world, why is it full of suffering? If Jesus is the light, why does darkness still reign? The Secret Book’s answer – that the creator is a lower god and the true God is utterly transcendent – is philosophically coherent, though it was condemned by mainstream Christianity.
Another misconception: that the Gospel of John was used exclusively by Gnostics. In fact, it was also used by orthodox writers like Irenaeus and Origen, though they rejected Gnostic readings. The Gospel of John itself is not Gnostic, but it could be read as Gnostic if one emphasized its dualistic language. That is precisely what the author of the Secret Book did – not by corruption, but by logical extension. A third error is to assume the Secret Book was unknown until Nag Hammadi. Irenaeus described it in 180 CE, and fragments of a Greek version survive from the third century. The text never disappeared; it was simply suppressed.
FAQ
1. Is the Secret Book of John the same as the Gospel of John?
No. They are two separate texts attributed to the same apostle. The Gospel of John is part of the New Testament; the Secret Book of John is a non-canonical Gnostic work from the Nag Hammadi library.
2. Did the Gospel of John influence the Secret Book of John?
Yes, likely. The Secret Book uses Johannine language and themes, and its author probably belonged to the wider Johannine tradition that produced the fourth gospel. For more on this tradition, see the hermeticism hub.
3. Why was the Secret Book of John banned?
Because its teaching that the material world was created by an inferior deity contradicted the orthodox doctrine that God is the sole creator. Church fathers like Irenaeus condemned it as heretical, and it was excluded from the canon.
4. What is the role of John in the Secret Book?
John is the recipient of a visionary revelation from the risen Christ. He asks questions about the origin of the world, the fall of Sophia, and the fate of the soul, and Jesus answers in detailed cosmological terms.
Closing
The Gospel of John and the Secret Book of John are two branches of the same tree. One grew into the center of Christian orthodoxy; the other was buried in the sand and rediscovered in the modern age. Both demand that we ask what we mean by “knowing” God. For related texts, explore our guide to Gnosticism and the glossary entry for the Demiurge. For a deeper look at Johannine Gnosticism, see The Gospel of Thomas and the Johannine Tradition.
