---
title: "How many years of residence do I need for Spanish citizenship?"
canonical_url: https://www.247spain.es/answers/how-long-to-get-spanish-citizenship
language: en
last_checked: 2026-10-22
description: "The general rule is ten years of legal residence. It drops to five years for refugees, two years for nationals of origin of Ibero-American countries, Andor"
---

# How many years of residence do I need for Spanish citizenship?

The general rule is ten years of legal residence. It drops to five years for refugees, two years for nationals of origin of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea or Portugal and for Sephardic Jews, and one year in cases such as being married to a Spanish national for a year. The residence must be legal, continuous and immediately before you apply, so years as a visiting owner do not count.

Where this comes from: art. 22 Codigo Civil, BOE consolidated text, read 2026-10-22; art. 22 Codigo Civil, BOE consolidated text, read 2026-10-22.

Checked against the official source on 2026-10-22.

- [art. 22 Codigo Civil, BOE consolidated text, read 2026-10-22](https://www.boe.es/buscar/act.php?id=BOE-A-1889-4763#a22)

## Related

- [Work it out for your own property: Your 90 days in Spain](https://www.247spain.es/day-counter)
- [Questions and answers](https://www.247spain.es/answers)
- [How many days can I spend in Spain without becoming resident?](https://www.247spain.es/answers/how-long-can-i-stay-in-spain-without-residency)
- [How are days counted for Spanish tax residency?](https://www.247spain.es/answers/how-days-are-counted-for-spanish-tax-residency)
- [What happens if I count as tax resident in both Spain and my home country?](https://www.247spain.es/answers/tax-resident-in-spain-and-home-country-tie-breaker)
- [Do EU citizens have to register if they stay in Spain more than three months?](https://www.247spain.es/answers/eu-citizen-staying-in-spain-over-three-months)
- [Can I still get a Spanish golden visa by buying property?](https://www.247spain.es/answers/spanish-golden-visa-closed)
- [What makes me a tax resident in Spain?](https://www.247spain.es/answers/three-tests-for-spanish-tax-residency)
- [Does owning a holiday home in Spain make me a Spanish tax resident?](https://www.247spain.es/answers/does-owning-a-home-in-spain-make-me-resident)
- [Do trips back home stop the 183-day count in Spain?](https://www.247spain.es/answers/do-short-trips-home-break-the-183-days)
- [Getting an NIE number in Spain as a foreign property owner](https://www.247spain.es/guides/getting-a-nie-number)
- [Moving to Spain as a property owner: residency and visas](https://www.247spain.es/guides/moving-to-spain-residency-and-visas)
- [Spanish tax residency and the 183 day rule for property owners](https://www.247spain.es/guides/spanish-tax-residency-and-the-183-day-rule)
- [About Spain 24/7](https://www.247spain.es/about)
