Civil cases get referred to mediation when they're set for trial and the courts will require the parties to participate in mediation and avoid a trial. The parties should consider mediation earlier to resolve the matter, to resolve the dispute and eliminate unnecessary attorneys fees and costs.