Defense mechanisms are unconscious psychological strategies that individuals use to protect themselves from anxiety and maintain their self-esteem. These mechanisms are employed by the ego to manage conflicts between the demands of the id, superego, and reality.