Duress refers to a situation where one party is forced to enter into a contract against their will due to threats or coercion, while undue influence occurs when one party takes advantage of a position of power over another, leading to an unfair agreement. Both concepts challenge the notion of voluntary consent in contract law, impacting the enforceability of agreements formed under these circumstances.