It is an effort to avoid litigation. The two parties meet with a mediator, sometimes two, a counselor and a lawyer. You each disclose financial and physical assets that you had shared and try to reach a mutually agreeable division of those assets. Custody can also be worked out in mediation. It is basically, a negotiation to split everything a couple has shared.