Civil law & contracts

Unjust Enrichment in Spain: When and How to Claim Your Money Back

By the AbogadoAI editorial team · Updated 18 July 2026 · 12 min read

🇪🇸 Read the original in Spanish

Have you ever felt that someone has financially benefited at your expense in a completely unjustified way, leaving you with a real financial loss? In the Spanish legal system, this situation is not left unprotected. It is addressed through a fundamental legal concept: enriquecimiento injusto (unjust enrichment) or enriquecimiento sin causa (enrichment without cause). Although it is not expressly regulated in detail in a single article of our Código Civil (Civil Code), it is a general principle of law consolidated by a century of jurisprudence from the Tribunal Supremo (Supreme Court). It is designed to restore the financial balance broken when one person enriches themselves at the expense of another's impoverishment without a contract, a law, or a just cause to legitimize it.

Unjust enrichment is a concept created by legal doctrine and case law, based on the principle that "no one should unjustly enrich themselves to the detriment of another." In Spanish civil law, its main objective is not to punish the person who gains, nor to award damages in the classic sense, but to restore the financial balance that has been unjustifiably broken.

Although the Spanish Código Civil does not contain a chapter exclusively dedicated to this concept, the jurisprudence of the Tribunal Supremo has derived it from the systematic interpretation of various provisions that reject enrichment without cause. Among them, the following stand out:

For Spanish courts (under the rules of the Ley de Enjuiciamiento Civil 1/2000 or Civil Procedure Act) to accept a lawsuit for unjust enrichment, jurisprudence strictly requires the coexistence of five cumulative requirements. If even one of them is missing, the claim will be dismissed.

The 5 Mandatory Requirements to Make a Claim

For judicial actions of unjust enrichment to succeed, the plaintiff must prove to the civil judge the existence of the following elements:

1. An enrichment of the defendant

There must be an increase in the defendant's assets. This enrichment can be positive (an increase in assets, such as receiving money, property, or a free service) or negative (a saving of expenses, meaning avoiding an outlay that they were legally responsible for making).

2. An impoverishment of the plaintiff

There must be a correlative financial loss in the claimant's assets. This impoverishment can consist of a transfer of assets, the loss of a legitimate lucro cesante (loss of profit), or the performance of work or services that have not been paid for.

There must be a direct link between the impoverishment of one party and the enrichment of the other. The benefit of the defendant must come directly from the financial sacrifice of the plaintiff.

4. Lack of justifying cause

This is the core of the claim. It must be proven that there is no legal reason to justify the transfer of assets. There must be no valid contract between the parties, no legal provision, and no donation (ánimo de liberalidad / intent of generosity) that supports one party keeping the benefit at the expense of the other.

5. Subsidiary nature of the action

The jurisprudence of the Tribunal Supremo has established that the action for unjust enrichment is subsidiary in most scenarios. This means that you cannot resort to it if you have another specific legal action available to claim (for example, an action for contractual liability, non-contractual liability, or rescission). It can only be exercised when no other legal avenue exists to repair the damage.

Practical Examples with Real Figures

To understand how this concept works on a day-to-day basis, we analyze two common scenarios in Spanish courts:

Example 1: Duplicate payment due to administrative error

Let's imagine that Carlos owns a commercial premises and has hired a renovation company to refurbish the space. The work is budgeted at €15,000. Due to an error by his accounting department, two identical bank transfers of €15,000 each are issued in the same month, totaling €30,000 received by the construction company.

The renovation company notices the error but decides to ignore Carlos's emails and does not return the excess money. In this case:

Example 2: Renovations on someone else's property before a breakup

María and Juan live together in a home owned exclusively by Juan. They decide to carry out a complete renovation of the kitchen and bathroom to improve liveability. María finances the works entirely out of her own pocket, spending a total of €12,000 on materials and labor, expecting to enjoy the home in the long term. Three months after the works are completed, the relationship breaks down and Juan demands that María leave the property.

Practical Steps: How to Claim Step-by-Step

If you find yourself in a situation of financial imbalance and decide to claim, you must follow an orderly legal strategy to ensure the success of your claim:

``` [Step 1: Gathering Evidence] │ ▼ [Step 2: Out-of-Court Claim (Burofax)] │ ▼ [Step 3: Attempted Mediation or Conciliation] │ ▼ [Step 4: Lawsuit (LEC)] ```

Step 1: Exhaustive gathering of evidence

Before starting any action, you must gather all documents that prove the transfer of value. This includes:

Step 2: Prior out-of-court claim

It is highly recommended to send a formal claim before going to court. The ideal method in Spain is the Burofax with acknowledgement of receipt and certified text. This document must detail clearly:

Step 3: Attempted mediation or conciliation act (Optional but recommended)

If the burofax has no effect, you can file a papeleta de conciliación (conciliation petition) before the Juzgado de Paz (Justice of the Peace) or the Juzgado de Primera Instancia (Court of First Instance) of the defendant's domicile. This is a quick and inexpensive procedure that seeks to have the defendant acknowledge the debt and reach a payment agreement without the need for a formal trial.

Step 4: Filing the civil lawsuit

If the friendly route fails, a civil lawsuit must be filed before the Juzgados de Primera Instancia. Depending on the amount claimed, the procedure will vary according to the Ley de Enjuiciamiento Civil (LEC):

Deadlines, Amounts, and Key Figures You Must Know

Time is a critical factor in Spanish civil law. You cannot claim indefinitely. These are the key figures and deadlines you must keep in mind:

Common Mistakes to Avoid When Claiming

Initiating a claim of this type without proper preparation can lead to losing the lawsuit and being ordered to pay court costs (condena en costas), which means paying the other party's lawyers. Avoid these mistakes:

Frequently Asked Questions (FAQ)

Can I claim if I paid someone else's debt by mistake?

Yes. The Código Civil specifically regulates payment by a third party. If you pay someone else's debt without them knowing or against their express will, you can claim reimbursement for whatever part of the payment was useful to them (Article 1158 of the Código Civil). This is a direct application of the principle of unjust enrichment, as the debtor has been freed from a financial burden at your expense.

If my ex-partner stayed living in the apartment I pay for, is there unjust enrichment?

It depends on the circumstances and whether there is a court ruling on divorce or child custody measures. If a judge assigned the use of the home to your ex-partner to protect minor children, there is a legal cause (the court ruling), so there is no unjust enrichment. However, if there are no children or ruling, and you continue to pay 100% of the mortgage on a flat that belongs to both of you while only one enjoys it, you could claim exclusive use or compensation for the administration of common property.

What happens if the enriched person acted in good faith and no longer has the money?

Good faith does not exempt someone from the obligation to restore unjust enrichment. The difference lies in the scope of the return. If the person acted in good faith (they did not know the money did not belong to them), they are only obliged to return the item or the amount equivalent to the enrichment they still retain. If they acted in bad faith (knowing perfectly well it was an error), they must return not only the original amount but also the accrued interest and answer for any possible damages caused.

Can this concept be applied in the workplace?

Yes, very commonly. This happens when an employee performs duties of a higher professional category than the one recognized in their contract without receiving the salary corresponding to that higher category. Since there is no cause to justify the company benefiting from skilled work while paying less, the labor courts award salary differences based on the unjust enrichment of the company.

Summary

General legal information, not personalised legal advice. For your specific situation, ask your question for free at AbogadoAI — answers grounded in Spanish law (BOE), in English.

Have a specific legal question?

Ask AbogadoAI and get an answer based on Spanish law (BOE), with sources — in English.

Ask for free

This is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.