Defence mechanism
In psychoanalytic theory, defense mechanisms are unconscious psychological processes that protect the self from anxiety-producing thoughts and feelings related to internal conflicts and external stressors. Defences are automatically used to protect ourselves from threats and affects to maintain psychological balance and homeostasis.