Yes—a law prohibiting fossil fuels can be passed, but whether one actually can be enacted depends entirely on which level of government is acting, what "prohibiting fossil fuels" means in operative terms, and which legal constraints apply; in the United States, a blanket federal ban is currently blocked less by constitutional text than by the need for congressional majorities and presidential signature, while subnational bans face preemption and commerce-clause limits.
The question contains an ambiguity worth resolving early. "A law prohibiting fossil fuels" could mean (a) banning extraction of coal, oil, and gas; (b) banning their sale or combustion; (c) banning new leases or permits; (d) requiring a phase-out by a date certain; or (e) prohibiting a specific use, such as gasoline cars or gas furnaces. These are legally very different. A ban on extraction is a land-use and resource-management question; a ban on sale is a commerce question; a ban on use is often a building-code or product-standard question. The answerable core is this: no rule of U.S. constitutional law categorically forbids a fossil-fuel prohibition, but the level of government, the scope of the ban, and existing supreme law determine whether a given prohibition is lawful and politically attainable. Where the question implies a specific jurisdiction or a specific bill, that context is missing and the general principles below are what can be stated.
The federal level: authority exists, but enactment is the hurdle
Congress has broad enumerated powers that could support fossil-fuel regulation. The Commerce Clause allows regulation of activities substantially affecting interstate commerce, which clearly covers national energy markets. Federal statutes already regulate emissions, fuel standards, and leasing on federal lands. Congress could, in principle, enact a statute phasing out extraction or sale, and such a statute would likely be tested against the Fifth Amendment's due-process and takings doctrines rather than against a lack of subject-matter power. The Constitution does not contain a "right to extract fossil fuels."
The real obstacle is procedural and political. A bill must pass both chambers and be signed by the president (or enacted over a veto). A blanket prohibition would require majorities willing to impose concentrated costs on producing regions, energy consumers, and allied industries. This is a political feasibility question, not a legal-impossibility one, and it changes with elections. It is also the point where the query's reference date matters: the answer describes stable institutional structure, not the composition of any particular Congress.
Two further federal constraints deserve mention. First, existing statutes and international trade commitments can complicate a ban: a prohibition on imports or exports of fossil fuels implicates trade law and could be challenged as a non-tariff barrier, though environmental exceptions exist and their scope is contested. Second, federalism cuts both ways—federal law can preempt state bans, and states cannot regulate interstate commerce outside their borders. A state cannot, for example, ban the sale of gasoline nationwide.
State and local bans: real examples and real limits
Subnational governments have passed meaningful restrictions, which shows the mechanism works at that scale. Several states and many municipalities have adopted building codes that prohibit new gas hookups in new construction, and some states have set targets to phase down fossil-fuel use in electricity. These are prohibitions in the operative sense: they forbid a specific fossil-fuel use going forward.
But subnational bans face hard limits. A state generally may regulate within its borders, yet it may not discriminate against or unduly burden interstate commerce. A state law banning all fossil-fuel sales would likely be challenged as regulating conduct occurring outside the state and as conflicting with federal energy statutes. Local governments are even more constrained: they are creatures of state law, and many states have enacted preemption statutes forbidding municipalities from restricting gas hookups or fuel sales. So a local prohibition can be lawful in one state and void in another. This is a classic case where a local rule cannot be universalized.
There is also a practical distinction between prohibiting a fuel and prohibiting a technology. A ban on new gas furnaces is a product-standard rule; a ban on extracting gas is a resource rule. Courts treat these differently, and the second is far more vulnerable to takings and preemption challenges because it reaches existing property interests and established industries.
What "prohibiting" legally requires
A valid prohibition must be enacted through the proper procedure, must not violate constitutional rights, and must not conflict with superior law. Three doctrines recur:
Preemption. Federal law displaces conflicting state law, and state law displaces conflicting local law. A fossil-fuel ban that conflicts with a federal statute (for example, a federal leasing program or fuel-standard regime) can be struck down. The Commerce Clause. Regulations that reach interstate markets must not discriminate or impose undue burdens; a ban aimed at out-of-state producers is especially exposed. Takings and due process. A prohibition that destroys the economic use of existing property may require compensation or may be invalid, depending on the regulation's character and the property interest involved.
None of these doctrines makes a fossil-fuel ban impossible. They make its design and jurisdiction decisive. That is why the honest answer is conditional rather than a flat yes or no.
Where the answer stops applying
This answer describes U.S. constitutional and statutory structure. Other countries have different rules: some have constitutional environmental provisions, parliamentary systems that make legislation easier to pass, or treaty obligations that constrain energy policy. A ban in one country tells you little about another. Similarly, this answer does not predict whether any particular bill will pass, because that depends on legislative arithmetic, which is not a stable legal fact. Where the query implies a specific pending law or a specific date's political configuration, that information is unknown here and would need to be checked against the actual legislative record.
FAQ
Can a city ban all fossil fuels? Generally no, on its own authority, and often not even with state permission, because such a ban would reach interstate commerce and would likely be preempted. Cities can usually regulate local building codes and land use.
Could a president ban fossil fuels by executive order? Only within existing statutory authority. A president cannot create a nationwide prohibition without Congress, though agencies can tighten rules under statutes they administer.
Has any U.S. jurisdiction banned fossil fuels outright? No statewide or federal blanket ban exists as stable law; subnational restrictions on specific uses (such as new gas hookups) are the closest working examples, and their legality varies by state.
Does a ban require a constitutional amendment? No. Ordinary legislation suffices if it is within the enacting government's powers and does not violate other constitutional limits.
A fossil-fuel prohibition is legally possible; its enactment and validity turn on jurisdiction, scope, and the superior law it must respect—not on any blanket constitutional bar.