I might be completely wrong in my thinking, but this is my opinion. Throughout Scripture marriage is used to describe the relationship between Jesus and the Church. Having said that, not too long ago I found myself in a place where my wife wanted a divorce. Our relationship had deteriorated and although we weren't arguing all the time, we had reached a point where we were basically not talking to each other any more. One morning she had had enough and the topic of divorce came up. She felt it was time for us to move on. At that moment I was in agreement. Everyone around us encouraged us in different ways, but basically everyone told us, if you are not happy anymore...divorce is the best option. I started doing homework as to what will need to be done, we discussed how we would divide what we owned. We discussed living arrangements etc etc.
One evening as I was laying in bed, a small voice in my mind began to recollect the Scriptures about divorce and at the same time also the Scriptures with regards to marriage and what a wife ought to be and what a husband ought to be. I began trying to rationalize my desires and my thoughts so that Scripture fit with what I was convinced of, but the nagging voice in my head continued. I tried explaining to God what I was unhappy about. My wife did this and that and she didn't do this and that.
When I was first saved I remember asking a Pastor friend, how can Christians change the world and he replied: "Start with yourself". This is then what I began to do. Self evaluation of the things I was guilty of. I stopped blaming her for making me feel the way I felt and stopped making excuses to justify my own actions and began to earnestly pray for God to save my marriage and trusted Him to do so.
One verse that has stuck in my head and that I kept reminding myself of "Husbands, love your wives, even as Christ also loved the church, and gave himself for it;" - Ephesians 5:25.
I was blessed that in my case continued prayer and changing what needed to change in myself saved my marriage. The issues I had with my wife disappeared.
Marriage is a sacred covenant in the eyes of God, and because it is sacred to Him, it is something that Satan will attempt to destroy. My parents divorced when I was only 6 years old, and even though they were civil to each other after the divorce, it still had a major impact on me. God will always want us to try and reconcile, as He reconciled us to Him through Jesus.
I am in no way saying that what worked for me will work for someone else, because situations are different and people are different, but I will advise that anyone contemplating divorce should earnestly pray about it. The biggest regret my Mother has was not working things out with my father (and she is the one that wanted the divorce).
The Bible says we are only allowed to divorce if one has committed adultery, but even so, God wants for us to be reconciled.