Bail is a security or bond that is required to be posted by a defendant in a criminal case as a condition of their release from custody while awaiting trial. It serves as a guarantee that the defendant will appear for their scheduled court proceedings.