Lumen

How many years do I need to live in Spain to apply for Spanish citizenship?

Checked on

Spanish law requires 10 years of legal, continuous residence immediately before you apply for citizenship by residence. It is 5 years for refugees and 2 years for nationals by origin of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea or Portugal, and for Sephardi applicants. One year is enough in some cases, including marriage to a Spaniard.

Key facts

What The law says Source
General rule 10 years of residence Código Civil, art. 22.1
Refugees 5 years Código Civil, art. 22.1
Nationals by origin of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea or Portugal, and Sephardi applicants 2 years Código Civil, art. 22.1
Born in Spain; married to a Spaniard for 1 year and not separated; widow or widower of a Spaniard; born abroad to a parent or grandparent who was originally Spanish; and other listed cases 1 year Código Civil, art. 22.2
What kind of residence counts Legal, continuous and immediately before the application Código Civil, art. 22.3
Other conditions Good civic conduct and sufficient integration into Spanish society Código Civil, art. 22.4
Who decides The Minister of Justice, who can refuse for reasoned grounds of public order or national interest Código Civil, art. 21.2

The residence periods

The Civil Code sets the clock. The general rule is 10 years. Refugees need 5. Nationals by origin of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea or Portugal, and Sephardi applicants, need 2.

One year is enough for:

The law says the residence must be legal, continuous and immediately before the application in every case (Código Civil, art. 22.3). The regulation repeats that the applicant must prove legal residence in Spain for the periods and with the requirements set in the Civil Code (Real Decreto 1004/2015, art. 2). For the marriage case, a spouse living with a Spanish diplomat or consul posted abroad counts as legally resident in Spain.

Years are not the only test

You must also prove good civic conduct and a sufficient degree of integration into Spanish society (Código Civil, art. 22.4). The Minister of Justice grants citizenship by residence and can refuse it for reasoned grounds of public order or national interest (art. 21.2). A grant or a refusal can be taken to the administrative courts (art. 22.5).

Sources

  1. Código Civil, arts. 21–22 (consolidated text, BOE) checked 2026-10-25
  2. Real Decreto 1004/2015, de 6 de noviembre, Reglamento del procedimiento para la adquisición de la nacionalidad española por residencia, art. 2 (consolidated text, BOE) checked 2026-10-25

Change history

  • : Page created

This is general information, not legal advice, and Lumen is not a law firm. Rules change and offices differ: check the official sources above before you act. Found something wrong or out of date? Write to support@lumen.observer.