What is the purpose of Bail?

The purpose of bail is to assure the attendance of the defendant, when his or her appearance is required in court, whether before or after conviction. Bail is not a means of punishing a defendant, nor should there be a suggestion of revenue to the government.