Why do we need defence mechanisms?
Constant disagreements between the id and the superego can lead to a lot of anxiety.
So the ego develops methods for defending you from being overwhelmed
Anxiety weakens the ego so these mechanisms protect it
They all involve some distortion of reality so lead to damage to our psychological health as a long term solution.