It goes, along with more money put up by the bail bond company, to the court. If the defendant shows up for all required court appearances (whether or not found guilty), the court “exonerates” the bond and the bonding company gets its money back. The portion paid by the defendant is kept by the bonding company as its profit.
when a person post a bond, they charge certain amount for bond and certain amount for their service and paperwork. The actual bond money is keep in their account, until the disposition of the case, guilty or not guilty. If guilty, you get the punishment, if not guilty or dismissed by the courts, in some states, the bonding company has to give the actual bond amount back to you, they keep their service fee and paperwork amount. That bond until all is finished, has to be paid to the court, if the person out on bond jumps and runs and or not show up in court. That is why, if a person out on bond does not appear in court, the bonding company sends out their people to bring that person in, and take him to jail, revokes their bond, and the person has to stay in jail, with no bond. If the person is never found, the bonding company has to pay the whole full amount of that bond, not just the 10 to 15% that it cost the person for a bond. Victims families has absolutely nothing to do with the bond money.
The judge and the bail bondsman split the loot.
It is returned to the person who placed it when you appear in court as you are supposed to. There are however some times when the bond is not returned but rather put toward fines and fees (mostly when posted by the defendant rather than by a family member).