Guide
Spanish citizenship by residency: how the clocks actually run
By Covered Abroad Research Desk · Last verified July 2026
The four clocks in Article 22
Spain does not run one citizenship clock — it runs four, all written into Article 22 of the Código Civil:
- 10 years — the general rule for residence-based nationality.
- 5 years — for people who have obtained refugee status.
- 2 years — for nationals of origin of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea or Portugal, and for Sephardic Jews.
- 1 year — for a list of special cases: someone born on Spanish territory, someone married to a Spaniard for a year and not separated (legally or in fact), the widow or widower of a Spaniard where no separation existed at death, and someone born abroad to a parent or grandparent who was originally Spanish.
Source: Código Civil, artículo 22 (BOE consolidated text), read 6 September 2026.
Legal, continuous, and immediately before the application
Article 22.3 adds the condition that decides most files: in all cases the residence must be legal, continued and immediately prior to the petition. Time spent in Spain without a residence permit does not count, and neither do old years of residence separated from the application by a gap abroad. The clock that matters is the unbroken, documented one ending on the day you file.
That is also where insurance quietly enters the picture: the residence permits that make those years "legal" — non-lucrative visas, student stays, work permits — each carry their own renewal file, and most renewals ask for proof of health cover. A lapse that breaks a permit can break the citizenship clock behind it.
Source: Código Civil, artículo 22.3 (BOE consolidated text), read 6 September 2026.
60-second check
Not sure the policy you have meets your destination's written rule? Run it through the policy check now, before you build the rest of the file around it.
Check my policyGood civic conduct and the integration tests
Article 22.4 requires the applicant to prove buena conducta cívica (good civic conduct) and a sufficient degree of integration in Spanish society in the Civil Registry procedure. In practice, integration is tested: the Instituto Cervantes runs the CCSE — the test of constitutional and sociocultural knowledge of Spain — and describes it as one of the requirements established in law for acquiring nationality by residence. We cover the exam itself in a separate guide.
Source: Instituto Cervantes — Qué es la prueba CCSE, read 6 September 2026.