The Śiva Purāṇa tells how Pārvatī shaped a son from the turmeric paste of her own body and set him to guard her door. When Śiva, not knowing the boy, was refused entry, a fight followed and the boy was beheaded. To console Pārvatī, Śiva gave him the head of an elephant, brought him back to life and made him Gaṇapati, the leader of his hosts, to be worshipped first before every undertaking.
Because of this, Gaṇeśa is called Vighneśvara, the lord of obstacles, who both removes them and places them in the path of the proud. His birthday on Bhādrapada Śukla Caturthī became one of the most loved festivals of India. In 1893 Lokamānya Tilak turned the household worship into a public festival in Pune, and the ten-day Gaṇeśotsava spread from there.
