Code-switching is the practice of shifting between different languages, dialects, or registers depending on the social context or audience. It illustrates how individuals manage multiple identities in discourse. For example, a bilingual speaker might use one language at home and another at work, signaling different cultural or social identities in each context. Discourse analysis examines how these shifts in language reflect the negotiation of various identities.