When a pharaoh would go to the afterlife their heart would have to get weighed to see if you were a good or bad pharaoh. In the Hall of Ma'at they would weigh your heart against the Feather Of Truth. If your heart was heavy,Ammit, the Devourer; part lion, part hippo and part crocodile would eat your heart while Thoth would write everything down and made sure the weighing was fair. Then Anubis would take the soul to the afterlife.