Consent in contract law is a fundamental requirement ensuring that all parties involved in a contract have willingly agreed to the terms without any form of coercion, fraud, or misrepresentation. It is essential for the validity of a contract, as lack of genuine consent can render a contract void or voidable.