With a wind from the east You wrecked the ships of Tarshish.
This psalm celebrates Jerusalem's deliverance when many kings conspired against it. The prophet gives thanks and insists that God's sanctuary on Mount Zion was erected precisely so His power would be manifestly shown for His people's salvation. The historical setting is most likely the siege under Ahaz, or the invasions in the days of Jehoshaphat and Asa, when the city was brought to utter despair yet suddenly delivered.
AI summary
Commenting on Psalm 48:1-14
Thou breakest the ships of Tarshish with an east wind. As easily as vessels are driven to shipwreck, dost thou overturn the most powerful adversaries; or it may mean the strength of some nations lies in their ships, whose wooden walls are soon broken; but our strength is in our God, and therefore, it fails not; or there may be another meaning, though thou art...
The psalmist is designing to praise Jerusalem and to set forth the grandeur of that city; but he begins with the praises of God and his greatness (Psa 48:1), and ends with the praises of God and his goodness, Psa 48:14. For, whatever is the subject of our praises, God must be both the Alpha and Omega of them.
Commenting on Psalm 48:1-7