What does God do for us in baptism?

'washes away all of our sins and forgives us because we're detacating our lives to him