To put away all the wives. Shechaniah came forward with concrete suggestions, which implies that this situation must have weighed heavily on his heart for some time. Ezra had not yet given advice in the matter. Shechaniah apparently considered marriages contracted contrary to the law not merely wrongful but actually invalid. The law of Moses permitted divorce for various reasons (see Deuteronomy 24:1-4; Matthew 19:3).
Such as are born of them. Young children especially require a mother’s care, and it would have been extremely cruel to suggest a separation. Furthermore, hereditary tendencies were likely to perpetuate the spirit of apostasy. Older children might be already tainted with idolatry. It seemed best, at least to Shechaniah, to dismiss the children with the mothers.
According to the law. This suggestion may mean either: (1) let the law, which forbids these marriages, in this way be satisfied, or (2) let divorce take place as prescribed by the law (see Deuteronomy 24:1).