Lord Ganesha was created by goddess Parvati consort of Lord Shiva. Pravati created Ganesha out of sandalwood paste that she used for her bath and breathed life into the figure. She then set him to stand guard at her door while she bathed. Lord Shiva, who had gone out, returned and as Ganesha didn't know him , didn't allow him to enter. Lord Shiva became enraged by this and asked his follower Ganas to teach the child some manners. Ganesha who was very powerful, being born of Parvati, the embodiment of Shakti. He defeated Shiva's followers and declared that nobody was allowed to enter while his mother was bathing. The sage of heavens , Narada along with the Saptarishis sensed the growing turmoil and went to appease the boy with no results. Angered, the king of Gods, Indra attacked the boy with his entire heavenly army but even they didn't stand a chance. By then, this issue had become a matter of pride for Parvati and Shiva. Angry Shiva severed the head of the child. Parvati seeing this became enraged. Seeing parvati in anger Shiva promised that her that her son will be alive again. The devas searched for the head of dead person. But they found only the head of a dead elephant. They brought the head of the elephant and Shiva fixed it on the child's body and brought him back to life. Lord Shiva also declared that from this day the boy would be called Ganesha (Gana Isha : Lord of Ganas).