The Second Apocalypse of James is a Gnostic writing. It is the fourth tractate in Codex V in the Nag Hammadi library, immediately following the First Apocalypse of James. The order is a deliberate scribal choice, since the first text prepares James the Just for his death as a martyr, and the second text describes his death in detail. The existing Coptic version was likely translated in c. 300 AD from a Greek original written in c. 150 AD (possibly earlier than the First Apocalypse). In the text, James serves as a Gnostic redeemer who tries unsuccessfully to persuade the people to understand God before his martyrdom. Because of the fragmentary state of the tractate, the speakers are not always clear. The beginning of the text is introduced as a discourse spoken by James the Just in Jerusalem, right before his death, and written down by the priest Mareim and shared with Theuda, father of James. James says to come with his wife Mary and relatives. James claims to have received revelation from the Pleroma of Imperishability and says that he obeyed Jesus. James calls himself the brother in secret who prayed to the Father. He recounts a visit from his step-brother Jesus, whom he did not recognize at first, but who called him "brother." James goes on to talk about the virgin and how understanding the Father can be profitable. James warns about the false ruler, far from the aeons, who uses evil schemes, commits violence, and exercises unjust dominion. James says that the Father has compassion, is not limited by time or possessions, and is superior to those who are below. James saw things from a height and explains how they happened. He wishes to reveal things to those who seek to enter and walk in the way that is before the door. James is an illuminator and redeemer who will bring good among all. Those who are instructed in these things will come to rest and reign. James states that Jesus kissed his mouth and called him beloved. Jesus claims to reveal hidden knowledge that neither the heavens nor their archons know.