When defendants are in jail waiting for their court appearance, they may be freed if they give the court a certain amount of money. This happens after they’ve been arrested but before their court date. Once the defendant has appeared in court, the money is returned to the person who paid it. Bail is a legal procedure and a charge that differs from state to state in the United States.