Family law

Use of the Family Home After Divorce in Spain: Expats Guide

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

🇪🇸 Read the original in Spanish

The breakdown of a marriage is one of the most complex processes a person can face, not only due to the emotional toll but also because of the far-reaching financial and logistical decisions involved. Among all of these, determining who gets to stay in the shared home is usually the main source of conflict, especially when there are minor children or a clear economic disparity between the spouses. In the Spanish legal system, the destination of the matrimonial home is not necessarily decided based on who owns the property, but rather according to constitutionally backed protection criteria. Understanding how the allocation of the use of the family home works after a divorce is essential to face the process with legal certainty and avoid prolonged litigation that affects the well-being of the entire family.

Family law in Spain regulates the destination of the shared home by seeking a balance between property rights and the protection of the most vulnerable members of the breaking relationship. The reference regulatory framework is built upon three fundamental pillars that the courts apply rigorously.

The Civil Code and the Best Interests of the Minor

The leading rule on this matter is *Article 96 of the Código Civil (Civil Code)*. This provision establishes a public policy principle that judges must apply as a priority: in the absence of an agreement between the spouses approved by the judge, the use of the family home and the objects of ordinary use within it corresponds to the common minor children and the spouse in whose custody they remain.

This criterion of automatic allocation to the custodial parent when there are minor children is almost absolute, as the best interests of the minor (interés superior del menor, under Article 39 of the Spanish Constitution) prevail over the property rights of either parent. It does not matter if the home is the exclusive property of one of the spouses, if it is community property (gananciales), or if it is rented; the use will be assigned as a priority to guarantee the housing stability of the children.

Law 15/2005 and the Flexibilisation of Measures

The entry into force of **Ley 15/2005, de 8 de julio (Law 15/2005 of July 8)** introduced important modifications to the Civil Code regarding separation and divorce. This reform eliminated the need to claim grounds for divorce and facilitated the adoption of joint custody. Regarding the home, the jurisprudence arising after this law has been modulating the rigidity of indefinite use, allowing temporal limits to be set on the allocation of the home when a joint custody regime is chosen or when there are no minor children, seeking to avoid situations of material injustice for the non-using parent.

Organic Law 1/2004 on Integrated Protection Measures Against Gender Violence

In situations of matrimonial crisis where there are indications of gender violence, **Ley Orgánica 1/2004 (Organic Law 1/2004)* comes into play. Under this law, the Juzgados de Violencia sobre la Mujer* (Courts of Violence Against Women) have exclusive jurisdiction to adopt criminal and civil precautionary measures simultaneously.

According to Article 44 of said law, the gender violence judge can allocate the use of the family home to the victim and the children living with her, ordering the mandatory departure of the alleged aggressor from the home, regardless of who owns the property. This civil protection measure has an initial maximum validity of 30 days if issued as an urgent provisional measure, and must be ratified or modified in the subsequent family court proceedings.

Judicial Criteria for Allocating the Use of the Home

When there is no convenio regulador (regulatory agreement) drafted by mutual agreement, the family judge will decide the destination of the property based on three possible scenarios:

Scenario A: With Minor Children (Sole Custody)

This is the clearest and most rigid scenario. The use is allocated to the parent who holds individual guardianship and custody of the minor children. The jurisprudence of the Tribunal Supremo (Supreme Court) has reiterated that this allocation does not admit temporal limitations while the children are minors. The right of use of the minors and the custodial parent is a family right that prevails over the property rights of third parties or the other spouse.

Scenario B: With Minor Children (Joint Custody)

In a joint custody (custodia compartida) regime, the allocation of the home is more complex, as both parents are equal custodians. The Supreme Court has established that, in these cases, an indefinite allocation of the home is not appropriate. Judges usually opt for two solutions:

  1. *The "nest home" (casa nido) system (rarely recommended by psychologists and courts):* The minors remain in the home and the parents rotate in it for periods (weekly, bi-weekly, or monthly).
  2. Temporary allocation to the parent most in need of protection: The use of the home is assigned to the parent with less economic capacity to access a decent home, but always with a strict temporal limit (for example, 1 or 2 years), after which the home must be sold or liquidated.

Scenario C: Without Children or with Adult Children

If the marriage has no children, or if they are already of legal age and economically independent, the allocation criterion changes radically. The use of the home will be granted to the spouse who represents the "interest most in need of protection" (interés más necesitado de protección).

This concept is evaluated by analysing:

In these cases, the allocation of use is always temporary (generally between 1 and 5 years) to allow the disadvantaged spouse to rebuild their life and find an alternative housing option.

