According to Hindu mythology, there are two different versions of the birth of Lord Ganesha. In one version, Goddess Parvati created a boy from the oozing of her body and gave life to him. She ordered him not to let anyone enter until she returned after taking a bath. When Lord Shiva returned, Ganesha did not recognize him and prevented him from entering, which led to a conflict between them. Enraged Shiva beheaded Ganesha, but later brought him back to life using the head of an elephant. In another version, Ganesha was created by Lord Shiva himself to guard the entrance of Parvati's palace.