A thanksgiving for deliverance from danger.
The psalmist, once near death, praises God for raising him up.
He recalls that anger lasts but a moment, favour for a lifetime.
The psalm closes with renewed gratitude and joy: mourning is turned into dancing.