This is a broad question that demands a detailed survey. It is unanswerable as a generality because there are so many religions with so many differing perspectives, as well as the cultural differences among people of similar faith because of regional and national traditions, and so forth. As a general rule of thumb, the perspective of religions in regard to many subjects are open to question because they are based on corrupt information, and have been orchestrated and heavily edited, and are restricted from evolving with further growth and enlightenment of the human participants.
The idea of marriage is a good one and is a divine and sacred union that has great merit and serves a valuable purpose. It is critical to human health and wellbeing to have nurturing parents during the early years. When there is not a family unit, the children will suffer. This is well established in human experience. What serves to keep couples together is the sharing of love, but there are obligations that come from physical union, especially when there is the conception of a child. This puts a karmic burden and an obligation on both man and woman to contribute to the support of the infant and its nurturing, to raise it to adulthood, which is a very long-term obligation, and in fact, becomes life-long because people’s problems don’t end once they reach an age of maturity.
They may still struggle in many ways and need the wisdom of those who know them best, their loving parents, who through their own seniority have hopefully gained greater wisdom and continue to guide them and give them nurturing and support, even as adults. Those obligations are real and are served by having a pact that is formal because it is a declaration of duty and acceptance of responsibility formalized and becomes a highly meaningful ritual because there is much at stake that makes it valuable and makes it quite special indeed. So the unions that take place within that cultural framework where it is customary to seal it with a sacred pact, a sacred agreement, attested to and sworn to before Creator, takes on great meaning and importance. And therefore, it is clear to all it is not to be undertaken lightly, so it is not something that will come and go from mere convenience and can be considered temporary or revoked on a whim.
This is not to say marriage must be forever, and this again is a distortion of divine teachings because humans always have choices. A contract can be torn up, a contract can be renegotiated, and a contract can be revoked unilaterally in many cases. When it comes to one based on love, when the love dies, there is no longer a purpose for the contract. To have such an imbalanced state of affairs carved in stone in the name of the Divine is embroiling the divine realm in a human drama that is a consequence of natural forces that people may not be fully in control of nor able to predict. To blame the divine realm or to make them the arbiter as promoting a set of rules that will constrict all and confine them to serving a kind of sentence in a prison, even of their own making, is a distortion of love in a major sense, and itself is non-divine. So we consider the act of marriage a divine contract to be revered, respected and cherished by those entering the union, but we do not consider it mandatory to be forever if there is a compelling reason to end the marriage.
This does not mean one walks away from one’s children. Those bonds are the bonds of love in a karmic setting because the threads connecting parents and children will not die and cannot be fully recalled. They will be forever linked because they came into being through choices made and so the evidence of this and its consequences will be recorded for all time within the akashic record. This is true of marriages as well because everything that happens is recorded. Legal contracts can be revoked, the ancestral lineage cannot be. It is not only a fact that has happened, that one descends from another, there is an irrevocable tie connecting people and their offspring. There can be decisions made to disown a relative when a relationship becomes unworkable but does not mean there is no longer an interconnection, it is only a circumstance in how the people interact and choose to spend time together or not as the case may be.
This is a good example of why religions underserve people because they have not been updated, they are not growing and expanding with a larger awareness that modern humans in current times have achieved in understanding human conduct, and behavior, and its ramifications in a more sophisticated way. If there were expansion allowable without manipulation and constraint from external sources overseeing things and causing a mind control subjugation to block change, things would be evolving and growing over time, much as laws are written and rewritten. That will only happen once the interlopers who create this state of being for humanity have been healed and removed from the earth plane.