The purpose of the Pyramid Texts was to help the dead King take his place amongst the gods, in particular to reunite him with his divine father Ra; at this period the afterlife was seen as being in the sky, rather than the underworld described in the Book of the Dead.
The Egyptian Book of the Dead is a term coined in the nineteenth century CE for a body of texts known to the Ancient Egyptians as the Spells for Going Forth by Day. After the Book of the Dead was first translated by Egyptologists, it gained a place in the popular imagination as the Bible of the Ancient Egyptians.