Even if an agreement has free consent and competent parties, the law will refuse to enforce it if its purpose is illegal or harmful to society. Section 23 serves as the moral gatekeeper of the Indian Contract Act, 1872.
In this unit, we explore what makes an object or consideration unlawful, examine agreements that are opposed to public policy, and analyze specific agreements declared void by the statute—such as agreements in restraint of trade and wagers.