Question
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?
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…
- Review the contract to identify the provision that may be unlawful.
- Gather any documents and communications related to the agreement.
- Determine whether the concern involves the entire contract or only a specific term.
- 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.

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.

Need to make sure your contract is legally enforceable?
Ensuring your contract is legally enforceable is one of the most important steps to protecting your business. Whether you're drafting a new agreement, reviewing terms for validity, or figuring out how to protect your interests, Rocket Lawyer gives you the tools and support to help you move forward with confidence:
- Rocket Copilot Q&A for instant legal information
- Ask an Attorney for human responses within a business day
- Document insights, Contract Review, and other smart legal tools
Sign your next valid contract with trusted legal support.
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.
- Contract negotiation
- Contract enforceability and validity
- Breach of contract
- Term and termination clauses
- Relationship and scope clauses
- Intellectual property and confidentiality clauses
- Payment and work terms clauses
- Change and inclusion clauses
- Risk and liability clauses
- Dispute resolution clauses
- Required filings and deadlines
- Changes to a business
- Operating without proper registration
- What filings are required to start a business
Disclosures
- This page offers general legal information, 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.