If you file for bankruptcy, the federal government may do a number of things—most notably collect certain debts that bankruptcy cannot discharge, enforce tax liens and priority claims, object to or examine your filing, pursue criminal charges for fraud or concealment, and apply special restrictions to federal benefits, contracts, grants, or loans—but it may not simply ignore the bankruptcy or continue ordinary collection on discharged debts once a discharge is entered. The question as written is incomplete ("may the federal government… what?"), and the answer depends heavily on which branch or agency is acting, which chapter of the Bankruptcy Code applies, and what kind of debt or benefit is at issue.
Why the missing verb matters
"Do what?" is not a rhetorical quibble here. A bankruptcy filing triggers a federal statutory system, so the government wears several hats that behave very differently:
The United States as creditor. Many agencies—the Internal Revenue Service, the Department of Education, the Department of Veterans Affairs, the Department of Housing and Urban Development, and others—hold claims against individuals. As a creditor, the government is bound by the automatic stay and the discharge injunction, subject to specific exceptions. The United States as regulator and police power. Bankruptcy does not immunize fraud, tax evasion, environmental violations, or false statements. The Department of Justice and U.S. Attorneys can investigate and prosecute independently of the bankruptcy case. The bankruptcy courts as the forum. Bankruptcy judges are Article I federal judges; the U.S. Trustee (part of the Department of Justice) supervises case administration and can bring motions to dismiss or convert cases, object to exemptions or discharges, and refer fraud. The government as gatekeeper for benefits and contracts. A bankruptcy filing can affect eligibility or standing under federal loan, grant, and benefits programs, sometimes by statute rather than by the Bankruptcy Code.
Confusing these roles is the main source of the popular claim that "the federal government can do anything" or the opposite claim that "bankruptcy wipes out everything the government is owed." Neither is accurate.
The automatic stay: what the government may not continue
Filing bankruptcy imposes the automatic stay under 11 U.S.C. § 362, which stops most collection activity against the debtor and the estate. As a general rule, the IRS cannot continue ordinary collection notices, levies, or seizures for a pre-petition tax debt during the case; federal agencies cannot continue civil collection suits; and a creditor cannot enforce a pre-petition judgment. The stay is what makes bankruptcy workable, and it applies to the government as creditor like anyone else.
But the stay is not universal. Congress carved out several exceptions that matter to federal agencies, including certain police and regulatory actions under § 362(b)(4), which allows a governmental unit to enforce its police or regulatory power. Courts have drawn fine lines here: an agency pursing a civil enforcement action to protect public health and safety generally falls within the exception, while an action that is essentially a money-collection device may not. The exception is powerful but not a blank check; whether a particular federal action fits has been litigated for decades in cases involving environmental cleanup orders, employment discrimination enforcement, and similar matters. A debtor reading a statute like § 362(b)(4) should not conclude "the government can do anything," and a creditor should not conclude "the stay stops everything."
The stay also does not stop criminal proceedings, nor does it stop the prosecution of a criminal tax case. Bankruptcy is a civil remedy; it is not a shield from criminal liability.
Tax debts: the most common federal-creditor question
Tax debt is the area where the federal government's special rights are most often raised, and it rewards precision. Under 11 U.S.C. § 523(a)(1) and § 507(a)(8), income tax debts are generally not dischargeable unless they satisfy several conditions, most commonly stated in shorthand as the "three-year rule": the tax must relate to a return that was due (including extensions) more than three years before the petition date, the return must have been filed (if required) more than two years before the petition, and the tax must have been assessed more than 240 days before the petition. A fraudulent return or a willful attempt to evade tax is never dischargeable under § 523(a)(1)(C).
Even a discharge that is available does not eliminate the government's secured rights. A properly filed tax lien survives discharge and can attach to the debtor's assets, including assets acquired after the case (depending on the lien and applicable law). This secured/unsecured distinction is the reason two neighbors with similar tax debts can get different results: one may have a lien recorded against a house, the other no recorded lien at all.
What the IRS may do in a Chapter 7 case includes filing a proof of claim, objecting to discharge where grounds exist, pursuing non-dischargeable liabilities under the exceptions, and continuing certain collection activity outside the stay—for example, assessing tax (assessment itself is generally not barred), issuing a notice of deficiency in some circumstances, or pursuing criminal tax enforcement. What it may not do is ignore a valid discharge injunction for a debt that was actually discharged. If the IRS or another agency persists in collection on a discharged debt, the debtor may bring a § 524 action or seek contempt relief in the bankruptcy court.
Student loans and other federal claims
Federal student loans are not dischargeable in ordinary bankruptcy absent an "undue hardship" determination under § 523(a)(8) and 11 U.S.C. § 523(a)(8)'s exceptions (the so-called Brunner test in many circuits, though its precise formulation varies). The Education Department may collect during the case to the extent an exception applies, and if no hardship determination is made, the loan survives. This is a debtor-protection issue that has generated real reform proposals over the years, but as of the reference date, the general rule remains that student loans require a separate showing. The exact standards, procedures, and any Department of Education guidance should be verified against current, jurisdiction-specific sources before relying on them.
The same pattern applies broadly: certain federal debts are made non-dischargeable by statute—certain fines and penalties, certain fraud-related debts, certain customs duties, and obligations arising from willful or malicious conduct—while others are dischargeable if timely and not otherwise excepted. The Bankruptcy Code's exceptions are enumerated, and a debtor or creditor cannot safely reason from general impressions.
When the government may act against the debtor's filing
The U.S. Trustee can seek dismissal or conversion of a case for abuse under § 707(b) (Chapter 7) or for bad faith. The government may object to claimed exemptions, to the discharge itself under § 727 for concealment, false oaths, or failure to obey court orders, and may seek to deny discharge of specific debts under § 523. If a filer conceals assets, makes false statements under oath, or transfers property to defraud creditors, the consequences are both civil and criminal: 18 U.S.C. §§ 151–157 address bankruptcy crimes, including concealment and false oaths, and the government may pursue them through the courts and, where warranted, prosecution—separate from the bankruptcy case.
A bankruptcy discharge does not wipe out criminal liability, nor does it resolve a pending investigation. Debtors sometimes assume the filing "freezes" everything the government is doing; it does not freeze criminal process, and it does not suspend obligations that are independent of the discharged debt.
Federal benefits, contracts, and gatekeeping
Some federal programs contain their own rules. For example, certain federal loan programs and benefit programs may consider a bankruptcy filing in eligibility determinations, and some agencies have policies about excluding debtors from contracts or grants. These are statutory and regulatory questions specific to each program, and they change over time. The bankruptcy discharge does not rewrite the terms of a benefits statute. A filer who receives federal housing assistance, holds a federal contract, or receives veterans' benefits should check the specific program rules rather than assume either that the filing is invisible or that it automatically disqualifies them.
What is independent of bankruptcy
The federal government may always exercise general police and regulatory authority outside bankruptcy—prosecuting fraud, enforcing environmental and securities laws, and collecting non-dischargeable obligations. Bankruptcy is not a general amnesty. Likewise, certain family support obligations, certain tort judgments, and certain fiduciary debts are excluded from discharge, and the government can often pursue them on the same footing as any other creditor with a non-dischargeable claim.
Where this answer stops
This answer describes the structure of the federal bankruptcy system and the general categories at issue; it is not a substitute for applying current statutes, local rules, agency guidance, and circuit precedent to a particular case. The exact treatment of a tax year, a student loan, a benefit program, or a contract term can turn on facts and dates that the question does not provide. A debtor or creditor with a live dispute should consult a bankruptcy attorney admitted in the relevant district and verify current agency guidance.
Bankruptcy is a legal and financial proceeding, and the stakes are individual and often significant. The explanation above is general education, not legal or tax advice, and it does not create an attorney-client relationship. For advice about a specific filing, debt, or federal claim, consult a qualified bankruptcy attorney in your jurisdiction; for tax matters, consult a tax professional familiar with bankruptcy.