In these cases, the court makes orders that say who the child’s legal parents are. If parents are married when a child is born, the law assumes that the married persons are the child’s legal parents. But for unmarried parents, parentage of their children needs to be established legally. Establishing parentage is necessary before the court can make custody, visitation, or child support orders. The court also makes custody and support orders in a paternity case.