Cognitive dissonance theory, developed by Leon Festinger in 1957, describes the discomfort individuals experience when holding contradictory beliefs or when their behavior conflicts with their values. This theory suggests that people are motivated to reduce this dissonance through various defense mechanisms, such as changing their beliefs or behaviors, to maintain cognitive consistency. Cognitive dissonance is viewed as an unpleasant mental state that drives individuals to seek harmony among their cognitions.