The Catechism of the Catholic Church explains, “All who die in God’s grace and friendship, but still imperfectly purified, are indeed assured of their eternal salvation; but after death they undergo purification, so as to achieve the holiness necessary to enter the joy of heaven. The Church gives the name Purgatory to this final purification…” (CCC 1030-1031).
Scripture teaches us that nothing unclean will enter God’s presence in heaven (Rev 21:27). Purgatory provides us with the opportunity to be cleansed of our impurities, so we may be made holy to see the Lord (Heb 12:14).
Regular confession is one of the means to help us on our journey toward sanctity, to help us avoid time in Purgatory.