Ganesha (also Ganesa or Ganapati) is one of the most important gods in Hinduism. Ganesha is easily recognized with his elephant head and human body, representing the soul (atman) and the physical (maya). Ganesha is the patron of writers, travellers, students, and commerce, and he removes obstacles blocking new projects. The deity is fond of sweets, to the slight detriment of his figure.
Ganesha is also worshipped as a principal deity in both Jainism and Buddhism. For the Ganapatya Hindu sect, Ganesha is the most important deity.
Ganesha is the son of Shiva and Parvati and he is the brother of Karthikeya (or Subrahmanya), the god of war. He was created by his mother using earth which she moulded into the shape of a boy. As Shiva was away on his meditative wanderings, Parvati set her new son as guard while she bathed. Unexpectedly, Shiva returned home and, on finding the boy, and outraged at his impudence in claiming he was Parvati's son, Shiva called for his gang of demons, the bhutaganas, who fought ferociously with the boy. However, the youngster easily held his own against such fearsome adversaries and Vishnu was forced to intervene in the form of Maya and, whilst the boy was distracted by her beauty, the demons, or Shiva himself, lopped off his head.
At the commotion, Parvati ran from her bath and remonstrated with Shiva for so summarily killing their son. Repentant, Shiva ordered a new head to be found for the boy and, as the first animal available was an elephant, so Ganesha gained a new elephant head and became the most distinctive of the Hindu gods. As a reward for his great courage in fighting the demons, Shiva made Ganesha the leader of the bhutaganas, hence his name.