Bail is an amount of money, set by a judge and paid by a defendant, allowing the individual to be released from jail, until a formal hearing is held. The bail may be paid by the defendant or a Bail Bondsman. Once the individual shows up for the hearing, the bail money is returned. When using a Bondsman, a percentage of the total bail is charged, to the defendant, as interest. If the case is heard and the defendant is found guilty, they may be incarcerated, but you still have to pay the bail bondsman their fee.
If the defendant gets locked back up, depending on how they got locked back up, you may have to pay the bail bondsman back. An instance of this would be if the defendant skips a court appearance while out on bail and is locked up.