Step-by-Step Practical Steps to Request or Modify the Use of the Home

If you are in the process of a divorce or need to modify measures already established regarding the family home, you must follow these procedural steps:

  1. *Attempt Mediation and Negotiate a Mutual Agreement (Mutuo Acuerdo):*

This is the priority step. Assisted by their lawyers, the spouses draft a Convenio Regulador (Regulatory Agreement) where they agree on who is allocated the use of the home, for how long, and how expenses will be covered. This agreement is presented to the court for judicial approval or before a notary (if there are no minor children).

  1. *Filing the Divorce Lawsuit (Contested Route - Vía Contenciosa):*

If an agreement is impossible, a contested divorce lawsuit must be filed before the Juzgados de Primera Instancia (Courts of First Instance) of the place of the matrimonial home. The lawsuit must expressly request the allocation of the use of the home, providing proof of need (payslips, contracts, children's expenses).

  1. *Requesting Provisional Measures (Medidas Provisionales - Optional but Recommended):*

Since a contested divorce trial can take between 6 and 12 months, a hearing for Medidas Provisionales (Provisional Measures under Article 773 of the Civil Procedure Act) can be requested. Within approximately 30 to 60 days, the judge will issue an order (auto) resolving who temporarily stays in the home while the main trial is processed.

  1. The Trial Hearing and Judgment:

The trial is held where both parties present their arguments and evidence. The judge will issue the Divorce Judgment (Sentencia de Divorcio), definitively determining (appealable before the Audiencia Provincial / Provincial Court) the allocation of the use of the family home.

  1. *Registration in the Property Registry (Registro de la Propiedad):*

Once the judgment is final, it is essential to register the right of use of the home in the Registro de la Propiedad (Property Registry). This prevents the owning spouse from selling or mortgaging the home to a third party in good faith without the consent of the user spouse.

  1. Modification of Measures Procedure (If Circumstances Change):

If circumstances change substantially in the future (for example, the children reach the age of majority or the user parent cohabits with a new partner in the home), a lawsuit for Modificación de Medidas (Modification of Measures) must be filed to terminate or limit the right of use.

Deadlines, Amounts, and Key Figures You Must Know

To financially plan a divorce process in relation to the home, it is vital to precisely manage the following deadlines and economic costs in the Spanish system:

Practical Examples and Cost Simulations

To illustrate how these rules are applied in Spanish reality, we analyse two common scenarios:

Example 1: Sole Custody with an Outstanding Mortgage

Example 2: Joint Custody and Termination Due to a New Partner

Mistakes You Must Avoid

Frequently Asked Questions (FAQ)

What happens to the home if the children turn 18 but are still studying and have no income?

Once the children reach the age of majority, the automatic application of Article 96.1 of the Civil Code ceases. The Supreme Court determines that the age of majority of the common children opens the possibility of terminating the right of use of the family home, as maintenance/child support (pensión de alimentos, which includes sustenance and housing) can be satisfied in other ways—for example, by providing a cheaper rental home instead of maintaining the use of an expensive property. The judge will assess the economic circumstances of both parties to decide whether to terminate the use or grant a very limited temporary extension.

If the home belongs to my in-laws (ceded for free), can they evict us after the divorce?

This is the classic case of precario (tenancy at will/gratuitous license). If the parents of one of the spouses ceded the home for free so the married couple could live in it without paying rent, jurisprudence establishes that, after the divorce, the owners (the in-laws) can file a desahucio por precario (eviction lawsuit for gratuitous use) to recover their property. Although the divorce judge may have allocated the use of the house to the non-family spouse (for example, to the daughter-in-law with the children), this matrimonial resolution does not bind third-party owners, who have the right to recover their property.

Can I sell my share of the house if my ex-partner has been allocated its use by the judge?

Yes, you can legally sell your joint-ownership share (proindiviso) of the home or initiate an action for the division of the common property (división de la cosa común) to sell the property at a public auction. However, any buyer or successful bidder of the home must strictly respect the right of use judicially allocated to your ex-partner and children until it is terminated by legal causes (children reaching the age of majority, expiration of the agreed period, etc.). In practice, this makes the market value of a home with a registered right of use extremely low.

Is the use of the home terminated if my ex-partner moves their new boyfriend/girlfriend into the house?

Yes, in accordance with the doctrine established by the Supreme Court in its landmark judgment of November 23, 2018. The introduction of a third person in a stable cohabitation arrangement terminates the character of "family home," as the property starts serving a family unit different from the one initially protected. To make this termination effective, the non-using owner must file a lawsuit for modification of measures in the family court.

In 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.