it is a simile.
a figure of speech involving the comparison of one thing with another thing, using like or as
5.6m questions
7.3m answers