You know,the exact reason why we suffered losses and utter humiliation in the hands of the Central Asian barbarians was casteism in the Indian society and the lack of unity among the Dharmic rulers to a certain extent.Cateism was the primary cause which led to our downfall.It made the Khatriyas or Rajputs responsible for the defense of this country and prohibited other castes to pick up arms even during the time of foreign invasions.Rajputs were brave but they were always inferiors in numbers and hence lost most of the battles.Number was itself a huge factor in those days.If common people were allowed to join the armies during that period then the outcome would have been totally different.
The Marathas were successful only because they chose to ignore the rules laid by casteim and instead allowed everyone to join the army irrespective of their castes.Hence,despite having a small population at that period they were able to field large armies against the Islamic invaders.The only time when they suffered a major defeat it was luck that played a major role in favor of Ahmed Shah Abdali at the 3rd battle of Panipat,otherwise they would have definitely shown Mr.Abdali his real place in this world
.
Marathas were the pioneers of guerilla warfare in India,they showed the rest of us that numbers didn't matter if we played by our strength and choose to engage our enemies on our terms