Hello there!
The answer to your question is: A simile.
A simile is a the comparison between the subject of the sentence, and the thing it's getting compared to. You can usually spot a simile when you see the words like 'like and as, at the end of the subject and beginning of the thing it's getting compared to.
Hopes this helps you!
~+Darlington+~