What is the Definition of a Metaphor?

A metaphor is a figure of speech. It’s a non-literal comparison of two things saying that one thing is another. ‘All the world’s a stage’ -Shakespeare. With this example you clearly know the world isn’t literally a stage.