Self-righteousness is a display or state of moral arrogance; the quality of someone who believes himself or herself to be morally (and, oftentimes, intellectually) superior to either a single individual or a group of individuals.
Those who are self-righteous often act in
invidious, contemptuous, and
unapologetic ways towards their targets.