Short answer. Possibly. Article 1421 bars only third persons whose interests are not directly affected from raising a contract's illegality. A creditor whose ability to collect is impaired because a debtor hid assets in an illegal contract has a direct stake in that contract's validity — he is not the outside stranger the article excludes, so he may raise the illegality.

What the law says

The defense of illegality of contract is not available to third persons whose interests are not directly affected.

Civil Code, Article 1421 — Illegality and Third Persons. Read the full provision →

The general rule and its exception

Article 1421 exists so that outsiders cannot meddle in a bargain that is none of their business. A person who has no legal interest at stake cannot go to court and demand that someone else's contract be declared illegal and void. But the article is careful to say the defense is unavailable to third persons whose interests are 'not directly affected' — implying, by its own wording, that someone whose interests are directly affected is not shut out.

When a creditor is directly affected

A creditor is not a stranger to everything his debtor does with his property. If the debtor enters into an illegal contract that removes assets from what the creditor could otherwise reach, the creditor's ability to collect is concretely harmed by that contract's existence. That harm is different from the vague, indirect interest an unrelated bystander might claim, and it is the kind of direct effect the article contemplates as an exception to the general bar.

How this differs from rescission

This is a separate route from asking a court to rescind a transfer made in fraud of creditors, which targets contracts that are merely voidable for lesion or fraud rather than void for illegality. Where the underlying contract itself violates the law, a directly affected creditor can point to that illegality directly, rather than having to prove the more specific badges of fraud that a rescission action for creditor protection would otherwise require.

What a creditor still has to show

Being owed money by one of the contracting parties is not, by itself, enough — the creditor has to show that the illegal contract actually stands in the way of collecting what he is owed, not merely that it exists somewhere in his debtor's affairs. Courts still look at whether the impairment is real and direct before allowing an outsider to invoke someone else's illegal bargain.

Cases citing this provision

These Supreme Court decisions cite the provision above. We list them so you can read them yourself; the summaries of what each decided are not ours to give.

Related provisions

Note. Statute text quoted on this page is reproduced from the official enactment and is linked to the full provision. The explanation around it is general legal information from Vivas & Nobles Law Office, not legal advice. Whether it applies to your situation depends on facts only a lawyer reviewing them can assess.