An Order of Detention Pending Trial is a court order issued by a judge that requires an individual accused of a crime to be detained in jail or other secure facility while awaiting trial. This type of order is typically issued when the judge believes that the accused poses a risk to public safety or is likely to flee before the trial is held. There are two types of Order of Detention Pending Trial: a Preventive Detention Order and a Bail Pending Trial Order. A Preventive Detention Order is issued when the judge believes that the accused is a flight risk or a threat to public safety, while a Bail Pending Trial Order is issued when the accused is not considered a flight risk or a threat to public safety but still needs to be held in a secure facility while awaiting trial.