The Rig Veda prescribed a social order of the four varnas: Brahmins, Kshatriyas, Vaishyas and Shudras; and arranged them in a rigid hierarchy. This hierarchy laid the foundation for thousands of years of caste discrimination in Indian society. It eliminated social mobility and enabled the marginalisation and exclusion of the so-called lower castes.