Legal basis: Article 97 of the Civil Procedure Law of People's Republic of China (PRC). If an agreement is reached through mediation, the people's court shall make a conciliation statement. The conciliation statement shall specify the claim, the facts of the case and the result of conciliation. The conciliation statement shall be signed by the judge and the clerk, stamped with the seal of the people's court and served on both parties. The conciliation statement has legal effect after being signed by both parties.
People's Republic of China (PRC) Civil Code
Article 1076 If a husband and wife divorce voluntarily, they shall sign a written divorce agreement and apply for divorce registration in person at the marriage registration office. 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 1078 If the marriage registration authority finds that both parties are really divorced voluntarily and reach an agreement on matters such as child support, property and debt handling, it shall register and issue a divorce certificate.