People were divided into four groups by the priests. These groups were called varnas . According to the priests , each varna had a different set of functions and these groups were decided on the basis of birth. Many people did not accept the system of varna laid down by the brahmins . So people oppose the system of varnas.