What Happens to the Marital Home Upon Divorce

For many couples, the marital home is the most valuable asset within their estate. So what happens to this property if they divorce or separate? The parties may be in a position where they can agree for one of them