An interaction effect occurs when the effect of one independent variable on a dependent variable differs depending on the level of another independent variable. This indicates that the variables do not operate independently but rather influence each other's impact on the outcome.