When two words with different meanings are spelled the same or pronounced the same or both, they’re known as homonyms.