The first step to filing for bankruptcy for some may be to consult with lawyers from bankruptcy law firms. The attorney can offer guidance in determining if bankruptcy is the best option. Individuals and businesses can generally file under two types of bankruptcy: chapter 7 and chapter 13. After determining the chapter to file under, the debtor will file a petition with the court, often with the help of an attorney.