The Coffin Texts are a collection of ancient Egyptian funerary spells written on coffins beginning in the First Intermediate Period. They are partially derived from the earlier Pyramid Texts, reserved for royal use only, but contain substantial new material related to everyday desires, indicating a new target audience of common people. Ordinary Egyptians who could afford a coffin had access to these funerary spells and the pharaoh no longer had exclusive rights to an afterlife.
As the modern name of this collection of some 1,185 spells implies, they were mostly inscribed on Middle Kingdom coffins. They were also sometimes written on tomb walls, stelae, canopic chests, papyri and mummy masks. Due to the limited writing surfaces of some of these objects, the spells were often abbreviated, giving rise to long and short versions, some 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 the deity 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.