The ways in which social categories and identities are constructed and defined within societal systems and institutions.