In essence the defense mechanisms are

Ways of convincing others of ones rightness

Defense against anxiety

Conscious self-deception

Escape reactions