Sociolinguistics is the descriptive, scientific study of how language is shaped by, and used differently within, any given society. The field largely looks at how a language varies between distinct social groups and under the influence of assorted cultural norms, expectations, and contexts, including how that variation plays a role in language change. Sociolinguistics combines the older field of dialectology with the social sciences in order to identify regional dialects, sociolects, ethnolects, and other sub-varieties and styles within a language.
A major branch of linguistics since the second half of the 20th century, sociolinguistics is closely related to and can partly overlap with pragmatics, linguistic anthropology, and sociology of language, the latter focusing on the effect of language back on society. Sociolinguistics' historical interrelation with anthropology can be observed in studies of how language varieties differ between groups separated by social variables (e.g., ethnicity, religion, status, gender, level of education, age, etc.) or geographical barriers (a mountain range, a desert, a river, etc.). Such studies also examine how such differences in usage and in beliefs about usage produce and reflect social or socioeconomic classes. As the usage of a language varies from place to place, language usage also varies among social classes, and some sociolinguists study these sociolects.