The Mahabharata in its current form has eighteen sections, of which the first section establishes the context of the rivalry between the Pandavas and the Kauravas. The next three build up to the war. Then come six sections describing the war in detail, followed by eight sections describing the emotional, material and spiritual consequences of the war.