Legal basis: Article 388 of the Civil Code establishes the real right for security, and the guarantee contract shall be concluded in accordance with the provisions of this Law and other laws. Guarantee contracts include mortgage contracts, pledge contracts and other contracts with guarantee functions. The guarantee contract is a subsidiary contract of the main creditor's rights and debts contract. If the principal creditor's rights and debts contract is invalid, the guarantee contract is invalid, unless otherwise stipulated by law. If the debtor, guarantor and creditor are at fault after the guaranty contract is confirmed to be invalid, they shall bear corresponding civil liabilities according to their faults.