A quasi-contract, also known as an implied-in-law contract, is a legal concept that describes a contract that is created by the court to prevent one party from benefiting unjustly at the expense of another party. Unlike a traditional contract, a quasi-contract does not arise from the mutual agreement between the parties. Instead, it arises from the implied obligation between the parties.

To understand the meaning of a quasi-contract, it is important to understand the legal principle of unjust enrichment. Unjust enrichment occurs when one party receives a benefit at the expense of another party without any legal justification. In this situation, the law implies a contractual obligation to prevent the unjust enrichment of one party.

For example, imagine a contractor who performs work for a homeowner, but the two parties never entered into a written contract. If the homeowner benefits from the work done by the contractor without paying for it, the contractor can invoke the legal principle of unjust enrichment. In this case, the court may impose a quasi-contract, which would require the homeowner to pay the contractor for the work done.

Another example of a quasi-contract arises when a person mistakenly pays a debt that is not owed. In this case, the person who made the payment can invoke the legal principle of unjust enrichment to recover the money paid. The court would impose a quasi-contract, requiring the party who received the payment to return the money.

It is important to note that a quasi-contract is not an actual contract. Rather, it is a legal tool used by the courts to prevent unjust enrichment. It operates as if there was a contract between the parties, but it is not based on an actual agreement.

In summary, a quasi-contract is a legal concept that arises when one party receives a benefit at the expense of another party without any legal justification. In such cases, the court may impose a quasi-contract to prevent unjust enrichment. While not an actual contract, a quasi-contract operates as if there was an agreement between the parties.