To prevent the Pandavas from gaining time to avenge their insult, the Kauravas induced their father to invite their cousins to court to play a final game, this time the conditions being that the losing party should go into exile for thirteen years, spending twelve years in the forest and the thirteenth in some city. If their disguise was penetrated by their enemies during the thirteenth year, the exile was to be extended for another thirteen years.

Though they knew the outcome, the Pandavas accepted the second invitation, and in consequence again sought the forest, not departing without the most terrible threats against their cousins.

In the forest of Kamyaka, Yudhi-sthira studied the science of dice that he might not again be defeated so disastrously, and journeyed pleasantly from one point of interest to another with Draupadi and his brothers, with the exception of Arjuna, who had sought the Himalayas to gain favor with the god Siva, that he might procure from him a terrible weapon for the destruction of his cousins.

After he had obtained the weapon he was lifted into the heaven of the god Indra, where he spent five happy years. When he rejoined his wife and brothers, they were visited by the god Krishna and by the sage Markandeya, who told them the story of the creation and destruction of the universe, of the flood, and of the doctrine of Karma, which instructs one that man's sufferings here below are due to his actions in former and forgotten existences. He also related to them the beautiful story of how the Princess Sâvitrî had wedded the Prince Satyavan, knowing that the gods had decreed that he should die within a year; how on the day set for his death she had accompanied him to the forest, had there followed Yama, the awful god of death, entreating him until, for very pity of her sorrow and admiration of her courage and devotion, he yielded to her her husband's soul.

Near the close of the twelfth year of their exile, the princes, fatigued from a hunt, sent Nakalu to get some water from a lake which one had discovered from a tree-top. As the prince approached the lake he was warned by a voice not to touch it, but thirst overcoming fear, he drank and fell dead. The same penalty was paid by Sahadeva, Arjuna, and Bhima, who in turn followed him. Yudhi-sthira, who went last, obeyed the voice, which, assuming a terrible form, asked the king questions on many subjects concerning the universe. These being answered satisfactorily, the being declared himself to be Dharma, the god of justice, Yudhi-sthira's father, and in token of his affection for his son, restored the princes to life, and granted them the boon of being unrecognizable during the remaining year of their exile.

The thirteenth year of their exile they spent in the city of Virata, where they entered the service of the Raja,—Yudhi-sthira as teacher of dice-playing, Bhima as superintendent of the cooks, Arjuna as a teacher of music and dancing to the ladies, Nakalu as master of horse, and Sahadeva as superintendent of the cattle. Draupadi, who entered the service of the queen, was so attractive, even in disguise, that Bhima was forced to kill the queen's brother, Kechaka, for insulting her. This would have caused the Pandavas' exile from Virata had not their services been needed in a battle between Virata and the king of the Trigartas.

The Kauravas assisted the Trigartas in this battle, and the recognition, among the victors, of their cousins, whose thirteenth year of exile was now ended, added to the bitterness of their defeat.

Their exile over, the Pandavas were free to make preparations for the great war which they had determined to wage against the Kauravas. Both parties, anxious to enlist the services of Krishna, sent envoys to him at the same time. When Krishna gave them the choice of himself or his armies, Arjuna was shrewd enough to choose the god, leaving his hundreds of millions of soldiers to swell the forces of the Kauravas.

When their preparations were completed, and the time had come to wreak vengeance on their cousins, the Pandavas were loath to begin the conflict. They seemed to understand that, war once declared, there could be no compromise, but that it must be a war for extinction. But the Kauravas received their proposals of peace with taunts, and heaped insults upon their emissary.

When the Pandavas found that there was no hope of peace, they endeavored to win to their side Karna, who was really a son of Kunti, and hence their half-brother, though this fact had not been made known to him until he had long been allied with the Kauravas. In anticipation of this war, the gods, by a bit of trickery, had robbed Karna of his god-given armor and weapons. However, neither celestial artifice, the arguments of Krishna, nor the entreaties of Kunti were able to move Karna from what he considered the path of duty, though he promised that while he would fight with all his strength, he would not slay Yudhi-sthira, Bhima, and the twins.