The best way to keep legal costs down is to avoid a trial, which can be lengthy and costly. You can try to reach an agreement with your spouse through mediation or negotiation. You can also represent yourself in court, although it is not recommended as divorce and family law can be complex.