Direct effect pertains to the portion of the total effect of an exposure on an outcome that occurs independently of any mediating factors. This is in contrast to the indirect effect, which operates through one or more intermediate variables. For instance, consider a study examining the relationship between smoking and lung cancer. The direct effect would be the influence of smoking on lung cancer risk not mediated by other factors such as chronic bronchitis.