A reason why the plaintiff or prosecutor should not prevail on a cause of action or demand for relief. A defense can either allege a failure to state a claim, or affirm the existence of a claim and present additional reasons that prevent the plaintiff or prosecutor from obtaining the result requested.
See Failure to state a claim, Affirmative defense, Complete defense, Partial defense, Excuse, and Justification.