Is it illegal to detain a car for a guarantee company?

Legal analysis: illegal. If you can't repay the due debt, you can only auction the collateral to protect the interests of creditors, and you can't detain the debtor's car yourself.

Legal basis: Civil Code of People's Republic of China (PRC).

Article 519 Where it is difficult to determine the share between the joint debtors, it shall be deemed that the share is the same. A joint debtor who actually undertakes more debts than his share has the right to recover the excess from other joint debtors within the scope of his unfulfilled share, and shall enjoy the rights of creditors accordingly, but shall not harm the interests of creditors. Other joint debtors' defenses against creditors may claim against the debtors. If the recovered joint debtor fails to perform its share, it shall be shared by other joint debtors in proportion within the corresponding scope.

Article 520 Where some debtors are jointly and severally liable for the performance, set-off or escrow of the subject matter, the debts owed by other debtors to the creditors shall be extinguished within the corresponding scope; The debtor may claim compensation from other debtors in accordance with the provisions of the preceding article. Where the debts of some joint debtors are exempted by the creditors, the debts of other debtors to the creditors shall be eliminated within the share of joint debtors. If the debts and creditor's rights of some joint debtors belong to one person, the creditor's rights against other debtors will continue to exist after deducting the debtor's share. Where the creditor's payment to some joint debtors is delayed, it shall be effective to other joint debtors.