The Egyptians believed that to get to the afterlife they would have to pass through a dangerous place with perils such as monsters, boiling lakes, fires and particularly nasty snakes that spat out poison.
These evils could be overcome by the right spells and the Egyptians often wrote down the spells on paper and left them in or near the coffin. If they overcame the evils they would reach the gates of Yaru (the Egyptian afterlife) and meet their friends again.
But first they had to pass the greatest test of all in the Hall of Two Truths. This test involved weighing the heart, the only organ which had been left in the body. The heart was placed on one side of a balance and in the other side was placed the Feather of Truth: the Feather of Truth held all the lies and sins of their past life. The 3 great gods, Osiris, Anubis and Thoth, decided the result of the weighing.
If the heart passed the test then the dead person was allowed to enter the gates of Yaru but if the heart failed the test then it was eaten by a terrifying monster known as the devourer. The devourer was part crocodile, part hippopotamus and part lion and once it had eaten a heart the dead person was gone for ever.