Under UK law, a person can declare bankruptcy under the Insolvency Rules 1986. A creditor or group of creditors can also bring an order of bankruptcy against a borrower under the law.
If you are facing severe financial difficulties and find yourself unable to pay your debts, you may consider declaring yourself insolvent. However, declaration of bankruptcy should only be used as the very last resort as it can significantly affect your assets and credit rating.