a word that is spelled like another word (or pronounced like it) but which has a different meaning, for example can meaning “be able” and can meaning “put something in a container”
Check pronunciation: homonym
Definition of homonym noun from the Oxford Advanced American Dictionary