caste system

noun

1.
a social structure in which classes are determined by heredity