The four social classes are known as varṇas.
The three higher classes (Brahmins, kṣatriyas, vaiśyas) were called dvija (= “twice-born”) because males in these classes undergo a ritual to become adult members of society (whereas their actual birth from their mothers is their “first” birth).