What is the meaning of Self-righteous?

Piously self-assured and smugly moralistic.

Source: wiktionary.org