What is a metaphor?

a comparison between two unlike things that uses like or as.

when nonliving thing is given human qualities

a direct comparison that does not use like or as

A metaphor is a figure of speech in which a word or phrase is applied to an object or action to which it is not literally applicable, without using like or as, in order to suggest a resemblance.