 Initially, education was open to all and seen as one of the methods to achieve Moksha in those days, or enlightenment.As time progressed, due to a decentralised social structure, the education was imparted on the basis of varna and the related duties that one had to perform as a member of a specific caste.The "Brahmans" learned about scriptures and religion while the "Kshatriya" were educated in the various aspects of warfare.