A defence mechanism is an unconscious psychological mechanism which helps in the reduction of anxiety which arises from the unacceptable or harmful stimuli.
It also helps in the accepting the social pressure which is cause due to unhealthy consequences.
Defense mechanism also helps in the distortion of reality depending on the frequency with which it is used.