2382, 2384, and 2385 says it is a moral offense to Divorce. 2383 and 2386 explain when Divorce is necessary and not a moral offense.
2382 The Lord Jesus insisted on the original intention of the Creator who willed that marriage be indissoluble.174 He abrogates the accommodations that had slipped into the old Law.175
Between the baptized, "a ratified and consummated marriage cannot be dissolved by any human power or for any reason other than death."176
2383 The separation of spouses while maintaining the marriage bond can be legitimate in certain cases provided for by canon law.177
If civil divorce remains the only possible way of ensuring certain legal rights, the care of the children, or the protection of inheritance, it can be tolerated and does not constitute a moral offense.
2384 Divorce is a grave offense against the natural law. It claims to break the contract, to which the spouses freely consented, to live with each other till death. Divorce does injury to the covenant of salvation, of which sacramental marriage is the sign. Contracting a new union, even if it is recognized by civil law, adds to the gravity of the rupture: the remarried spouse is then in a situation of public and permanent adultery:
If a husband, separated from his wife, approaches another woman, he is an adulterer because he makes that woman commit adultery, and the woman who lives with him is an adulteress, because she has drawn another’s husband to herself.178
2385 Divorce is immoral also because it introduces disorder into the family and into society. This disorder brings grave harm to the deserted spouse, to children traumatized by the separation of their parents and often torn between them, and because of its contagious effect which makes it truly a plague on society.
2386 It can happen that one of the spouses is the innocent victim of a divorce decreed by civil law; this spouse therefore has not contravened the moral law. There is a considerable difference between a spouse who has sincerely tried to be faithful to the sacrament of marriage and is unjustly abandoned, and one who through his own grave fault destroys a canonically valid marriage.179