A metaphor is a figure of speech that refers to one thing by means of another thing.
For other forms of figurative language, use the figure-of-speech tag.
See the "Metaphor" article in the Stanford Encyclopedia of Philosophy for a helpful orientation to the analysis and discussion of metaphor.