Puranic tradition
Parvati fashions a boy from turmeric paste to guard her door. When he bars Shiva, who does not know his own son, Shiva strikes off his head in fury, then, to console Parvati, restores him to life with the head of an elephant.