Bankruptcy is a legal proceeding in which a debtor declares their inability to pay back their creditors.