How to Ask God for Forgiveness

We all need forgiveness, but how can we get it? What does the Bible say about asking God to forgive us? How should we do it? What steps can we take?