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