I think this is what votivesoul was referring to:
Deuteronomy 24:1-4 says:
When a man takes a wife and marries her, if then she finds no favor in his eyes because he has found some indecency in her, and he writes her a certificate of divorce and puts it in her hand and sends her out of his house, and she departs out of his house... her former husband, who sent her away, may not take her again to be his wife, after she has been defiled, for that is an abomination before the Lord.
This passage allows for divorce due to "indecency" or "immorality"
Strong’s Definitions
עֶרְוָה ʻervâh, er-vaw'; from H6168; nudity, literally or figuratively (disgrace, blemish):—nakedness, shame, unclean(-ness).
If the innocent party initiates the divorce, they are free to remarry without sin.
The Torah permits divorce in certain situations and allows for restoration and remarriage without requiring the dissolution of subsequent marriages.