After you and your spouse agree on everything, your mediator will write up your agreement. You’ll both review it to make sure it’s correct. Then, it gets filed with the court to become a legal divorce agreement.