Figure of speech
Metaphor—an explanation of an object or idea through juxtaposition of disparate things with a similar characteristic, such as describing a courageous person as having a "heart of a lion".