Rise to prominence

His classic form appears in the 4th and 5th centuries. Scholars still debate what came before.

First appearance

For so popular a god, Ganesha arrives late. Images that are unmistakably his, with the features we know today, begin only in the 4th and 5th centuries AD. Shanti Lal Nagar names a carving in a niche of the Shiva temple at Bhumra, from the Gupta period, as the oldest cult image found so far. By about the 10th century he had a sect of his own.

Where was he before that? Here faith and scholarship part ways. Devout Hindus trace him back to the Vedas and accept the Puranic stories of his birth. The historian A. K. Narain found no convincing sign of him before the 5th century, and was struck by how suddenly he appears and how quickly he was embraced across regions and sects.

Seated two-armed Ganesha carved in reddish rock, his trunk turned towards his left hand
An early Ganesha in the Badami caves, Karnataka, 6th century

Possible influences

Many people have tried to fill the gap. One popular theory says that he began as a tribal totem or as the god of an elephant cult outside the Brahmin tradition. Paul Courtright rejects it. To him it rests on an old assumption, that whatever is missing from the Vedas must have come from Dravidian or aboriginal peoples, and neither archaeology nor any other source has produced evidence of such a cult.

Anita Raina Thapan looked closely at the place of elephants in early India. Elephant-headed spirits, or yakṣas, did exist by the 2nd century AD, but she warns against taking them for Ganesha. Nothing from that time links his name with an elephant’s head.

A different theory starts from a name. The four Vināyakas were mischievous demons who put difficulties in people’s way but were easy to appease. Vināyaka later became one of Ganesha’s names, so he may have grown out of them. Yuvraj Krishan is firmly of this opinion. He holds that Ganesha is not a Vedic god at all and descends from the Vināyakas of the Mānavagṛhyasūtra, a text of the 7th to 4th century BC.

Vedic and epic literature

The Rig Veda

The word gaṇapati is in the Rig Veda, twice, but it is a title there, “leader of the group”, and it belongs to other gods.

The first passage, RV 2.23.1, begins gaṇānāṃ tvā gaṇapatiṃ havāmahe. It calls on Brahmanaspati, or Bṛhaspati, the teacher of the gods, as chief of the heavenly companies and wisest of the wise. Ludo Rocher insists that it can refer to nobody else. Even so, worshippers later made the verse their own, and it is still recited to Ganesha today.

The second, RV 10.112.9, is addressed to Indra. It invites him, as lord of the companies, to take his seat among his worshippers.

The Mahabharata

A much-loved legend makes Ganesha the scribe of the Mahabharata. The sage Vyasa needed someone to write down his poem. Ganesha agreed on one condition: the recitation must never stop. Vyasa kept his side of the bargain with a trick. Whenever he needed a rest he composed a verse so difficult that Ganesha had to ask what it meant.

The tale suits a god of intellect, but it is not part of the original epic, and it is the only place in the poem where he appears. The editors of the critical edition moved its twenty lines to a note in an appendix. Richard L. Brown places the story in the 8th century. Moriz Winternitz thought that it was in circulation by about 900 but took another century and a half to enter the text. He also noticed that manuscripts from the south leave it out.

The Puranic period

The Puranas are where Ganesha’s mythology really takes shape. There are a great many stories, but Rocher observed that they keep circling the same three subjects: how he was born and to whom, how he got his elephant’s head, and how he lost a tusk.

Krishan dates the tales of his birth and his head to the later Puranas, written from about 600 AD. Where older works such as the Vayu and Brahmanda Puranas mention him, the lines are thought to have been added between the 7th and 10th centuries.

His standing was sealed in the 9th century. The philosopher Śaṅkarācārya popularised pañcāyatana pūjā among Brahmins of the Smārta tradition, a form of worship that honours five deities as equals: Ganesha, Vishnu, Shiva, Devī and Sūrya. His aim was to bring rival sects together. Worshippers could pick any of the five as their own and revere the others as faces of the same Brahman.

For some Brahmins the choice was Ganesha. From their devotion grew the Ganapatya tradition, with the Ganesha Purana and the Mudgala Purana as its scriptures.