The occasion of this Psalm may well have been Sennacherib's siege of Jerusalem, when Isaiah's assurance that God would defend Zion was marvellously fulfilled. Whether the people of Israel had gone through an actual storm is not known. Perhaps they did experience an earthquake with its trembling mountains and roaring waters. Perhaps enemies attacked the land, burning and pillaging, ravaging and killing. Whatever the trouble, the psalmist looks to God, whose presence brings peace in the midst of the storm.
Some storms come our way too.
They may be personal sickness, poverty, and the loss of a loved one. His presence brings peace to the troubled hearts. In every time of trouble, O Lord, show Yourself a very present help.