The two parties can negotiate about the custody of the child. If they can't negotiate, they can sue to the court about the custody of the child. The court will decide according to the actual situation of both parties, such as living environment, working conditions, economic income, educational background, child age and other comprehensive conditions. In a word, The basis and principle of the court's decision on the ownership of the child's custody is to award it to the party most conducive to the healthy growth of the child. Specifically, the court will comprehensively consider the working hours, economic income, housing conditions, time spent with children, whether family members can help take care of children together, educational background and other information of both men and women. The special circumstances here refer to the long-term domestic violence, abandonment, child abuse, disease, drug abuse, gambling and other behaviors.