The spouses are typically encouraged to settle all their differences out-of-court by writing up their settlement agreement, and the judge is likely to approve it in most cases. If the parties are unable to agree, the judge will divide assets at a court proceeding, following either equitable distribution or community property rules, depending on the state's law.