SANCTUM The Library

Why confess to a priest? Can't I just say sorry to God directly?

The sacrament of Penance holds two reconciliations together at once. Those who approach it obtain pardon from God's mercy for the offence committed against him, and are at the same time reconciled with the Church, which they have wounded by their sins. The Church, by charity, by example and by prayer, labours for their conversion. Confession is not a barrier between the sinner and God; it is where mercy and the wounded community are both made whole.

Catechism of the Catholic Church, §§ 1422.

Read the teaching itself: Penance and Reconciliation in the Catechism pages.