In India, Kshatra Dharma was very much prevailing during Vedic times. Kshatra Dharma is not limited to ruling the kingdom, but it includes protecting the kingdom too. Warrior caste in India assumed the responsibility of defending the country from enemies.
Indian science of warfare was a well-developed knowledge. Many ancient institutions in India had imparted that knowledge to the students. Yuddha Vidya or Yuddha Sastra had recognized two kinds of warfare. One is Dharma Yudda. The second kind is Kutila Yuddha.