Dharmasthan

India's Digital Home for Devotion

Dharmasthan
Bhakti LibraryEvents CalendarDharmaVerseJap CounterDharma AIContestsSansthas
HOST ROOM
MandalSign In
Dharmasthan

India's Digital Home for Devotion.

|| भक्ति· से ही शांति है ||

Hindu prayers, aarti and bhajan lyrics, mandals and festivals across India.

Also written as Dharma Sthan, Dharamsthan or Dharam Sthan.

Explore

  • Bhakti Library
  • Aartis
  • Bhajans
  • Devotional Songs
  • Mantras
  • Stotrams
  • Chalisas
  • Shlokas
  • Stutis & Ashtakams
  • Vrat Kathas
  • Marathi Prayers
  • Hindi Prayers
  • Sanskrit Prayers
  • Videos
  • Hindu Stories
  • Holy Books
  • Dharma AI
  • DharmaVerse
  • Events Calendar
  • By Deity
  • Festival Playlists
  • Upcoming Festivals
  • Jap Counter
  • Contests
  • Events

For Mandals

  • Mandal Login
  • Register Mandal
  • Discover Mandals
  • Donation Campaigns

About

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service
  • Consent Policy
  • Platform Admin

© 2026 Dharmasthan - devotion, in one place

Made with devotion in India

Home
Bhakti Library
Jap
DharmaVerse
  1. Home
  2. Deities
  3. Ganesh
  4. Stories of Ganesh
  5. How Did Ganesha Write the Mahabharata?
Stories of Ganesh
Englishहिंदीमराठी

Stories of Ganesh

How Did Ganesha Write the Mahabharata?

By the Dharmasthan team · Updated Saturday, 5 December 2026 · 7 sources cited

Ganesha wrote the Mahabharata as Vyasa’s scribe, says a passage in the Adi Parva: Ganesha agreed only if his pen never stopped, and Vyasa only if Ganesha wrote nothing he had not understood. The critical edition of the epic treats the passage as a late addition.

Lord Ganesha holding a modak (गणेश)

At a glance: Ganesh

Also known as
Ganesha, Ganapati, Vinayaka, Vighnaharta, Ekadanta, Gajanana, Lambodara, Vakratunda, Ganpati Bappa, Pillaiyar (Tamil Nadu)
Family
Son of Shiva and Parvati, brother of Kartikeya. Wives Siddhi and Buddhi (Shiva Purana), or Riddhi and Siddhi; sons Kshema (Shubh) and Labh. Many in South India hold him unmarried
Shown with
Elephant head with one tusk and a large belly; usually four arms holding a goad, a noose, a modak and his broken tusk or a lotus; red in colour; rides a mouse (mushak)
Worshipped on
Ganesh Chaturthi and Ganeshotsav, Ganesh Jayanti, monthly Sankashti and Vinayaki Chaturthi; Tuesday in Maharashtra, Wednesday in North India; worshipped first in every puja
Holy places
The Ashtavinayak: Morgaon, Siddhatek, Pali, Mahad, Theur, Lenyadri, Ozar, Ranjangaon; Siddhivinayak, Mumbai; Dagdusheth Halwai, Pune; Ganpatipule; Kanipakam
Ganesh aartis, bhajans and mantras →

Vyasa, Brahma and Ganesha in the Adi Parva

The story is told in the first chapter of the Mahabharata, in the form most printed editions carry (Adi Parva, chapter 1; K. M. Ganguli’s translation, Section I). Vyasa, the son of Satyavati, had composed the whole poem in his mind when Brahma, the creator, came to him. Vyasa told Brahma that the work was complete but that there was no one on earth to write it down. Brahma praised the work and told Vyasa to call Ganesha to mind for the writing of it.

Vyasa thought of Ganesha, and Ganesha came. Vyasa honoured him and asked him to be the writer of the Bharata: “लेखको भारतस्यास्य भव त्वं गणनायक”. Ganesha set a condition: he would write only if his pen never stopped for a moment. Vyasa set one in return: Ganesha must not write anything he had not understood (“अबुद्ध्वा मा लिख क्वचित्”). Ganesha agreed by saying “Om” and became the scribe.

