Who Wrote Mahabharata? The Mahabharata was compiled by Srila Vyasadeva (Vedavyasa), one of the greatest sages in Vedic history. He composed this epic to preserve Vedic wisdom and explain the principles of dharma through the story of the Kuru dynasty. The Bhagavad Gita is also a part of the Mahabharata and contains Lord Krishna’s divine teachings to Arjuna. According to tradition, Lord Ganesha wrote down the verses as Vyasadeva dictated them. The Mahabharata is considered one of the world’s longest epics and remains a timeless guide to spirituality, duty, and devotion.