Bail is a legal term that refers to the temporary release of an accused person from custody, usually upon payment of a sum of money, known as a bail bond. Bail is often used to ensure that the accused person will appear in court to face their charges.

When a person is arrested and charged with a crime, they may be held in jail until their trial. However, in many cases, the accused person is allowed to be released on bail, which means they can leave jail while their case is pending. Bail is usually granted at the discretion of a judge or a magistrate, who takes into account various factors such as the nature of the offense, the accused person's criminal history, and the likelihood that the accused person will flee or pose a danger to the community.

If bail is granted, the accused person must pay the bail amount, which is often a significant sum of money. This payment is held as collateral to ensure that the accused person appears in court for their trial. If the accused person fails to appear in court, the bail is forfeited and a warrant for their arrest may be issued.

Once the trial is over, the bail money is returned to the person who posted it, regardless of whether the accused person is found guilty or innocent. However, if the accused person violates the conditions of their bail, such as by committing another offense or failing to appear in court, their bail may be revoked and they may be sent back to jail.

In criminal law, offenses are categorized as bailable or non-bailable depending on whether the accused person is eligible for bail or not.

Bailable offenses are those offenses for which the accused person is entitled to bail as a matter of right, subject to certain conditions that may be imposed by the court. In other words, the accused person can be released on bail after paying the bail amount or providing a bond or surety. Examples of bailable offenses may include minor offenses like traffic violations, petty theft, or defamation.

Non-bailable offenses are those offenses for which the accused person is not entitled to bail as a matter of right and the discretion lies solely with the court to grant bail. The accused person may have to approach the court and prove that they deserve to be released on bail. Non-bailable offenses are considered more serious than bailable offenses, and may include offenses like murder, terrorism, and drug trafficking.

It's important to note that some offenses may be initially classified as bailable or non-bailable, but this can vary depending on the specific circumstances of the case. In some cases, the court may impose additional conditions on a bailable offense to ensure that the accused person appears in court, and in other cases, the court may grant bail for a non-bailable offense based on the facts and circumstances of the case.