After being arrested for DUI, you will have posted bond. You either posted cash for the full amount of the bond, posted a property bond or paid a commercial bondsman.
Upon release from jail, you were probably given a court date. At the DUI arraignment, you will enter a plea of guilty or not guilty.
A hearing on motions filed at arraignment is held prior to trial.
There are two different type of trial. A jury trial and a non-jury trial.
After The Trial Is Over
If you are acquitted at trial, you may leave the court. If you are convicted, the Judge could conduct a sentencing hearing.