Immigration & residency

When Do You Lose Your Residency in Spain? Expats Guide

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

🇪🇸 Read the original in Spanish

Maintaining legal residency in Spain is the fundamental pillar upon which thousands of foreigners build their life projects, family stability, and professional futures. However, a residency authorization is not an absolute and indefinite right; it is subject to strict compliance with certain requirements of physical presence and legal conduct within the national territory. Many foreign citizens lose their legal status not out of a desire to break the law, but out of simple ignorance of the permitted periods of absence or the consequences of committing a criminal or administrative offense. In this article, we will analyze in depth, under current Spanish regulations, the exact causes that lead to the loss of residency in Spain, how to avoid it, and what options exist to recover it.

The loss of resident status in Spain does not occur arbitrarily. It is meticulously regulated by the Spanish legal system, primarily through the *_Ley Orgánica 4/2000, de 11 de enero, sobre derechos y libertades de los extranjeros en España y su integración social_ (known as the Ley de Extranjería / Immigration Law), and its implementing regulation, the _Real Decreto 557/2011, de 20 de abril_ (Reglamento de Extranjería / Immigration Regulation)*.

Likewise, for European Union citizens and their direct family members, _Real Decreto 240/2007, de 16 de febrero_, which transposes the EU Directive on free movement, applies.

Spanish regulations clearly distinguish between two ways of losing residency:

  1. *The expiration/extinction of the authorization (extinción de la autorización):* This occurs due to the fulfillment of certain objective conditions (such as prolonged absences, failure to renew, or the loss of the requirements that gave rise to the visa).
  2. *Revocation or loss due to sanction (revocación):* This stems from infringing conduct by the foreign citizen, mainly the commission of criminal offenses or serious administrative infractions.

Main Causes of the Loss of Temporary Residency

Temporary residency (residencia temporal) is that which authorizes a stay in Spain for a period exceeding 90 days and under 5 years. As this is a provisional status, the Administration is particularly rigorous regarding compliance with its limits.

1. Absences from Spanish Territory (The 6-Month Limit)

This is the most common cause of involuntary loss of residency. According to Article 162 of the Reglamento de Extranjería, temporary residency authorization will expire when the holder remains outside of Spain for more than 6 months within a period of 1 year.

2. Failure to Renew the Authorization

Temporary residency must be renewed periodically (generally at the end of the first year, and then every 2 years). If the foreigner does not submit the renewal application within the legal timeframe—which begins 60 calendar days before the card's expiration date and extends up to 90 calendar days after it—the authorization expires. Submitting it after the 90 days post-expiration implies falling into a sudden irregular status (situación irregular sobrevenida).

3. Disappearance of the Requirements that Motivated the Granting

If residency was obtained due to a specific circumstance and this circumstance disappears without the corresponding modification of the card being made, residency can be lost. For example:

The Loss of Long-Term Residency

Long-term residency (residencia de larga duración, formerly permanent residency) authorizes one to reside and work in Spain indefinitely under the same conditions as Spanish citizens. Although it offers much higher legal protection, it is not immune to loss.

According to Article 166 of the Reglamento de Extranjería, long-term residency is lost due to:

1. Continuous Absence from the European Union

The time limit here is much more flexible, but absolute. Long-term residency is lost when the holder remains outside the territory of the European Union for 12 consecutive months.

2. Obtaining Long-Term Residency in Another EU Member State

If the foreigner moves to another country in the European Union and obtains long-term resident status there, they will automatically lose the one they were granted in Spain.

The Community Regime (EU Citizens and Family Members)

Citizens of the European Union, the European Economic Area (Iceland, Liechtenstein, Norway), and Switzerland, as well as their family members (holding a tarjeta de familiar de ciudadano de la UE / EU citizen family member card), are governed by Real Decreto 240/2007.

Loss of Residency Due to Criminal Records or Security Reasons

Article 57 of the Ley de Extranjería establishes that the commission of crimes is a cause for expulsion from the national territory, which entails the immediate loss of any residency authorization.

