The answer is; have the defendant held without the option of bail
an option for bail is given if the court trust the defendant enough to let the defendant go out from jail until the trial is conducted. The bail usually given after the defendant pay a certain amount of money to the court. When the defendant is believed going to commit another serious crime, the court usually take away the option for bail from them.