metaphor
noun [C or U]
an expression which describes a person or object in a literary way by referring to something that is considered to possess similar characteristics to the person or object you are trying to describe:
'
The mind is an ocean' and 'the city is a jungle' are both metaphors.
Metaphor and simile are the most commonly used figures of speech in everyday language.