Practical Examples of Loss of Residency

To better understand how these rules operate on a day-to-day basis, we analyze two common scenarios:

Example 1: The Case of Absence for Family Reasons

> María, a Colombian national, holds a temporary residency authorization for family reunification (reagrupación familiar) in Spain. Due to her mother's serious illness, she travels to Bogotá on January 10th. She remains there caring for her relative until July 25th of the same year, the date on which she returns to Madrid. > > Having been outside of Spain for a total of 6 months and 15 days uninterruptedly (exceeding the limit of 6 months in a year), the Immigration Office (Oficina de Extranjería), upon detecting the passport control at the airport, initiates an extinction file for her temporary residency card. María has lost her legal residency despite having a case of force majeure, as she did not request prior authorization or fit her situation into the exceptions specified by law.

Example 2: The Limit of Long-Term Residency

> Ahmed, a long-term resident in Spain, decides to return to Morocco to start an oil export business. He rents out his flat in Barcelona for €850 per month to maintain an income in Spain and travels to his country of origin. Ahmed returns to Spain for a visit every 11 months to see his friends and check on his property, staying for one week in Spanish territory during each trip. > > Since Ahmed has not remained outside the territory of the European Union for 12 consecutive months (he interrupts the period with his return visits before reaching the one-year mark), his long-term residency authorization in Spain remains fully valid and cannot be extinguished due to absence.

Practical Procedures: What to Do If an Extinction Procedure Is Initiated

If the Oficina de Extranjería detects a cause for extinction, it will initiate an administrative procedure de oficio (on its own initiative). These are the steps you must follow:

  1. Notification of the Commencement Agreement: The foreign citizen will receive a formal notification at their home address or through the electronic headquarters (sede electrónica) of the Administration. This document details the reasons why the administration intends to extinguish the residency.
  2. *Allegations Stage (Trámite de alegaciones): A period of 15 business days* is granted to present arguments, submit documents, and propose any evidence deemed appropriate (for example, official medical certificates, employment contracts abroad that justify the absence, etc.).
  3. Resolution by the Administration: The Government Delegation (Delegación del Gobierno) or Sub-delegation will issue a resolution within a maximum period of 3 months. If the extinction is confirmed, the obligation to leave the national territory within a determined period (usually 15 days) will be notified.
  4. Administrative and Judicial Appeals: Against the resolution of extinction, an Administrative Appeal (Recurso de Alzada or Recurso de Reposición) can be filed within 1 month. If it is dismissed, the judicial route is opened by filing a Contentious-Administrative Appeal (Recurso Contencioso-Administrativo) before the Contentious-Administrative Courts within 2 months.

Mistakes You Must Avoid

To protect your legal status in Spain, it is essential that you avoid making the following recurring mistakes:

Frequently Asked Questions (FAQ)

If I lose my long-term residency due to absence, can I recover it?

Yes. Spanish legislation allows for the recovery of long-term residency through a simplified, specific procedure at the Oficina de Extranjería, without the need to start from scratch (temporary residency). You must prove that you do not have a criminal record and that you have sufficient financial means or an employment contract.

Does time spent as a student count towards long-term residency?

No. A stay for study purposes is a stay authorization (autorización de estancia), not residency (residencia). Therefore, years spent in Spain on a student visa only count at 50% towards obtaining long-term residency, and they do not prevent its loss if you leave the country.

Do I lose my residency if I become unemployed (en el paro)?

Not automatically. If you have a temporary work residency and become unemployed, you can renew your authorization as long as you are receiving unemployment benefits (prestación por desempleo), a subsidy, or if you prove that your spouse has sufficient financial resources to support the family unit.

What happens to my residency if I divorce my Spanish or EU spouse?

If you have an EU citizen family member card (tarjeta de familiar de ciudadano de la UE), divorce can affect your residency. However, you will retain your right of residency if the marriage lasted at least 3 years, of which at least 1 year was spent in Spain, or if you have custody of the common children. You must communicate the divorce to the Oficina de Extranjería within 3 months.

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.