The end of the Pandavas

Beholding the carnage, the noble mother of the Kauravas, Gandhari who had lost all her sons, curses Krishna to be a witness to a similar annihilation of his family, for though divine and capable of stopping the war, he had not done so. Krishna who had incarnated precisely to destroy the wicked kings accepts the curse, which bears fruit 36 years later.

He then departs from the world and the Pandavas who had ruled righteously all along, now tired, decide to renounce everything. Clad in skins and rags they retire to the Himalayas and ascend the peaks towards heaven in their bodily form. Legend reveals that a mangy, stray dog travels along with them.

One by one the Pandavas and Draupadi fall on their way. As each one stumbles, Yudhishtra gives the rest the reason for their fall (Draupadi was partial to Arjuna, Nakula and Sahadeva were vain and proud of their looks, Bhima and Arjuna were proud of their strength and archery skills, respectively).

Only the virtuous Yudhisthra who had tried everything to prevent the carnage and the dog remain. The dog reveals himself to be the god Dharma, who reveals the nature of the test and assures Yudhishtra that his fallen siblings and wife are in heaven. Yudhistra alone transcends to heaven in his bodily form for being just and humble.

Arjuna's grandson Parikshita rules after them and dies bitten by a snake. His furious son, Janamejaya, decides to perform a snake sacrifice (sarpasattra) in order to destroy the snakes. It is at this sacrifice that the tale of his ancestors is narrated to him