How many people answering this question are married?
Here I am, married with two adult children, and quite frankly I cringe when I hear divorcing friends say, "It just wasn't working."
Marriage does not work. It's not supposed to work. There are no failed marriages. There are people who work on their marriages all their lives as they promised. Those are the success stories. Then there are people who've worked on their marriages, then just get tired of it or give up. And there are people who don't bother trying. There are people who quite simply, for whatever reason, fail at marriage.
Don't expect "happily ever after." Because there are lots of ups and downs, but spouses that work together on weathering the downs usually are happier. That happiness doesn't just happen. It's earned.
From where I sit as a longtime married woman (20 years in November!), I don't think divorce is OK. Sometimes it may be necessary, for example, in abusive situations. But in normal marriages, remembering that you still have to date your spouse, regularly calling to mind why you're married to this person (and telling your spouse), and going to marriage counseling if some problem crops up that warrants this is far less expensive, less emotionally fraught, and less of an overall hassle than divorce.