CCC 2345 Chastity is a moral virtue. It is also a gift from God, a grace, a fruit of spiritual effort.1 The Holy Spirit enables one whom the water of Baptism has regenerated to imitate the purity of Christ.2

1 Cf. Gal 5:22.
2 Cf. 1 Jn 3:3.