Confounding occurs when the confounder is unevenly distributed across the groups being compared. For example, if a study compares the health outcomes of smokers and non-smokers, age could be a confounder if older individuals are more likely to smoke and also more likely to have health issues.