A woman has to stay married to her husband as long as he lives. If he dies, she is free to marry anyone she wants to. But the one she marries must belong to the Lord.
And Judah has been unfaithful. A hateful thing has been done in Israel and Jerusalem. The Lord loves his temple. But Judah has made it impure. Their men have married women who worship other gods.
But if the unbeliever leaves, let that person go. In that case, the believer does not have to stay married to the unbeliever. God wants us to live in peace.