David begins by appealing not to his merits but to God's character: have mercy on me, O God, according to your steadfast love; according to your abundant mercy blot out my transgressions. He asks to be washed from his iniquity and cleansed from his sin. He acknowledges his sin: I know my transgressions, and my sin is ever before me. Against you, you only, have I sinned and done what is evil in your sight, so that God is justified in his words and blameless in his judgment. He admits that he was brought forth in iniquity and that in sin his mother conceived him, expressing that his problem is deeper than an isolated act.
Then he asks for cleansing and renewal: purge me with hyssop, and I shall be clean; wash me, and I shall be whiter than snow. Let me hear joy and gladness, hide your face from my sins and blot out all my iniquities. Create in me a clean heart, O God, and renew a right spirit within me. Do not cast me away from your presence and do not take your Holy Spirit from me. Restore to me the joy of your salvation and uphold me with a willing spirit.
After that he promises to serve: I will teach transgressors your ways, and sinners will return to you. Deliver me from bloodguiltiness, O God, and my tongue will sing aloud of your righteousness; open my lips, and my mouth will declare your praise. He acknowledges that God does not delight in sacrifice or burnt offering: the sacrifices of God are a broken spirit; a broken and contrite heart God will not despise. The psalm ends with a prayer for Zion: do good to Zion in your good pleasure; build up the walls of Jerusalem; then you will delight in right sacrifices.