According to legend, Lord Shiva transformed a human boy into an elephant-headed god after his own father beheaded him. This transformed child later became known as Lord Ganesha - the remover of all obstacles.