Matching is a technique used in epidemiology to control for confounding variables in observational studies. By matching participants in the study group with those in the control group based on certain characteristics, researchers aim to isolate the effect of the exposure or intervention being studied.