Mahārāja Yudhiṣṭhira was the rightful heir to his father's kingdom. But just to favor his own sons, headed by Duryodhana, Dhṛtarāṣṭra, Mahārāja Yudhiṣṭhira's uncle, adopted various unfair means to cheat his nephews of their rightful share of the kingdom. At last the Pāṇḍavas demanded only five villages, one for each of the five brothers, but that was also refused by the usurpers. This incident led to the War of Kurukṣetra. The Battle of Kurukṣetra, therefore, was induced by the Kurus, and not the Pāṇḍavas.
As kṣatriyas, the proper livelihood of the Pāṇḍavas was only to rule, and not to accept any other occupation. A brāhmaṇa, kṣatriya or vaiśya will not accept employment for his livelihood under any circumstances.