According to mythology, the Four Sons of Horus each were attributed a different organ to protect. For Imsety, the liver; for Duamutef, the stomach; for Hapi, the lungs; and for Qebehsenuef, the intestines. As the heart was believed to be the resting place of the soul, it was not removed from the deceased. The brain, on the other hand, was thought to be inconsequential, so was scrambled to liquid, removed with metal hooks and then discarded. The four protected organs were removed from the body, embalmed, and then stored in their corresponding jar.
To discover more about Egyptian gods, please visit our relevant blog post: Ancient Egyptian Gods