The way individuals or groups define themselves in relation to cultural, social, and historical contexts.