According to United States bankruptcy law, an automatic stay is defined as an automatic injunction, the purpose of which halts the actions of creditors to collect debts from a debtor who has filed for bankruptcy relief.
Provisions for automatic stay fall under section 362 of the U.S. Bankruptcy Code, which suggests that the stay begins automatically when the debtor files a petition with the bankruptcy court.
Although a stay is automatic, secured creditors may file a petition with the bankruptcy court for relief against the automatic stay if they can show cause.