Skip to content

Is a contract enforceable if it involves illegal activity?

I signed a contract, then later realized part of the agreement may violate the law. Can it still be enforced?

ARTICLE SUMMARY

Answer

Generally, contracts involving illegal activity are not enforceable. Courts typically will not enforce agreements that require someone to break the law or whose object or purpose is unlawful or that violate public policy. However, the outcome can depend on the nature of the illegality and the applicable law.

Not every legal issue makes an entire contract unenforceable. In some situations, only a specific provision may be affected, while the rest of the agreement remains valid.

What types of contracts may raise legality concerns?

A contract may face enforceability issues if it requires or promotes unlawful conduct, such as:

  • Agreements that require illegal acts.
  • Contracts that violate applicable statutes or regulations.
  • Provisions that conflict with public policy.
  • Agreements involving fraudulent or unlawful transactions.
  • Contracts entered into for an illegal purpose.
  • Terms that cannot legally be performed.

Whether the entire contract or only part of it is affected depends on the specific circumstances. Some contracts are unlawful from the moment they are formed, while others become impossible or unlawful to perform because of later legal changes. The legal consequences may differ depending on the circumstances.

What factors can affect enforceability?

If a contract is challenged because of alleged illegality, several facts may be important:

  • The nature of the illegal activity.
  • Whether the unlawful provision is central to the agreement.
  • Applicable federal, state, or local laws.
  • Whether the remaining terms can stand on their own.
  • The parties' conduct and intent.
  • Any public policy considerations that apply.

The outcome often depends on the contract language and the laws governing the agreement.

What to do next…

  1. Review the contract to identify the provision that may be unlawful.
  2. Gather any documents and communications related to the agreement.
  3. Determine whether the concern involves the entire contract or only a specific term.
  4. Consider obtaining legal guidance before relying on or enforcing the agreement.

What to consider in your specific situation

  • The type of contract and business relationship involved.
  • The specific law or regulation that may have been violated.
  • Whether the alleged illegality affects the entire agreement or only one provision.
  • The parties' knowledge and intent when the contract was made.
  • The stage of performance when the issue was discovered.
  • Applicable federal, state, or local laws governing the contract.

Since every situation is different, consider getting more information through Rocket Copilot or an attorney review to move forward more confidently.

Explore more about contract enforceability and validity

Explore more about illegality or unenforceable purpose

A contract's validity may be affected by the legality of its purpose. These questions explore the enforceability of contracts involving illegal activity, what happens if only part of an agreement is illegal, and the legal consequences of refusing to perform an illegal contract.

Explore more legal topics and questions

Browse related topics to learn more about contracts, common clauses, business filings, and other legal issues that may apply to your situation.

Pro Reviewed
Published on 07/31/2026
Reviewed by Rocket Lawyer

At Rocket Lawyer, we follow a rigorous editorial policy to ensure every article is helpful, clear, and as accurate and up-to-date as possible. This page was created, edited and reviewed by trained editorial staff who specialize in translating complex legal topics into plain language, then reviewed by experienced attorneys to ensure legal accuracy.

Please note: This page offers general legal information, but not legal advice tailored for your specific legal situation. Rocket Lawyer Incorporated isn't a law firm or a substitute for one. For further information on this topic, you can Ask an Attorney.

Laura Bojart
Laura Bojart
Editorial Researcher and Copywriter

Laura Bojart is an SEO copywriter and editor at Rocket Lawyer. She researches legal and business topics and translates complex ideas into clear, practical content for everyday readers. With her background in journalism and endless curiosity, she approaches each subject by asking the questions readers are likely to have first, making legal information approachable and easy to understand even to those with no legal background.

Discover more articles: Rocket CopilotLegal answers