After this, Kṛṣṇa was asked by King Yudhiṣṭhira to help in constructing a suitable house to be planned by the great architect Viśvakarmā, the celestial engineer in the heavenly kingdom. Kṛṣṇa immediately called for Viśvakarmā and made him construct a wonderful city according to the desire of King Yudhiṣṭhira. When this city was constructed, Mahārāja Yudhiṣṭhira requested Kṛṣṇa to live with them a few days more to give them the pleasure of His association. Lord Kṛṣṇa accepted the request of Mahārāja Yudhiṣṭhira and remained there for many days more.
In the meantime, Kṛṣṇa engaged in the pastime of offering the Khāṇḍava forest, which belonged to King Indra. Kṛṣṇa wanted to give it to Agni, the fire-god. The Khāṇḍava forest contained many varieties of drugs, and Agni required to eat them for rejuvenation. Agni, however, did not touch the Khāṇḍava forest directly but requested Kṛṣṇa to help him. Agni knew that Kṛṣṇa was very much pleased with him because he had formerly given Him the Sudarśana disc. So in order to satisfy Agni, Kṛṣṇa became the chariot driver of Arjuna, and both went to the Khāṇḍava forest. After Agni had eaten up the Khāṇḍava forest, he was very much pleased. At this time he offered Arjuna a specific bow known as Gāṇḍīva, four white horses, one chariot and an invincible quiver with two specific arrows considered to be talismans, which had so much power that no warrior could counteract them. When the Khāṇḍava forest was being devoured by the fire-god, Agni, there was a demon of the name Maya who was saved by Arjuna from the devastating fire. For this reason, that former demon became a great friend of Arjuna, and in order to please Arjuna he constructed a nice assembly house within the city constructed by Viśvakarmā. This assembly house had some corners so puzzling that when Duryodhana came to visit this house he was misdirected, accepting water as land and land as water. Duryodhana was thus insulted by the opulence of the Pāṇḍavas, and he became their determined enemy.