Externalization is an unconscious defense mechanism where a person projects their own internal characteristics onto the outside world—in particular onto other people.
For instance, a person who is overly argumentative might instead perceive others as argumentative and themselves as blameless.