When there are groups within the same society with distinctive sets of beliefs

When there are groups within the same society with distinctive sets of beliefs and behaviors related to different occupations or ancestry, we call these __________.​