On the Origin of the World is a Gnostic work dealing with creation and the end time. It was found among the texts in the Nag Hammadi library, in Codex II and Codex XIII, immediately following the Reality of the Rulers. There are many parallels between the two texts.[1] The work is untitled; modern scholars call it “On the Origin of the World” based on its contents.[2] It may have been written in Alexandria near the end of the third century, based on its combination of Jewish, Manichaean, Christian, Greek, and Egyptian ideas.[2][3] The unknown author's audience appears to be outsiders who are unfamiliar with the Gnostic view of how the world came into being.[2] The contents provide an alternate interpretation of Genesis, in which the dark ruler Yaldabaoth created heaven and earth, and a wise instructor opened the minds of Adam and Eve to the truth when they ate from the Tree of Knowledge.