Vyasa Dictates, Ganesha Writes the Mahabharata
व्यास बोले, गणेश ने लिखा: महाभारत का लेखन
Dvāpara Yuga
5,128 years ago
Śveta-Vārāha kalpaVaivasvata manvantara28th mahāyugaDvāpara Yuga
In short
According 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.
Who wrote the Mahabharata: Vyasa or Ganesha?
Tradition says the sage Vyasa composed the Mahabharata and that Ganesha wrote it down as Vyasa spoke. Vyasa, also called Krishna Dvaipayana, the "dark one born on an island", was the son of Satyavati and the rishi Parashara, born on an island in the Yamuna. The epic's opening chapter, which you can read in K. M. Ganguli's English translation on Dharmasthan as Mahabharata, Adi Parva, section 1, says he had shaped the whole poem in his mind before a word was written.
That poem holds the story of the Kurus and the Pandavas, the war at Kurukshetra, and the teaching of dharma woven through both. Vyasa had finished it and was wondering how to teach it to his disciples when help arrived from the highest quarter.
What is the story of Vyasa dictating to Ganesha?
Brahma himself came to where Vyasa sat, praised the poem, and told the sage to call Ganesha to mind as its writer. The epic says Brahma esteemed Vyasa's knowledge of divine mysteries and declared that no poet's work would equal the descriptions in this poem. Then he returned to his own abode.
Vyasa thought of Ganesha, and the remover of obstacles, as the epic calls him, appeared as soon as he was remembered. Vyasa asked him to be the writer of the Bharata. Ganesha agreed on one condition: his pen must not cease writing for even a moment. Vyasa set a condition of his own: wherever Ganesha did not understand a verse, he must stop writing. Ganesha said Om and began.
Vyasa then made the bargain hard to keep. For sport, the epic says, Vyasa knit the knots of his composition very close. Even the all-knowing Ganesha paused to consider such a verse, and in that pause Vyasa composed many more. The bard Sauti (Ugrashrava), who tells the story, says he knows 8,800 of these closely knit verses, and so does Shuka, and perhaps Sanjaya. Tradition calls them vyāsa-kūṭa, Vyasa's riddles.
Why did Brahma choose Ganesha as the scribe?
The epic gives no reason beyond Brahma's instruction, but it names Ganesha as the remover of obstacles who fulfils the wishes of those who call on him. A poem of this size needs a beginning that no obstacle can block, and he is the god of beginnings. The two conditions also balance each other: Ganesha's pen must keep moving, and Vyasa's verses must be understood. Each holds the other to a standard, so the poem was not set down carelessly.
For a devotee the lesson is plain. The seer who sees the whole and the god who clears the path sat down together, and the epic reached the world. For a reader, the story is also a reminder that the Mahabharata asks to be understood, not only recited.
Did Ganesha break his tusk to write the Mahabharata?
The Mahabharata's own account never mentions a tusk. In popular retellings and paintings, Ganesha's pen breaks and he snaps off one of his tusks to keep writing, so that his promise never to pause holds. That detail belongs to later tradition, and the epic does not say it. You can read other stories about the tusk in Why is Ganesha's tusk broken? on Dharmasthan.
When was the Mahabharata written, and is the Ganesha passage original?
Tradition places Vyasa's composition at the close of Dvapara Yuga, around the time of the Kurukshetra war and just before Kali Yuga, which the common reckoning begins in 3102 BCE. Modern scholars see the text growing over several centuries, roughly from 400 BCE to 400 CE, and treat the date of the war itself as uncertain. The epic says Vyasa rose each day, purified himself and performed his devotions, and finished the work in three years (Adi Parva, section 62).
The Ganesha passage is not found in every manuscript. Scholars at the Bhandarkar Oriental Research Institute in Pune, who prepared the critical edition of the epic, did not find it in many old manuscripts, and V. S. Sukthankar's edition of the Adi Parva prints it in an appendix rather than in the main text. Ganguli's translation, which follows the common printed text, keeps it in chapter 1.
The epic also describes its own growth. Vyasa first made a Bharata of 24,000 verses without the side stories, then a summary of 150 verses, and later a far larger work. Sauti says one hundred thousand of its verses are known among humans. The epic's own opening invocation bows to Narayana, Nara and the goddess Saraswati, and the Ganesha scene comes only afterwards.
How is the story remembered today?
Today the story is retold whenever a family opens a new account book, a child starts lessons or a writer begins a manuscript with Shri Ganeshaya namah. Ganesha is worshipped as the patron of learning and the written word, first among the gods in every puja. You can honour him with the Ganesh Chaturthi festival, sing the aarti Sukhkarta Dukhharta, or chant Om Gan Ganapataye Namah; both are linked below.
Vyasa is honoured on Guru Purnima, the full moon of Ashadha, which is also called Vyasa Purnima. Read why Guru Purnima is celebrated, and the companion story of how Vyasa divided the one Veda into four.
In Mana village near Badrinath in Uttarakhand, pilgrims are shown a Vyas Gufa (cave) and a Ganesh Gufa nearby, where local tradition says the epic was spoken and written. That is a local tradition of place; the opening chapter itself names no location.
Where this sits in time
this moment now
Within this kalpa
Within this mahayuga
Within recorded history
Traditions differ
Śveta-Vārāha kalpa › Vaivasvata manvantara › 28th mahāyuga › Dvāpara Yuga
Ganguli’s translation of the vulgate, the text on Dharmasthan, has Gaṇeśa as Vyāsa’s scribe in Ādi Parva 1. The Pune (BORI) critical edition, finding the passage absent from many manuscripts, prints it in an appendix rather than the main text.
In the scriptures
Continue in Dharmasthan
- Read the scriptureMahabharata, Adi Parva 1: Brahma sends GaneshaAdi Parva · Section 1
- Read the scriptureMahabharata, Adi Parva 62: Vyasa completes the workAdi Parva · Section 62
- Deity pageGanesh
- Read the storyWhy Is Ganesha’s Tusk Broken?Ganesh
- Festival and muhūratGuru PurnimaNext: 18 July 2027
- Read the storyWhy Is Guru Purnima Celebrated?Guru Purnima
- Festival and muhūratGanesh ChaturthiNext: 10 February 2027
- MomentVyasa Divides the One Veda into Four
- Sing the hymnSukhkarta Dukhharta Aarti
- PlaylistGaneshotsav Morning Aarti
- Start a japChant Om Gan Ganapataye Namah
- Read the storyHow Did Ganesha Write the Mahabharata?Ganesh
Questions people ask
›Who wrote the Mahabharata, Ganesha or Vyasa?
Vyasa composed the Mahabharata, and Ganesha wrote it down as Vyasa dictated, according to the opening chapter of the Adi Parva. Tradition therefore credits the poem to Vyasa and the writing to Ganesha, though many old manuscripts do not contain this passage.
›What were the conditions Ganesha and Vyasa agreed on?
Ganesha agreed to write on condition that his pen never stop writing, even for a moment. Vyasa answered that Ganesha must not write any verse he had not understood. Vyasa used this by composing deliberately tangled verses, which gave him time to compose more.
›Did Ganesha break his tusk to write the Mahabharata?
Popular retellings and paintings say Ganesha broke off a tusk to keep writing when his pen failed. The Mahabharata’s own account does not mention a tusk; that detail comes from later tradition.
›Is the story of Ganesha writing the Mahabharata in the epic itself?
Yes, in the first chapter of the Adi Parva in the common printed text that K. M. Ganguli translated, which is the version on Dharmasthan. Many old manuscripts lack it, so the Pune critical edition prints it in an appendix.
›How long did Vyasa take to compose the Mahabharata?
The Adi Parva says Vyasa finished the work in three years, rising every day, purifying himself and performing his devotions. It also says he first composed a Bharata of 24,000 verses without the side stories, and later a far larger version.
›What are the 8,800 knotty verses of the Mahabharata?
The bard Sauti says he knows 8,800 verses whose meaning is so closely knit that few can penetrate them, and that Shuka and perhaps Sanjaya know them too. Tradition calls them Vyasa’s riddles (vyasa-kuta); they are the verses that made Ganesha pause.
Sources
On Dharmasthan
Scripture and scholarship
- Mahabharata, Adi Parva 1 (vulgate): Brahma sends Ganesha as Vyasa’s scribe
- Mahabharata, Adi Parva 62 (Ganguli numbering): Vyasa completes the work in three years
- Kisari Mohan Ganguli, The Mahabharata of Krishna-Dwaipayana Vyasa (1883–1896)
- V. S. Sukthankar (ed.), The Mahabharata: The Adiparvan, critical edition (Bhandarkar Oriental Research Institute, Poona, 1933), which places the Ganesha passage in an appendix