Vyasa then won the contest by craft. The Sanskrit says that the sage, in play, tied knots into the text: verses whose meaning is hidden. There are eight thousand eight hundred such verses, the text says, which Vyasa knows, Shuka knows, and Sanjaya may or may not know (in Ganguli’s English the narrator, Sauti, says this). Whenever Ganesha, all-knowing though he was, paused for a moment to work out one of them, Vyasa composed many more. That is the whole passage, about a dozen verses long.

The tusk and the number of days

Ganesha’s broken tusk is not in this passage. The well-known telling in which Ganesha’s pen breaks and he snaps off his own tusk to keep writing is a popular addition, found in retellings and pictures, not in the Adi Parva. The Puranas give other reasons for the broken tusk, told in “Why Is Ganesha’s Tusk Broken? The Story of Ekadanta”.

No text says how many days Ganesha took to write the Mahabharata. The Mahabharata does say how long Vyasa took to compose it: “त्रिभिर्वर्षैः सदोत्थायी”, three years of unbroken work (Adi Parva 56.32 in the critical edition; Ganguli, Section LXII). The numbers of days or years for Ganesha’s writing that circulate online have no source in the texts.

What the critical edition and scholars say

The critical edition of the Mahabharata, prepared at the Bhandarkar Oriental Research Institute in Pune by comparing manuscripts from across India, leaves the whole Brahma and Ganesha passage out of its text and prints it in an appendix (Adiparvan, Appendix I, No. 1). Its editor, V. S. Sukthankar, gave the reason in his Prolegomena (1933): the episode is found only in late Northern manuscripts written in Devanagari, and it is missing from the Southern recension and from the Bengali version. Sukthankar called the Ganesha of this passage “unquestionably a late Northern intruder”.

Sukthankar was building on the Indologist Moriz Winternitz, who suspected in 1898 that the story was an interpolation (“Ganesa in the Mahabharata”, Journal of the Royal Asiatic Society). Winternitz pointed out that it was missing from a South Indian manuscript in Grantha script and from Kshemendra’s Bharatamanjari, a summary of the epic written in Kashmir about 1050. Georg Bühler disagreed, holding that what a summary leaves out proves little. With the manuscripts collated for the critical edition in hand, Sukthankar sided with Winternitz.

Winternitz thought the legend itself older than its place in the epic. The poet Rajashekhara, writing about 900, has an early scene in his play Balabharata in which Vyasa tells Valmiki that Ganesha, son of Shiva and Parvati, half man and half elephant, won by Vyasa’s austerities, is his scribe. In Rajashekhara’s version Ganesha lays the trap: if Vyasa cannot compose as fast as Ganesha writes, the delay will be Vyasa’s obstacle. Vyasa answers “Om, so be it”, and adds that Ganesha must write only what he has grasped (Winternitz, JRAS 1898). Winternitz also looked for the scribe story in the Ganesha Purana and in the Ganapati Khanda of the Brahma Vaivarta Purana, and did not find it there.

Where the story is remembered today

Pilgrims to Badrinath in Uttarakhand are shown two caves at Mana village nearby: Vyas Gufa, where Vyasa is said to have composed the Mahabharata, and Ganesh Gufa close to it, where Ganesha is said to have written it down. That is pilgrimage tradition, which the Ministry of Tourism’s Incredible India guide repeats; the Mahabharata itself does not say where it was written.

The story is loved because it fits Ganesha’s place as the god of learning as well as of beginnings: a scribe who would not write a word he had not understood. In Maharashtra the same idea runs through daily custom. Many people head a new notebook, a letter or an account book with “श्री गणेशाय नमः”, and Marathi calls any new start “श्रीगणेशा करणे”, as Hindi says “श्रीगणेश करना”. The Dnyaneshwari, Dnyaneshwar’s thirteenth-century Marathi commentary on the Bhagavad Gita, which is itself part of the Mahabharata, greets Ganesha in its second verse as the light of all understanding: “देवा तूंचि गणेशु” (Dnyaneshwari 1.2). Vyasa himself is honoured on Guru Purnima, which is also called Vyasa Purnima.

