A synonym is a word or phrase that has the same or nearly the same meaning as another word or phrase, while an antonym is a word or phrase that has the opposite meaning of another word or phrase.