Legal basis: Article 388 of the Civil Code of People's Republic of China (PRC) establishes a security interest, and a security contract shall be concluded in accordance with 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.