Stratified analysis is a statistical method used in epidemiology to control for confounding by dividing a dataset into subgroups, or strata, based on certain characteristics such as age, gender, or exposure level. This allows researchers to examine relationships within each stratum, thereby providing a clearer understanding of the association between exposure and outcome.