01 / 20

The Illegality
Defense

When a contract's subject matter or purpose breaks the law, courts may refuse to enforce it. Learn to determine when illegality bars enforcement.

Bar Exam (Uniform)

What Is the Illegality Defense?

The illegality defense is a contract defense raised when the subject matter or purpose of an agreement violates a statute, regulation, or public policy. If a court finds the bargain illegal, it generally will not enforce the contract for either party.

Two Kinds of Illegality

Illegal Subject Matter
The thing bargained for is itself unlawful — e.g., a contract to sell illegal drugs or to commit a crime.
Illegal Purpose / Performance
The subject is legal, but a party intends to use it for an unlawful end, or performance requires breaking the law.

Why Courts Refuse to Enforce

Contract (illegal object) seeks enforcement Court declines Three policy reasons: 1. Deter unlawful bargains 2. Protect public integrity of courts 3. Avoid rewarding wrongdoers

The Core Rule

Exceptions: When Enforcement Survives

1
Not in pari delicto. One party is significantly less at fault — that innocent party may recover.
2
Protected class. The law was meant to protect the party seeking relief (e.g., a regulatory statute protecting consumers).
3
Locus poenitentiae. A party withdraws before the illegal purpose is carried out and may recover what was paid.
4
Severability. The illegal portion can be removed, leaving a lawful, enforceable agreement intact.

Malum in Se vs. Malum Prohibitum

Malum in Se
Inherently wrong (e.g., contract to commit murder). Courts always refuse enforcement; exceptions rarely apply.
Malum Prohibitum
Wrong only because prohibited by regulation (e.g., unlicensed service). Courts weigh the statute's purpose — exceptions may save enforcement.

Step-by-Step Analysis

1
Identify the illegality. Is the subject matter, consideration, or purpose unlawful?
2
Classify it. Malum in se or malum prohibitum? Formation-time or subsequent?
3
Assess the parties' knowledge and intent. Did both know? Who is more at fault?
4
Check for exceptions. In pari delicto, protected class, withdrawal, or severability.
5
Conclude. Is the contract void, voidable, or enforceable in part?

Example 1: Illegal Subject Matter

Facts: A agrees to pay B \(\$10{,}000\) to set fire to a competitor's warehouse. A pays \(\$5{,}000\) up front. B refuses to perform.

Example 2: Unlicensed Provider

Facts: C, an unlicensed electrician, wires D's home for \(\$8{,}000\). The licensing statute exists to protect public safety. C sues for the unpaid fee.

Example 3: Knowledge of Purpose

Facts: E sells a printing press to F. The press is lawful. F privately plans to print counterfeit currency. E suspects nothing. F defaults on payment and E sues.

Common Mistakes

✕ Treating all illegality alike
Malum in se and malum prohibitum get different treatment. Always classify the wrong first.
✕ Ignoring knowledge
For illegal-purpose cases, the innocent party can still enforce. Don't void the whole deal automatically.
✕ Forgetting exceptions
In pari delicto, protected class, and withdrawal can all rescue recovery for one party.

Summary Table

Illegal Subject Illegal Purpose
Status of contractVoid from startLawful subject
Who is barred?Both partiesParty who knew/aided
Innocent recovery?RarelyYes
Key exceptionNot in pari delictoLack of knowledge

Check Your Understanding

Question 1 of 5

G hires H to bribe a city inspector. The deal collapses. Which best describes enforceability?

Question 2 of 5

An unlicensed contractor sues a homeowner for fees. The licensing law protects public safety. The most likely result?

Question 3 of 5

J sells a lawful chemical to K. J has no idea K plans to make illegal explosives. K defaults. Can J enforce?

Question 4 of 5

L pays M for an illegal scheme but withdraws and demands the money back before the scheme is carried out. Which doctrine helps L?

Question 5 of 5

A contract contains one illegal covenant and several lawful, independent terms. What is a court most likely to do?

Key Takeaways

1
Classify the wrong — malum in se vs. malum prohibitum drives the analysis.
2
Knowledge matters — innocent parties can often still enforce illegal-purpose deals.
3
Look for exceptions — in pari delicto, protected class, withdrawal, and severability can rescue recovery.