It's fairly common for defendants to be given an opportunity to post bail or bond. Doing so allows you to secure your release in exchange for a promise that you will appear in court as the legal process unfolds. The amount that you'll need to pay will be based on your income, the severity of your crime, and other factors deemed relevant in your case. If you are accused of a relatively minor offense, you may be allowed to leave custody under your own recognizance.