What type of figurative language is used in this excerpt?
“The waves rose mountains high, as if they would have overtopped the mast.”