Spanish nationality by residence turns years of legal life in Spain into a permanent Spanish and European Union (EU) passport. This guide explains, step by step and with the law in hand, how long you need, what the Ministry of Justice checks and how to avoid the mistakes that delay or sink applications in 2026.
On this page
- 1) What Is Spanish Nationality by Residence?
- 2) How Long Do You Need to Live in Spain?
- 3) The Three Core Requirements
- 4) The Integration Exams: DELE A2 and CCSE
- 5) Documents You Need
- 6) Step by Step: From Application to Your Spanish DNI
- 7) Real-Life Example
- 8) Dual Nationality and Renunciation
- 9) Why Applications Get Delayed or Refused
- 10) If Your Application Is Delayed or Refused
- 11) Keep Your Residence Safe While You Wait
- 12) Benefits of Spanish Citizenship
- 13) Can Spanish Nationality Be Lost?
- 14) Official Resources and Forms
- 15) Spanish Nationality by Residence Guides by Topic
- FAQs
Want a Lawyer to Handle Your Nationality Application?
We audit your residence history, prepare a complete file, submit it online on your behalf and follow it up to the oath and your first DNI (Spanish national identity document). At MigratioLex, we review your specific case, not a generic checklist. We respond within 24 hours, in English, French or Spanish.
1) What Is Spanish Nationality by Residence?
Nationality by residence is the route for foreigners who have lived legally in Spain for a set number of years and can show good civic conduct and integration into Spanish society. It is regulated in article 22 of the Spanish Civil Code (Código Civil), and the procedure is set out in Royal Decree 1004/2015 and Order JUS/1625/2016. The application is decided by the Ministry of Justice, and the decision is a grant, not an automatic right: you must prove every requirement.
Once granted, sworn and registered, Spanish nationality is permanent. You no longer renew a residence card, you become an EU citizen with the right to live and work anywhere in the EU, and you can vote in Spanish and European elections.
If you already know you qualify and want the process handled from start to finish, our Spanish nationality by residence service covers the residence audit, the file, the online filing and the follow-up.
2) How Long Do You Need to Live in Spain?
Article 22 of the Civil Code sets different residence periods depending on your nationality and personal situation. Whatever the period, the residence must be legal, continuous and immediately prior to the application (article 22.3).
Residence Required for Spanish Nationality
Years of legal, continuous residence immediately before applying (Civil Code, art. 22)
One year of residence is enough for:
- People born in Spanish territory.
- People who did not exercise their right to opt for Spanish nationality in time.
- People who were under the legal guardianship, custody or foster care of a Spanish citizen or institution for two consecutive years, including if this continues at the time of applying.
- People married to a Spanish national for at least one year at the time of applying, and not legally or de facto separated.
- Widows and widowers of a Spanish national, if they were not separated at the time of death.
- People born outside Spain whose father or mother, grandfather or grandmother, was originally Spanish.
What “legal, continuous and immediately prior” means in practice
- Legal: you must have held a residence authorisation or an EU registration certificate (or EU family card) during the whole period. Time spent irregularly does not count. Time as a student is a stay, not residence, and the Ministry does not count it as legal residence for nationality purposes.
- Continuous: long absences or gaps between permits can break continuity. A renewal filed late or a period without a valid document are the classic problems. See our guide on spending more than 6 months outside Spain.
- Immediately prior: the period must end on the day you apply. Years lived in Spain long ago, followed by a gap, do not count.
UK example: residence under the EU registration certificate before Brexit, and later under the Withdrawal Agreement TIE (Foreigner Identity Card), is legal residence. What matters is that there is no gap between documents.
3) The Three Core Requirements
1. Residence
Legal, continuous and immediately priorValid residence document when you applyKeep it valid while the file is pending
2. Good civic conduct
No relevant criminal recordPolice records are also assessedCriminal record certificate from your country of origin
3. Integration
DELE A2 Spanish language exam (or higher)CCSE test on the Constitution and societyOr a valid exemption
Good civic conduct (article 22.4 of the Civil Code) goes beyond having no criminal convictions. The Ministry also looks at police records and administrative history. A pending criminal case or recent police record can lead to a refusal even without a conviction. Read our guide on police records and Spanish nationality before applying if this concerns you.
In July 2024 the Supreme Court annulled the part of Royal Decree 1004/2015 that extended the good civic conduct requirement beyond the end of the administrative procedure (judgment of 15 July 2024, published in the Official State Gazette (BOE) on 10 September 2024). Conduct is assessed during the procedure, not up to the registration in the Civil Registry.
No employment contract is required. Since the 2015 reform, payslips or a job are not a legal requirement for nationality. Stable means of living can help show integration, but unemployment alone is not a reason for refusal. More in do you need an employment contract for Spanish nationality?
Want us to check the three requirements against your real history before you pay any fee? That is the first step of our nationality by residence service.
4) The Integration Exams: DELE A2 and CCSE
DELE A2
What it isDiploma of Spanish as a Foreign Language (Diplomas de Español como Lengua Extranjera), level A2 or higher
Who must take itApplicants who are not nationals of a country where Spanish is an official language
Organised byInstituto Cervantes, at authorised exam centres
ValidityThe diploma does not expire
CCSE
What it isTest of Constitutional and Sociocultural Knowledge of Spain (Conocimientos Constitucionales y Socioculturales de España): 25 questions, pass with 15 correct
Who must take itAll applicants unless exempt, including nationals of Spanish-speaking countries
Organised byInstituto Cervantes, on the dates in its official calendar, usually the last Thursday of the month in most months (fee €85 in 2026, covering two attempts)
ValidityFour years from issue
Exemptions: minors and people whose legal capacity has been modified by a court are exempt from both exams. People who completed compulsory secondary education (ESO) in Spain are also exempt. People who cannot read or write, or who have a disability that makes the exams impossible, can ask for a waiver with supporting evidence. Book early: in large cities exam places fill up months ahead.
5) Documents You Need
The exact list depends on your case, but a standard file usually includes:
- The application form, completed and signed.
- Valid passport (full copy).
- Residence card (TIE) or EU registration certificate, valid at the date of application.
- Birth certificate, legalised or apostilled and with a sworn translation into Spanish where needed.
- Criminal record certificate from your country of origin (and, if the Ministry requires it, from other countries where you lived), legalised or apostilled and translated, within its validity period.
- Municipal registration certificate (empadronamiento) if requested.
- DELE A2 and CCSE certificates, or proof of exemption.
- Proof of payment of fee 790, code 026: €104.05.
- Case-specific: marriage certificate and your spouse’s Spanish birth certificate (1-year spouse route), your Spanish parent’s or grandparent’s birth certificate (descendants), your spouse’s death certificate (widows and widowers), and documents from the Ministry of the Interior (refugees).
6) Step by Step: From Application to Your Spanish DNI
- Audit your residence: confirm the period that applies to you and check every permit, renewal date and long absence.
- Pass the exams: DELE A2 and CCSE, or document your exemption.
- Gather the documents: apostilles and sworn translations included.
- Pay the fee and file online: the application is filed electronically with the Ministry of Justice, either by you with a digital certificate or by an authorised professional such as a lawyer.
- Follow up: the legal deadline to decide is one year. Keep your residence card valid and answer any request for documents within the deadline given.
- Oath and renunciation: once the grant is notified, you have 180 days to swear allegiance to the King and obedience to the Constitution and laws, declare renunciation of your previous nationality where required, and ask for registration. If you miss the 180 days, the grant lapses (Civil Code, art. 21.4).
- Registration, DNI and passport: after registration in the Spanish Civil Registry you can obtain your DNI and Spanish passport.
A well-prepared file can move much faster than the legal maximum. In one of our cases the nationality was granted in just four months:
Want Your File Prepared the Same Way?
We prepare and file nationality applications so they can be decided without avoidable requests. At MigratioLex, we review your specific case, not a generic checklist. We respond within 24 hours, in English, French or Spanish.
7) Real-Life Example
Example
Sarah from Manchester (illustrative) moved to Valencia in 2015 with an EU registration certificate, swapped it for a Withdrawal Agreement TIE after Brexit and has never been without a valid document. She married a Spanish citizen in 2024. Instead of waiting for 10 years of residence, she qualifies under the 1-year spouse rule because she has more than one year of legal residence and more than one year of marriage, and the couple lives together. She takes the DELE A2 and CCSE, orders her UK criminal record certificate last so it is still valid when she files, and submits online. At the oath she will be asked to declare renunciation of her British nationality, because the United Kingdom (UK) is not one of the countries exempted by Spanish law. Whether the UK treats that declaration as a loss of British nationality is a matter of UK law.
8) Dual Nationality and Renunciation
Under article 23 of the Civil Code, new Spaniards must declare that they renounce their previous nationality. This renunciation is not required for nationals of the countries listed in article 24.1 (Ibero-American countries, Andorra, the Philippines, Equatorial Guinea and Portugal) or for Sephardic Jews originating from Spain. France is also covered, through the dual nationality agreement between Spain and France signed in 2021.
You keep your nationality
Nationals of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea, Portugal and France, and people of Sephardic origin.
You declare renunciation
Everyone else, for example nationals of the UK, the United States, Canada, Australia, India, China or Morocco. The effect of the declaration in your home country depends on its own law.
See our complete guide to dual citizenship in Spain and the specific guide on dual citizenship between Spain and the United States.
9) Why Applications Get Delayed or Refused
Why Applications Get Refused
- Applying one day too early: the residence period is not complete on the filing date.
- A gap between residence permits caused by a late renewal or an expired card.
- Counting student years as residence.
- Applying under the 2-year rule without being a national of a listed country.
- Applying under the spouse rule while separated, or before one full year of marriage.
- Police records or pending proceedings not disclosed or not explained.
- Expired foreign criminal record certificates or missing apostilles and translations.
- Ignoring a request for documents from the Ministry.
- Missing the 180-day deadline for the oath after the grant.
Our guide to the most common mistakes in Spanish nationality applications goes through each one with practical fixes. If something changes while your file is pending, such as a separation, read what happens if you divorce while applying.
10) If Your Application Is Delayed or Refused
Royal Decree 1004/2015 gives the Ministry one year to decide and notify. If it does not, the application is considered refused by administrative silence. This is not the end: silence opens the door to a court appeal, and in practice a court appeal often prompts the Ministry to decide the file.
No answer after 1 year
You can file a contentious-administrative appeal before the National High Court (Audiencia Nacional). Under Constitutional Court case law, appeals against a refusal by silence are not subject to the usual short time limit while the Ministry has not issued an express decision. You can also keep waiting: the Ministry must still decide.
Express refusal
You can file an optional appeal for reconsideration (recurso de reposición) within one month, or go directly to court within two months of notification (Civil Code, art. 22.5, Law 39/2015 and Law 29/1998).
More detail in our guide to the court appeal for Spanish nationality, our page on legal resources and appeals and our article on submitting documents after the deadline.
Do Not Leave Your Nationality to Chance
Most refusals we see come from residence-period miscalculations or document errors that could have been avoided. At MigratioLex, we review your specific case, not a generic checklist. We respond within 24 hours, in English, French or Spanish.
11) Keep Your Residence Safe While You Wait
Your file can take many months. During that time your residence card must stay valid and you must keep living in Spain. Renew on time, avoid long absences and keep your address registration up to date. Our article on the most common reasons for losing a residence permit in Spain explains the risks.
12) Benefits of Spanish Citizenship
- No more residence card renewals or absence limits.
- EU citizenship: live, work and study in any EU country.
- Right to vote in Spanish and European elections.
- Access to public-sector jobs reserved for Spanish nationals.
- Spanish nationality can pass to your children under the Civil Code.
- A Spanish passport with wide visa-free travel.
13) Can Spanish Nationality Be Lost?
Only in limited cases. Under article 25 of the Civil Code, Spaniards who are not Spanish by origin lose their nationality if, for three years, they use exclusively the nationality they declared they renounced, or if they voluntarily join the armed forces or hold political office in a foreign state against an express prohibition of the Government. A final court judgment declaring that the applicant obtained nationality by falsehood, concealment or fraud makes the acquisition void. See our guide on revocation of Spanish nationality after it has been granted.
14) Official Resources and Forms
- Spanish Civil Code, consolidated text (articles 17 to 26 on nationality), Official State Gazette (BOE)
- Royal Decree 1004/2015, regulation of the nationality by residence procedure (BOE)
- Law 39/2015 on the Common Administrative Procedure: deadlines, silence and appeals (BOE)
- Law 29/1998 on the Contentious-Administrative Jurisdiction: court appeals (BOE)
- Ministry of Justice electronic office: online filing and fee form 790, code 026
- Instituto Cervantes exams portal: DELE and CCSE registration and dates
15) Spanish Nationality by Residence Guides by Topic
Ready to apply? Let our lawyers prepare and file your nationality application. For a closer look at a specific situation, these are our detailed guides:
Requirements and Eligibility
- The 3 requirements for Spanish nationality by residence
- Do you need an employment contract to apply?
- Police records and good civic conduct
The Application, Step by Step
- Step-by-step guide to nationality by residence
- Common mistakes when applying for Spanish nationality
- Submitting documents after the deadline
Changes in Your Situation While You Wait
- Divorce during a nationality application
- Spending more than 6 months outside Spain
- Common reasons for losing your residence permit
Delays, Refusals and Appeals
- Court appeal to speed up a nationality file
- Why a Spanish citizenship lawyer can be your best shortcut
After Approval: Dual Nationality and Revocation
- Dual citizenship in Spain: complete guide
- Dual citizenship between Spain and the United States
- Revocation of Spanish nationality after it has been granted
Other Routes to Spanish Nationality
- How to obtain Spanish citizenship: all routes
- Spanish citizenship by origin
- Spanish citizenship by option
- Democratic Memory Law in 2026
Real Approved Cases
FAQs
How long does Spanish nationality by residence take?
The Ministry of Justice has a legal deadline of one year to decide. Real times vary: well-prepared files can be decided in a few months, while others take longer. If there is no decision after one year, you can go to court.
How many years do I need to live in Spain?
Ten years as a general rule, five for recognised refugees, two for nationals of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea, Portugal and people of Sephardic origin, and one year in special cases such as marriage to a Spaniard or birth in Spain. The residence must be legal, continuous and immediately prior to the application.
Do student years count?
No. A student permit is a stay, not residence, so those years are not counted as legal residence for nationality. Residence counts from when you held a residence authorisation.
Do I need a job or an employment contract?
No. An employment contract is not a legal requirement. Stable means of living can support your integration, but they are not a separate condition.
Can I apply with a criminal or police record?
It depends on the facts. Criminal records and police records are assessed under good civic conduct. Cancelled records, the type of offence and time passed matter. Get advice before filing.
Do I have to give up my current nationality?
Yes, you must declare renunciation at the oath, unless you are a national of an Ibero-American country, Andorra, the Philippines, Equatorial Guinea, Portugal or France, or of Sephardic origin.
How much does it cost?
The government fee (form 790, code 026) is €104.05. You also pay the exam fees (CCSE is €85), document costs such as apostilles and sworn translations, and professional fees if you use a lawyer.
Can I travel while my application is pending?
Yes, as long as your residence card stays valid and your absences do not break continuity or put your residence at risk. Avoid long stays abroad.
What happens if I miss the 180 days to take the oath?
The grant lapses and you would have to start again. Book the oath appointment as soon as you receive the notification.
Your Spanish Passport, Managed by Lawyers
Tell us your residence history and we will tell you when you can apply, which period applies and what could slow you down. At MigratioLex, we review your specific case, not a generic checklist. We respond within 24 hours, in English, French or Spanish.
This guide is general information updated in October 2026 and does not replace advice on your specific case.
Not sure how this applies to you?
Every case is different. Tell us yours and we will tell you honestly whether you need us.
MigratioLex · Carrer Joan Reglà, 5, 3-B · 17600 Figueres (Girona) · +34 602 54 15 16
