Homographs are words which are spelled the same but have different meanings.
They usually appear as separate entries in a dictionary.
Examples: The man dug a well in his compound.
They worked well together.
In the first sentence, the noun well means “a spring of water”.
In the second sentence, the adverb well means “in a good manner”.