A metaphor is a figure of speech that, for rhetorical effect, directly refers to one thing by mentioning another. It may provide clarity or identify hidden similarities between two ideas.
A simile is a figure of speech that directly compares two things. Similes differ from metaphors by highlighting the similarities between two things through the use of words such as "like" and "as", while metaphors create an implicit comparison.