God hated divorce:
"For I hate divorce!" says the LORD, the God of Israel. "To divorce your wife is to overwhelm her with cruelty," says the LORD of Heaven's Armies. "So guard your heart; do not be unfaithful to your wife." (
Malachi 2:16)
But God allowed divorce:
"If a man marries a woman who becomes displeasing to him because he finds something indecent about her, and he writes her a certificate of divorce, gives it to her and sends her from his house," (
Deuteronomy 24:1)
God hated divorce, but He allowed it to happen for a reason:
Jesus replied, "Moses permitted you to divorce your wives because your hearts were hard. But it was not this way from the beginning. (
Matthew 19:8)
God despised slavery, however He allowed it because it was a consequence of a sinful world.