The Coffin Texts are a collection of ancient Egyptian funerary spells written on coffins beginning in the First Intermediate Period. The texts are derived in part from the earlier pyramid texts, reserved for royal use only, but they contain substantial new material related to everyday desires that reflects the fact that the texts were now used by the common people. Ordinary Egyptians who could afford to have a coffin had access to these funerary spells and the pharaoh no longer had exclusive rights to the afterlife.
As the modern name of this collection of some 1,185 spells implies, the texts are mostly found on Middle Kingdom coffins. However they are sometimes inscribed on tomb walls, stelae, canopic chests, papyri and even mummy masks. Due to the limited writing surfaces of some of these objects, the collection was often abbreviated, and this gave rise to long and short versions of some of the spells, a number of which were later copied in the Book of the Dead.
In contrast to the Pyramid Texts which focus on the celestial realm, the coffin texts emphasize the subterranean elements of the afterlife ruled by Osiris, in a place called the Duat. An Osirian afterlife is offered to everyone, and the deceased is even referred to as "the Osiris-[name]". This subterranean realm is described as being filled with threatening beings, traps, and snares with which the deceased must contend. The spells in the Coffin Texts allow the deceased to protect themselves against these dangers and "dying a second death".
A new theme recorded in the coffin texts is the notion that all people will be judged by Osiris and his council according to their deeds in life. The texts allude to the use of a balance, which became the pivotal moment of judgment in the later Book of the Dead. The texts address common fears of the living, such as having to do manual labor, with spells to allow the deceased to avoid these unpleasant tasks.
They combine ritual actions intended as protection, expressions of aspiration for a blessed existence after death and of the transformations and transmigrations of the ba and akh and so on. In addition there are descriptions of the land of the dead, its landscape and inhabitants. These include the Sekhet Hotep (Field of offerings or peace), the paths of Rostau and the abode of Osiris.
Coffin text 1130 is a speech by the sun god Re, who says:
- Hail in peace! I repeat to you the good deeds which my own heart did for me from within the serpent-coil, in order to silence strife...
- I made the four winds, that every man might breathe in his time...
- I made the great inundation, that the humble might benefit by it like the great...
- I made every man like his fellow; and I did not command that they do wrong. It is their hearts which disobey what I have said...
- I have created the gods from my sweat, and the people from the tears of my eye.
Coffin text 1031 is spoken by the deceased, who says:
- I shall sail rightly in my bark, I am lord of eternity in the crossing of the sky.
- I am not afraid in my limbs, for Hu and Hike overthrow for me that evil being.
- I shall see light-land, I shall dwell in it...
- Make way for me, that I may see Nun and Amun! For I am that Akh who passes by the guards...
- I am equipped and effective in opening his portal!
- As for any person who knows this spell, he will be like Re in the eastern sky, like Osiris in the netherworld. He will go down to the circle of fire, without the flame touching him ever!
The Book of Two Ways 
A few coffins from the Middle Egyptian necropolis of el-Bersheh (Deir el-Bersha) contain unique graphical representations of the realm of the afterlife, along with spells related to the journey of the deceased through the Duat. This collection, called the Book of Two Ways, was the first example of an Ancient Egyptian map of the underworld. The Book of Two Ways is a precursor to the New Kingdom books of the underworld as well as the Book of the Dead, in which descriptions of the routes through the afterlife are a persistent theme. The two ways depicted are the land and water routes, separated by a lake of fire, that lead to Rostau and the abode of Osiris.
See also 
- Raymond O. Faulkner, "The Ancient Egyptian Coffin Texts", ISBN 0-85668-754-5, 3 vols., 1972-78.
- The Ancient Egyptian Books of the Afterlife, Erik Hornung, ISBN 0-8014-8515-0