The Hindus were divided traditionally into four castes, of whom the Brahmins were the highest, being devoted to a life of spirituality and study. Next came the Kshatriyas, who were the rulers, warriors, and administrators. The Vaishyas were the middle classes and the Shudras the laborers. The castes were not at first exclusively hereditary, but since each caste married within itself, even the law of heredity made them so practically. In course of time they became strictly so and also subdivided into hereditary sub-castes, largely on a professional basis, like medieval guilds in Europe. Also they tended to abandon their caste functions and engage in those of other castes. Today caste has little functional meaning. The Indian government is trying to destroy it.