The varna system was a hierarchical social structure that classified people based on their occupations and where they were born. The Brahmins were the priestly class who performed religious rituals and were in charge of knowledge transmission. The Kshatriyas were the warrior class who protected the society and engaged in warfare. The Vaishyas were the merchants who engaged in trade and commerce, while the Shudras were the labourers who did menial tasks