legal ground
Article 67 of the Criminal Procedure Law
People's courts, people's procuratorates and public security organs may obtain bail pending trial for criminal suspects and defendants under any of the following circumstances: (1) They may be sentenced to public surveillance, criminal detention or independently apply supplementary 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.