One time on OT God want Jews divorce their foreign wife
Ezra 10
1While Ezra was praying and confessing, weeping and throwing himself down before the house of God, a large crowd of Israelites—men, women and children—gathered around him. They too wept bitterly. 2Then Shekaniah son of Jehiel, one of the descendants of Elam, said to Ezra, “We have been unfaithful to our God by marrying foreign women from the peoples around us. But in spite of this, there is still hope for Israel. 3Now let us make a covenant before our God to send away all these women and their children, in accordance with the counsel of my lord and of those who fear the commands of our God. Let it be done according to the Law.
But on NT, only when your partner commit adultery
Paul say in 1 for 7
If unbeliever wife leave, let it be so but if she want to stay don't divorce her
12 To the rest I say this (I, not the Lord): If any brother has a wife who is not a believer and she is willing to live with him, he must not divorce her. 13 And if a woman has a husband who is not a believer and he is willing to live with her, she must not divorce him. 14 For the unbelieving husband has been sanctified through his wife, and the unbelieving wife has been sanctified through her believing husband. Otherwise your children would be unclean, but as it is, they are holy.
15 But if the unbeliever leaves, let it be so. The brother or the sister is not bound in such circumstances; God has called us to live in peace. 16 How do you know, wife, whether you will save your husband? Or, how do you know, husband, whether you will save your wife?