Baba god of Virility
The baboon was also admired in Egypt for its intelligence and also for its sexual virility. Baboon faeces were an ingredient in Egyptian aphrodisiac ointments. His virility is reflected in myths about Baba. One myth tells that his phallus was the bolt on the doors of heaven another that the ferryboat in the Underworld ferryboat used the phallus of Baba as its mast. Baba was considered the god of virility of the dead and was offered prayers in order to ensure that an individual would not suffer from impotence after death. In different versions of the Book of the Dead there were spells to ensure successful sexual intercourse in the Afterlife.
Hermopolis (Khnum) - The Cult Center of Hedjwer, Baba and Thoth
The city of Hermopolis (Khnum) was an important religious center in ancient Egypt and was the cult center of Baba during the middle period of the Old Kingdom when his followers ousted the previous baboon deity, Hedjer. Many years later in the Late Period the city of Hermopolis then became the cult center of the famous god Thoth. Many of the gods of the ancient Egyptians were subsumed (meaning absorbed) into new deities. The practice of creating new deities, by combining them with the attributes of old gods, is called 'syncretism'. It is possible that this was the case with Hedjwer, Baba and then Thoth.
Baba and Thoth
According to ancient Egyptian mythology Thoth is connected with baboons but it is unclear that Thoth the god was actually represented as a baboon, as most would suggest. Given the history of Hermopolis and its strong association with baboon gods it seems logical that the tradition continued, by connecting Thoth with the baboon.
Baba the Executioner
The baboon connections to Thoth and the Underworld appear in many instances to relate to the dark god Baba rather than Thoth the god of knowledge and wisdom. Baba was believed to feed on human entrails so protective spells were required when the function of Baba the baboon god was believed to be that of a punisher and executioner in the Underworld, similar to that adopted by the later goddess called Ammit, the 'Devourer of the Dead'.
Baboons in the Underworld
Other depictions of baboons in the Underworld are as helpers or subsidiaries of Thoth. One of the Four Sons of Horus, Hapy was a funerary deity and protected the lungs of the deceased. Hapy was depicted as a mummified man with the head of a baboon and protected the lungs that were contained in a Canopic jar. Hapy was not connected with Thoth as he was under the protection of Nephthys, the goddess of the dead and divine assistance