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