Bankruptcy is a legal proceeding designed to protect consumers from creditors. It lets consumers reorganize and/or eliminate their debt. Because federal law provides the right to file bankruptcy, cases are handled in federal court. There are several types of bankruptcy. The most common are Chapter 7 and Chapter 13.