The Mahabharata is one of the two major Sanskrit epics of ancient India and is attributed to the sage Vyasa. It recounts the story of a dynastic struggle between two groups of cousins for the kingdom of Kuru. The epic explores philosophical and spiritual ideas including dharma and moksha through the lives and actions of its characters. After attempts to make peace fail, a great 18 day battle ensues between the Pandava and Kaurava cousins in which many are killed, concluding the epic.