Aartis and bhajans of Ganesh

  • Aala Majha Mumbaicha Raja
  • Lalbaugcha Raja (Song)
  • Sukhkarta Dukhharta
  • Jhale Bhajan (Nirop Aarti) - Aamhi Namito Tav Charan
  • Gajanana Ba Dayasagara
  • Ghalin Lotangan Vandin Charan
  • Jai Ganesh Jai Ganesh Deva
  • Parvatichya Bala (Aala Re Aala Ganpati Aala)
All Ganesh prayers →

Frequently asked questions

How Did Ganesha Write the Mahabharata?

Ganesha wrote the Mahabharata as Vyasa’s scribe, says a passage in the Adi Parva: Ganesha agreed only if his pen never stopped, and Vyasa only if Ganesha wrote nothing he had not understood. The critical edition of the epic treats the passage as a late addition.

What are the other names of Ganesh?

Ganesha, Ganapati, Vinayaka, Vighnaharta, Ekadanta, Gajanana, Lambodara, Vakratunda, Ganpati Bappa, Pillaiyar (Tamil Nadu)

What other stories are told about Ganesh?

Why Does Ganesha Have an Elephant Head? What the Puranas Say; Why Is Ganesha’s Tusk Broken? The Story of Ekadanta; Why Is Tulsi Not Offered to Ganesha? The Story of Two Curses; Why Is the Mouse Ganesha’s Vahana? The Story of Mushaka; Who Are Ganesha’s Wives? Riddhi, Siddhi and Buddhi; What Are the Ashtavinayak Temples? The Legend of Each Ganpati. Each is on Dharmasthan with its sources, in English, Hindi and Marathi.

Sources

  1. Mahabharata, Adi Parva, ch. 1 (K. M. Ganguli tr., Section I): Brahma tells Vyasa to think of Ganesha; Ganesha’s condition that his pen never stop, Vyasa’s that he write nothing he has not understood; “Om”; the knotty verses, 8,800 known to Vyasa, Shuka and perhaps Sanjaya; no tusk Read the text
  2. Mahabharata, Adi Parva, ch. 1, Sanskrit vulgate text (Wikisource): The Sanskrit of the passage: “काव्यस्य लेखनार्थाय गणेशः स्मर्यतां मुने”, “यदि मे लेखनी क्षणम्…”, “अबुद्ध्वा मा लिख क्वचित्”, the ग्रन्थग्रन्थि and “अष्टौ श्लोकसहस्राणि” (1.1.109–119 in this text’s numbering, which differs between editions) Read the text
  3. Mahabharata, Adi Parva 56.32 (critical edition) = Ganguli, Section LXII: Vyasa composed the Mahabharata in three years of unbroken work; no text gives a time for Ganesha’s writing Read the text
  4. V. S. Sukthankar, Prolegomena to The Ādiparvan, critical edition (Bhandarkar Oriental Research Institute, 1933): The Brahma–Ganesha episode is App. I, No. 1; found only in late Northern Devanagari manuscripts, absent from the Southern recension and the Bengali version; Ganesha “a late Northern intruder”; cites Winternitz 1898 Read the text
  5. M. Winternitz, “Ganesa in the Mahabharata”, Journal of the Royal Asiatic Society 1898, pp. 380–384, and his note on Bühler’s view, pp. 631–632: The legend is missing from the Grantha manuscript and Kshemendra’s Bharatamanjari (c. 1050), so likely an interpolation; Rajashekhara’s Balabharata (c. 900) already tells it; not in the Ganesha Purana or the Brahma Vaivarta Purana’s Ganapati Khanda; Bühler’s objection Read the text
  6. Incredible India (Ministry of Tourism, Government of India), “Vyas Gufa and Ganesh Gufa”: The pilgrimage tradition at Mana near Badrinath: Vyasa composed the Mahabharata in Vyas Gufa and Ganesha wrote it in Ganesh Gufa Read the text
  7. Dnyaneshwari (Bhavartha Dipika), ch. 1: Ovi 2 greets Ganesha, “देवा तूंचि गणेशु”, as the light of all understanding
