A quasi-contract, or a contract implied in law, is an obligation or series of obligations arising by operation of law without the mutual intention of the parties. There are two primary categories of quasi-contract: negotiorum gestio or restitution (which are similar but codified separately in the Civil Code of Québec) and unjust enrichment. Quasi contracts serve to remedy circumstances in which it would be inequitable for the courts not to recognise and enforce a moral obligation.
A quasi-contract is an involuntary agreement arising from law, rather than mutual consent. It encompasses two main types: negotiorum gestio or restitution (similar but distinct in the Civil Code of Québec) and unjust enrichment. Quasi contracts aim to rectify situations where it would be unjust for courts not to recognize and enforce a moral duty.