Meaning: The sentence describes the powerful sound of waves crashing on the shore, comparing it to thunder.
Choice of Words: Waves are powerful and make a loud noise when they crash against the shore. Thunder is also loud and powerful. Comparing the two creates a vivid image.