Legal basis: Article 1076 of the Civil Code of People's Republic of China (PRC) stipulates that if a husband and wife divorce voluntarily, they shall sign a written divorce agreement and apply for divorce registration in the marriage registration office in person. The divorce agreement shall specify the expression of willingness of both parties to divorce and the consensus on matters such as child support, property and debt disposal. Article 1079 If one of the spouses requests a divorce, the relevant organization may mediate or directly file a divorce lawsuit with the people's court. When trying divorce cases, the people's court shall conduct mediation; If the relationship has indeed broken down and mediation is ineffective, divorce should be granted. Divorce shall be granted if mediation fails under any of the following circumstances: (1) bigamy or cohabitation with others; (2) committing domestic violence or abusing or abandoning family members; (three) gambling, drug abuse and other bad habits; (four) separated for two years due to emotional discord; (5) Other circumstances that lead to the breakdown of the marriage relationship.