The war between Pandavas and Kauravas went on for 18 days. In the end, Pandavas won the battle. The eldest of Pandavas, Yudhishthira became the king of Hastinapur. Yudhisthir became a righteous and duty-conscious King.