Cognitive dissonance is created when a person holds two or more contradictory beliefs, values, or ideas. This can happen when new information is introduced that contradicts existing beliefs, or when a person is faced with a decision that goes against their values or principles.
Cognitive dissonance can be created in several ways:

- Information inconsistency: When a person encounters information that is inconsistent with their existing beliefs or values, it creates cognitive dissonance. For example, if someone strongly believes that a particular political candidate is the best choice for a position, but then learns about some unethical behavior, it can create cognitive dissonance.
- Decision-making: When a person is faced with a decision that goes against their values or principles, it can create cognitive dissonance. For example, if someone values honesty but is put in a situation where they feel they have to lie to protect someone’s feelings, it can create cognitive dissonance.
- Belief disconfirmation: When a person’s beliefs are challenged or disconfirmed, it can create cognitive dissonance. For example, if someone believes that a particular diet is the best way to lose weight, but then gains weight despite following the diet, it can create cognitive dissonance.
- Effort justification: When a person puts a lot of effort into something that doesn’t have a positive outcome, it can create cognitive dissonance. For example, if someone spends a lot of time and money on a project that ultimately fails, it can create cognitive dissonance.
In all these cases, cognitive dissonance arises when a person’s beliefs, values, or ideas are challenged or contradicted in some way. This can create a sense of discomfort or tension, which motivates the person to resolve the inconsistency by changing their beliefs, values, or ideas, or by rationalizing their behavior to reduce the dissonance.