There are multiple definitions - click on the translation that matches your context.

contrato ilícito

substantivo

full

illegal contract

noun

Definitions of illegal contract

English

a contract that is not allowed by law or will not be enforced by law

Money paid or property transferred under an illegal contract cannot normally be recovered.