The state of being against the law or public policy; one of the factors which can invalidate a contract if it is present.