Why God Allows Many Marriages to Fail

Why does God allow so many marriages to end in divorce?  Why didn't God answer my prayers to restore my marriage?  He has some VERY GOOD reasons, but since today's Christians have been taught to idolize marriage and taught that marriage is the answer to all of societies problems, we are missing the GOOD reasons why God refuses to answer so many of our prayers for the restoration of our marriages.