How can the guarantor be released on bail when he is detained?

Legal analysis: bail pending trial: 1. Apply for bail pending trial. Criminal suspects and defendants in custody, their legal representatives and close relatives have the right to apply for bail pending trial. If a criminal suspect is arrested, his lawyer may apply for bail pending trial. The application for bail pending trial shall be made in writing. 2. The decision to obtain bail pending trial. The public security organ, the people's procuratorate and the people's court shall, within 7 days after receiving the application for bail pending trial, make a reply on whether or not to agree. If a decision is made to release a criminal suspect or defendant on bail pending trial, it shall be reported to the person in charge of the public security organ at or above the county level, the procurator-general of the procuratorate or the president of the people's court for approval, and a "Decision on Bail Pending Trial" and a "Notice on Execution of Bail Pending Trial" shall be issued, and the criminal suspect or defendant shall be ordered to put forward a guarantor or pay a deposit. 3. Execute bail pending trial. The executing organ of bail pending trial is the public security organ.

Legal basis: Article 67 of the Criminal Procedure Law of People's Republic of China (PRC), the people's courts, people's procuratorates and public security organs may obtain a guarantor pending trial for a criminal suspect or defendant under any of the following circumstances: (1) Those who may be sentenced to public surveillance, criminal detention or independently apply additional punishment; (two) may be sentenced to more than fixed-term imprisonment, bail will not cause social danger; (3) A woman who is seriously ill, unable to take care of herself, pregnant or breast-feeding her baby is released on bail pending trial, which will not cause social danger; (four) the detention period expires, the case has not yet been settled, and it is necessary to get a bail pending trial. Bail pending trial shall be executed by the public security organ.