Under Section 23 of the Indian Contract Act, any agreement where the object or consideration is unlawful is void. This includes agreements involving illegal acts, fraud, property damage, or anything against public policy. Such agreements have no legal effect from the outset. They are neither valid (enforceable), voidable (can be affirmed), nor contingent (conditional).