✦

In the DharmaVerse

Where this story sits in time

Dvāpara Yuga(as tradition places it)

Śveta-Vārāha kalpa › Vaivasvata manvantara › 28th mahāyuga › Dvāpara Yuga

All stories of this age, in order →

The moments behind this story, placed in cosmic time as the scriptures tell it.

  • Dvāpara YugaVyasa Dictates, Ganesha Writes the MahabharataAccording to the Mahabharata’s opening chapter, the sage Vyasa dictated the epic and Ganesha wrote it down after Brahma advised Vyasa to call on him. Ganesha agreed on condition that his pen never stop; Vyasa asked that Ganesha write nothing he had not understood. Tradition places this at the close of Dvapara Yuga.Open in the DharmaVerse →

More stories of Ganesh

  • Why Does Ganesha Have an Elephant Head? What the Puranas SayGanesha has an elephant head because, in the Shiva Purana, Shiva cut off his head and the gods brought him the head of the first creature they met in the north, a single-tusked elephant. Other Puranas tell it differently: Shani’s glance, Rudra’s curse, or a face he was born with.Read the story →

    गणेश जी का सिर हाथी का क्यों है? पुराण क्या कहते हैंगणपतीला हत्तीचे तोंड का आहे? पुराणे काय सांगतात

  • Why Is Ganesha’s Tusk Broken? The Story of EkadantaGanesha has one tusk, and is called Ekadanta, because Parashurama’s axe cut off his left tusk when Ganesha stopped him at Shiva’s door, as the Brahmanda and Brahma Vaivarta Puranas tell. The Skanda Purana says instead that Ganesha pulled out the tusk himself to hold as a yogi’s staff.Read the story →

    गणेश जी का एक दांत क्यों टूटा? एकदंत की कथागणपतीचा एक दात का तुटला? एकदंताची कथा

  • Why Is Tulsi Not Offered to Ganesha? The Story of Two CursesTulsi is not offered to Ganesha because of a story in the Brahma Vaivarta Purana: the young Tulasi asked Ganesha to marry her, he refused, and they cursed each other. Relenting, Ganesha blessed her to become the plant dearest to Vishnu and Krishna, but said he would never accept her himself.Read the story →

    गणेश जी को तुलसी क्यों नहीं चढ़ाई जाती? तुलसी और गणेश की कथागणपतीला तुळस का वाहत नाहीत? तुळशी आणि गणपतीची कथा

  • Why Is the Mouse Ganesha’s Vahana? The Story of MushakaGanesha rides a mouse because, in the Ganesha Purana, his avatar Gajanana caught a giant mouse, the cursed gandharva Krauncha, with his noose and made it his vahana. In the Brahma Vaivarta Purana the Earth gives him the mouse, and the Mudgala Purana reads it as the Lord hidden like a thief in every heart.Read the story →

    गणेश जी का वाहन चूहा क्यों है? मूषक की कथागणपतीचे वाहन उंदीर का आहे? मूषकाची कथा

  • Who Are Ganesha’s Wives? Riddhi, Siddhi and BuddhiGanesha’s wives are Siddhi and Buddhi in the Shiva Purana, which names their sons Kshema and Labha; in North India they are called Riddhi and Siddhi, with sons Shubh and Labh. Many in South India hold Ganesha to be unmarried, and scholars read the wives as his own powers.Read the story →

    गणेश जी की पत्नी कौन हैं? रिद्धि, सिद्धि और बुद्धिगणपतीच्या पत्नी कोण? ऋद्धी, सिद्धी आणि बुद्धी

  • What Are the Ashtavinayak Temples? The Legend of Each GanpatiThe Ashtavinayak are eight temples of Ganesha in Maharashtra, visited in a fixed order from Morgaon to Ranjangaon and back to Morgaon. Each has its own legend, most told in the Ganesha Purana and two in the Mudgala Purana; that each happened at its village is the temple’s own tradition.Read the story →

    अष्टविनायक मंदिर कौन से हैं? आठों गणपति की कथाअष्टविनायक गणपती कोणते? आठ गणपतींच्या कथा

  • Ganesha and Kartikeya: Who Won the Race Around the World?Ganesha won the race around the world by circling his parents, Shiva and Parvati, seven times: in the Shiva Purana he argues that worshipping one’s parents equals going round the earth. Kartikeya came back to find Ganesha married and left in anger for the Krauncha mountain.Read the story →

    गणेश और कार्तिकेय की कहानी: पृथ्वी की परिक्रमा किसने जीती?गणपती आणि कार्तिकेयाची गोष्ट: पृथ्वीप्रदक्षिणा कोणी जिंकली?

  • What Are Ganesha’s 12 Names? Their Meanings and StoriesGanesha’s twelve names, in the Sankatanashana stotra ascribed to the Narada Purana, are Vakratunda, Ekadanta, Krishnapingaksha, Gajavaktra, Lambodara, Vikata, Vighnaraja, Dhumravarna, Bhalachandra, Vinayaka, Ganapati and Gajanana. The Puranas explain most of them with a story.Read the story →

    गणेश जी के 12 नाम कौन से हैं? उनके अर्थ और कथाएँगणपतीची १२ नावे कोणती? त्यांचे अर्थ आणि कथा

  • What Are the Avatars of Ganesha? Four Ages, Eight FormsGanesha’s avatars come from two medieval Puranas of his devotees: the Ganesha Purana gives him four, one for each age (Vinayaka, Mayureshvara, Gajanana and Dhumraketu), and the Mudgala Purana eight, each conquering a demon named after a vice such as envy, anger, greed or pride.Read the story →

    गणेश जी के कितने अवतार हैं? आठ अवतारों की कथागणपतीचे अवतार किती? आठ अवतारांच्या कथा

  • Festival storyWhy Is Ganesh Chaturthi Celebrated? The Birth of GaneshaGanesh Chaturthi, on Bhadrapada Shukla Chaturthi, is celebrated as Ganesha’s birthday, as tradition holds, and his greatest day of worship. The Shiva Purana tells how Parvati shaped him, how he got his elephant head and why he is worshipped first. He is welcomed at midday, and the moon is not looked at that night.Read the story →

    गणेश चतुर्थी क्यों मनाई जाती है? गणेश जी के जन्म की कथागणेश चतुर्थी का साजरी करतात? गणपतीच्या जन्माची कथा

  • Festival storyWhy Durva, Modak and Red Flowers Are Offered to GaneshaDurva, modak and red flowers are offered to Ganesha, on Ganesh Chaturthi and in every puja, because the texts of his worship ask for them: the Shiva Purana prescribes twenty-one blades of durva and vermilion, the Padma Purana tells how he won the gods’ modak, and the Atharvashirsha pictures him red.Read the story →

    गणेश जी को दूर्वा, मोदक और लाल फूल क्यों चढ़ाते हैं?गणपतीला दूर्वा, मोदक आणि लाल फुले का वाहतात?

  • Festival storyHow Ganeshotsav Became a Public Festival: Tilak and PuneGaneshotsav became a public festival in Pune in the 1890s, when neighbourhood mandals began installing Ganesha in public pandals and Lokmanya Tilak championed the idea in his paper Kesari, turning a household festival into ten days of community worship that also strengthened the freedom movement.Read the story →

    गणेशोत्सव सार्वजनिक कैसे बना? तिलक और पुणे की कहानीगणेशोत्सव सार्वजनिक कसा झाला? टिळक आणि पुण्याची कहाणी

  • Festival storyWhy Is Ganesh Jayanti Celebrated? Magha Shukla ChaturthiGanesh Jayanti, on Magha Shukla Chaturthi, is kept in Maharashtra as the birthday of Ganesha. The Shiva Purana tells how Parvati formed him and how he came to have an elephant’s head; on this day devotees offer him laddoos of sesame (til), and it is also called Tilkund Chaturthi.Read the story →

    गणेश जयंती क्यों मनाई जाती है? माघ शुक्ल चतुर्थी की कथामाघी गणेश जयंती का साजरी करतात? गणपतीच्या जन्माची कथा

All 17 stories of Ganesh →
All stories and vrat kathas →