There are many things that can lead to the end of a marriage. One of these is a cheating spouse. While some people might think that a cheating spouse is an automatic marriage ending event, this isn't the case. It is possible to move past infidelity if both spouses are willing to work on things.
One of the first things that has to be done is that the person with whom the affair occurred needs to be pushed away. There isn't any place for a friendship or any type of relationship, even a business relationship with a person who was the other party in an affair. In some cases, this might mean that the person who cheated has to leave an entire group of friends or even a job in order to save the marriage.
Both spouses have to discuss the affair calmly. This gives the person who had the affair a chance to discuss what led him or her to cheat. It gives the other person a chance to ask questions to get clarifications on things. Once this conversation is over and everything is out in the open, the affair needs to be left in the past. It might be necessary to seek professional help to work through these issues, so be open to that suggestion if the time comes.
You and your spouse need to rebuild your relationship. This means spending time together. Make plans for date nights and other time together. You have to make your time with him or her a priority.
Of course, there are some marriages that just won't last after a spouse cheats. If this is where you are in your marriage, now is the time to think about the terms of the divorce. Think about factors like alimony, child support, child custody and property division.
Source: Prevention, "Divorce-Proof Your Marriage: How To Overcome Infidelity," Jen Glantz, Oct. 05, 2017