Bankruptcy is a legal process, so it begins when the debtor files a petition with the relevant bankruptcy court. This is often achieved through the help of a lawyer specialized in these types of cases.