Bail is a promise to attend court while you are waiting
for a charge to be dealt with by the courts, instead of being held
behind bars on remand.
For less serious charges the promise may be enough and bail may
even be dispensed with altogether, but for more serious charges
where gaol is a real possibility this promise may need to be backed
up by conditions, such reporting regularly to a police station,
surrendering your passport, or the court holding an amount of money
until the end of your matter.
If the police consider you a risk while out on bail and refuse
it to you when arrested, you can apply for bail to be reviewed by
the court.
You should always have an experienced criminal defence lawyer
for this as there are a number legal complications to work around
and creative avenues that may not be apparent.