Cognitive Dissonance is a theory proposed by Leon Festinger in 1957. According to the theory, a state of tension arises when two cognitions are inconsistent with each other, and the person experiencing this will make corrections to one of the cognitions in order to reduce the dissonance.
Festinger, Leon. (1957). A theory of cognitive dissonance. Evanston, IL: Row, Peterson.