user
What type of figurative language is used in the following sentence?

He was as hungry as a bear.

assistant
This sentence uses the simile of comparing someone to a bear to express how hungry he was.