Projection is a defense mechanism that occurs when someone unconsciously places their thoughts, feelings, emotions, or behaviors onto others. For example, if they often get jealous, they might accuse you of being the jealous one, even when there’s no basis for it.