Legal basis: Civil Code of People's Republic of China (PRC).
Article 562 The parties may terminate the contract through consultation. The parties may agree on the reasons for one party to terminate the contract. When the reasons for the termination of the contract arise, the creditor may terminate the contract.
Article 566 If the contract has not been performed after dissolution, the performance shall be terminated; If it has been performed, according to the performance and the nature of the contract, the parties may request restitution or take other remedial measures, and have the right to claim compensation for losses. Where the contract is terminated due to breach of contract, the creditor may require the breaching party to bear the liability for breach of contract, unless otherwise agreed by the parties. After the termination of the main contract, the guarantor shall still be liable for the civil liability of the debtor, unless otherwise agreed in the guarantee contract.