CCC 980

It is through the sacrament of Penance that the baptized can be reconciled with God and with the Church:

Penance has rightly been called by the holy Fathers "a laborious kind of baptism." This sacrament of Penance is necessary for salvation for those who have fallen after Baptism, just as Baptism is necessary for salvation for those who have not yet been reborn. Council of Trent (1551): DS — Denzinger–Schönmetzer (Enchiridion Symbolorum); Cf. St. Gregory of Nazianzus, Oratio 39,17: PG — Patrologia Graeca (Migne).

Read the full chapter 3. I Believe in the Holy Spirit ¶683–1065