What is the meaning of Self-righteousness?

Confidence in one's own righteousness, self-assurance, smug.

Source: wiktionary.org