There is a cost to covenant relationships. It is a requirement that there is purity within the people of God, and a separation from those of unrighteousness. One has to be careful here, for Paul warned that we should not divorce the unbeliever, but let them leave if they so choose, so that we live in peace.
But one’s wife can be a vector of apostasy. Do not be deceived: if it happened to Solomon it can happen to you. 
The question is becoming clearer: are you going to be one of those who are of Christ or one of those who converge? For those who converge will disavow you, ban you, divorce you and denounce you. From that they believe they get virtue. They have swallowed a strong delusion, and they celebrate their damnation.
1While Ezra prayed and made confession, weeping and throwing himself down before the house of God, a very great assembly of men, women, and children gathered to him out of Israel; the people also wept bitterly. 2Shecaniah son of Jehiel, of the descendants of Elam, addressed Ezra, saying, “We have broken faith with our God and have married foreign women from the peoples of the land, but even now there is hope for Israel in spite of this. 3So now let us make a covenant with our God to send away all these wives and their children, according to the counsel of my lord and of those who tremble at the commandment of our God; and let it be done according to the law. 4Take action, for it is your duty, and we are with you; be strong, and do it.” 5Then Ezra stood up and made the leading priests, the Levites, and all Israel swear that they would do as had been said. So they swore.
6Then Ezra withdrew from before the house of God, and went to the chamber of Jehohanan son of Eliashib, where he spent the night. He did not eat bread or drink water, for he was mourning over the faithlessness of the exiles. 7They made a proclamation throughout Judah and Jerusalem to all the returned exiles that they should assemble at Jerusalem, 8and that if any did not come within three days, by order of the officials and the elders all their property should be forfeited, and they themselves banned from the congregation of the exiles.
9Then all the people of Judah and Benjamin assembled at Jerusalem within the three days; it was the ninth month, on the twentieth day of the month. All the people sat in the open square before the house of God, trembling because of this matter and because of the heavy rain. 10Then Ezra the priest stood up and said to them, “You have trespassed and married foreign women, and so increased the guilt of Israel. 11Now make confession to the LORD the God of your ancestors, and do his will; separate yourselves from the peoples of the land and from the foreign wives.” 12Then all the assembly answered with a loud voice, “It is so; we must do as you have said. 13But the people are many, and it is a time of heavy rain; we cannot stand in the open. Nor is this a task for one day or for two, for many of us have transgressed in this matter. 14Let our officials represent the whole assembly, and let all in our towns who have taken foreign wives come at appointed times, and with them the elders and judges of every town, until the fierce wrath of our God on this account is averted from us.” 15Only Jonathan son of Asahel and Jahzeiah son of Tikvah opposed this, and Meshullam and Shabbethai the Levites supported them.
16Then the returned exiles did so. Ezra the priest selected men, heads of families, according to their families, each of them designated by name. On the first day of the tenth month they sat down to examine the matter. 17By the first day of the first month they had come to the end of all the men who had married foreign women.
1Then Joshua gathered all the tribes of Israel to Shechem, and summoned the elders, the heads, the judges, and the officers of Israel; and they presented themselves before God. 2And Joshua said to all the people, “Thus says the LORD, the God of Israel: Long ago your ancestors — Terah and his sons Abraham and Nahor — lived beyond the Euphrates and served other gods. 3aThen I took your father Abraham from beyond the River and led him through all the land of Canaan and made his offspring many.
14“Now therefore revere the LORD, and serve him in sincerity and in faithfulness; put away the gods that your ancestors served beyond the River and in Egypt, and serve the LORD. 15Now if you are unwilling to serve the LORD, choose this day whom you will serve, whether the gods your ancestors served in the region beyond the River or the gods of the Amorites in whose land you are living; but as for me and my household, we will serve the LORD.”
16Then the people answered, “Far be it from us that we should forsake the LORD to serve other gods; 17for it is the LORD our God who brought us and our ancestors up from the land of Egypt, out of the house of slavery, and who did those great signs in our sight. He protected us along all the way that we went, and among all the peoples through whom we passed; 18and the LORD drove out before us all the peoples, the Amorites who lived in the land. Therefore we also will serve the LORD, for he is our God.”
19But Joshua said to the people, “You cannot serve the LORD, for he is a holy God. He is a jealous God; he will not forgive your transgressions or your sins. 20If you forsake the LORD and serve foreign gods, then he will turn and do you harm, and consume you, after having done you good.” 21And the people said to Joshua, “No, we will serve the LORD!” 22Then Joshua said to the people, “You are witnesses against yourselves that you have chosen the LORD, to serve him.” And they said, “We are witnesses.” 23He said, “Then put away the foreign gods that are among you, and incline your hearts to the LORD, the God of Israel.” 24The people said to Joshua, “The LORD our God we will serve, and him we will obey.” 25So Joshua made a covenant with the people that day, and made statutes and ordinances for them at Shechem.
Why then was divorced mandated? It was because the house of God needed to continue, and that was the tribe and families of Israel. The only way to be Jewish is to convert or be born of a Jewish woman. Therefore Jewish men are commanded to marry within that faith and covenant.
They are not to look at the goyim. They are to cleave to the people of promise.
There is a parallel command for us in Christ. We are to marry within the faith: with some exceptions — being celibate is accepted and honoured and glorified, when it is the duty of all Jewish men to marry. In Christ, there are more ways to be fruitful and multiply than to have children, but that is the most common.
The question of what we do when we sin is also shown. We repent. We confess. We set it right. That has meant that at times the church has counselled divorce: to the war bride taken as booty, to the second, third and fourth wife from polygamy (Muslims and fundamentalist Mormons, take note) and at times it has not.
At this time we too frequently counsel divorce in error. As Paul noted, we should honour the state and remain within it. We may be too willing to encourage this for some sense of virtue. That was the habit of the pagans: to see marriage merely for pleasure and power, and disavow any involvement of God in the covenant. The consequence of this was most easily seen in Rome, where there were laws bought in not merely to restrict jewellery and clothing, but to mandate marriage for knights and nobles. It failed.
For it is God who builds the house, or we labour in vain. The Jewish reformers purified their lines for fear that they would lose the blessings of God and be one with the Hittites and their relatives who had died in Egypt.
It is far better to be within the house of God, and the serve him today. This elite are removing themselves from the gene pool and the future. Be not like them.