Confounding variables can distort the apparent relationship between the exposure and outcome. Techniques to handle confounding include stratification, where the data are divided into subgroups based on the confounder, and multivariable regression, where multiple variables are included in the model to adjust for their effects.