A defense against
enforcement of a contract
, in the event that the purpose behind
one of the parties
entering into the contract is eliminated by unforeseen events. Also called frustration of purpose, this defense applies only when both parties knew of the purpose behind the canceling party's
involvement in the contract.