A synonym is a different word with the same meaning. A homonym is the same word with a different meaning.