A synonym is a word that has the same or nearly the same meaning as another word. For example, "happy" is a synonym for "joyful." Synonyms can be used to add variety to language and avoid repetition in writing or speech. They can also help to clarify meaning by providing alternative expressions.