The definition of ego defence mechanisms

Psychological forces which prevent undesirable or inappropriate impulses from entering consciousness (e.g., forgetting responsibilities that we really didn't want to do, projecting anger onto a spouse as opposed to your boss).