When going through a divorce, your children are the most important consideration. You need to make arrangements for their care. One option is obtaining legal custody, which means you have the authority to make decisions for your children, including schooling, medical treatment, and other important matters.