David carried a deep dark secret in his heart which until it was confronted and confessed caused deep inner turmoil (see Ps. 32). When he finally dealt with it he experienced spiritual restoration and renewal. How, exactly, this came about is outlined in this Psalm for our benefit.