The principal use of bail in modern legal systems is to secure the freedom, pending trial, of one arrested and charged with a criminal offence.