Passage
Then the earth shook and trembled; the foundations also of the hills moved and were shaken, because he was wroth.
Then the earth shook and trembled; the foundations also of the hills moved and were shaken, because he was wroth.
Psalms 18:5 The sorrows of hell compassed me about: the snares of death prevented me.
Psalms 18:6 In my distress I called upon the LORD, and cried unto my God: he heard my voice out of his temple, and my cry came before him, even into his ears.
Psalms 18:7 Then the earth shook and trembled; the foundations also of the hills moved and were shaken, because he was wroth.
Psalms 18:8 There went up a smoke out of his nostrils, and fire out of his mouth devoured: coals were kindled by it.
Psalms 18:9 He bowed the heavens also, and came down: and darkness was under his feet.
The verse centers on "earth", "shook", "trembled", "foundations", "hills", "moved", "shaken", and "wroth". It is saying that the verse draws attention to "earth" and "shook", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 6's "In my distress I called upon the..." into verse 8's "There went up a smoke out of...", so "earth" and "shook" belong inside that flow. In Psalms context, the local focus is worship, trust, the LORD's kingship, and covenant mercy.
A plain takeaway is to answer the verse's own emphasis on "earth" and "shook" with trust shaped by these words, not by a vague optimism outside the passage.