A void contract cannot be enforced by law. An agreement to carry out an illegal act is an ezample of a void agreement. For example, a contract between drug dealers and buyers is a void contract simply because the terms of the contract are illegal.