Skip to content
Quiero mi DNI: guidance on Spanish nationality

Spanish nationality by residence: requirements, timeframes and steps

It's the most common route: you apply after living in Spain with a permit for a number of years, without interruptions and right up to the day you apply. How many years you need depends on your nationality and your situation.

By Jason Moorcroft and Matthew Moorcroft · Checked on September 29, 2026

How many years you need

The general rule is 10 years. It's 5 if you have recognised refugee status; 2 if you're a national by origin of an Ibero-American country, Andorra, the Philippines, Equatorial Guinea or Portugal, or you're Sephardic; and 1 year in some specific cases, such as being born in Spain or having been married to a Spanish citizen for at least 1 year.

Time with a residence permit counts. Years without papers don't add up, and time on a student authorisation may not count: since May 2025 the immigration regulations treat it as a stay, not residence.

The residence routes

  • 10-year residency (general rule)

    The general rule: 10 years of legal, continuous residence in Spain immediately before you apply.

    Civil Code, art. 22.1 and 22.3

  • 5-year residency: refugees

    If you have been granted refugee status in Spain, you need 5 years of legal, continuous residence.

    Civil Code, art. 22.1

  • 2-year residency

    For nationals by origin of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea and Portugal, and for Sephardic people: 2 years of legal, continuous residence in Spain.

    Civil Code, art. 22.1

  • 1-year residency: born in Spain

    If you were born on Spanish territory, you only need 1 year of legal, continuous residence in Spain immediately before you apply.

    Civil Code, art. 22.2.a

  • 1-year residency: married to a Spaniard

    If you've been married to a Spanish citizen for at least 1 year, you aren't separated, and you've had 1 year of legal residence in Spain, you can apply.

    Civil Code, art. 22.2.d

  • 1-year residency: widow or widower of a Spaniard

    If your Spanish spouse died and you weren't separated at the time, you only need 1 year of legal residence in Spain.

    Civil Code, art. 22.2.e

  • 1-year residency: child or grandchild of an originally Spanish person

    It applies if you were born outside Spain and your father, mother, grandfather or grandmother was originally Spanish (from birth). 1 year of legal residence in Spain is enough. Unlike the Democratic Memory Law, which closed on 22 October 2025, this route has no deadline.

    Civil Code, art. 22.2.f

  • 1-year residency: you didn't use your right of option in time

    If you didn't use your right of option in time, 1 year of legal residence in Spain is enough. For example, if your parent became Spanish while you were a minor and you didn't opt before 20. Or if a Spanish citizen adopted you as an adult and 2 years have passed.

    Civil Code, art. 22.2.b

  • 1-year residency: Spanish guardianship, curatorship or foster care

    If you spent 2 consecutive years under the legal guardianship, curatorship with full powers of representation, custody or foster care of a Spanish citizen or institution, you only need 1 year of legal residence in Spain.

    Civil Code, art. 22.2.c

Requirements for every route

  • Legal, continuous residence immediately before applying

    You must have lived in Spain with a valid permit for the whole period, without interruptions. That residence must run right up to the day you apply. Until your nationality is registered you are still a foreign national, so it's wise to renew your residence card on time.

    Civil Code, art. 22.3

  • Good civic conduct

    Your conduct in Spain and in your country is assessed. That's why your home country's criminal record certificate is required; the Ministry checks Spanish records if you authorise it in the application.

    Civil Code, art. 22.4

  • Integration into Spanish society

    Shown by passing two Instituto Cervantes exams: DELE A2 or higher (language) and the CCSE (constitutional and sociocultural knowledge). Some people are exempt.

    Civil Code, art. 22.4Royal Decree 1004/2015, art. 6Order JUS/1625/2016, art. 10

Exams

  • DELE A2

    Official basic-level Spanish language exam. It has four parts: reading, listening, written expression and interaction, and spoken expression and interaction. Register with your NIE.

    You don't need to take it if:

    • You are a national of one of the countries whose nationals are exempt from DELE. If it isn't your main nationality, provide a valid passport or a consular certificate.
    • Under-18s don't have to take it. Their parents or guardians provide certificates from the child's school.
    • You already have DELE A2 or higher, or an A2, B1 or B2 certificate from an Official Language School (EOI).
    • You were schooled in Spain and hold the ESO certificate: no exemption request is needed, just attach the certificate to your nationality application.
    • If you can't read or write, or have learning difficulties, you can ask the Ministry of Justice for an exemption. Do it BEFORE you apply for nationality. For learning difficulties, attach a medical certificate or professional report. If you have a disability, add your official disability-degree certificate. It may be granted, refused, or replaced by adapted tests. They have up to 6 months to reply; no reply counts as a refusal.

    Royal Decree 1004/2015, art. 6Order JUS/1625/2016, art. 10

    Official information and registration · Instituto Cervantes

  • CCSE

    Test of Constitutional and Sociocultural Knowledge of Spain: 25 multiple-choice questions on the Constitution, government and culture. You need 15 correct answers. Instituto Cervantes publishes a manual with every possible question. Register with your NIE.

    You don't need to take it if:

    • Under-18s don't have to take it. Their parents or guardians provide certificates from the child's school.
    • You passed the CCSE less than 4 years ago.
    • You were schooled in Spain and hold the ESO certificate: no exemption request is needed, just attach the certificate to your nationality application.
    • If you can't read or write, or have learning difficulties, you can ask the Ministry of Justice for an exemption. Do it BEFORE you apply for nationality. For learning difficulties, attach a medical certificate or professional report. If you have a disability, add your official disability-degree certificate. It may be granted, refused, or replaced by adapted tests. They have up to 6 months to reply; no reply counts as a refusal.

    Royal Decree 1004/2015, art. 6Order JUS/1625/2016, art. 10

    Official information and registration · Instituto Cervantes

The steps, in order

Where to apply: Usually online at the Ministry of Justice electronic office (with a digital certificate or Cl@ve), yourself or through a representative. It can also be filed on paper at any public registry office.

  1. Check your years of residence

    Count from when your legal residence began. Check there are no gaps between renewals and that your current permit is still valid.

  2. Book your exams

    Register online on the Instituto Cervantes exams website, with your NIE, and choose an exam centre. The CCSE runs 10 times a year, with no sitting in August or December. DELE A2 runs about 5 times a year. CCSE results take about 20 days. DELE results take about 2 months, or 3 for the May and November sittings.

  3. Request documents from your country

    While you wait for exam results, request your birth certificate. Leave the criminal record certificate until last: unless it states otherwise, it's valid for 6 months from issue.

  4. Get the documents apostilled

    The apostille certifies the document is genuine. An authority in the country that issued the document adds it, not the Spanish consulate. Public documents from EU countries don't need one.

  5. Pay the fee

    Download form 790, code 026, from the Ministry of Justice electronic office and pay it at a partner bank in Spain (you need a NIE or DNI). Don't photocopy the form: each one has a unique number.

  6. Submit your application

    Upload every scanned document and keep the file number to track your application. If you authorise the Ministry in the application to check your Spanish criminal record, your municipal registration and your Instituto Cervantes exams, you don't need to provide those certificates.

  7. Wait for the decision

    The law allows 1 year for a decision, counted from when the file reaches the Directorate General. There are no official figures on how long it really takes. If a year passes with no answer, it counts as refused and you can appeal. If you're asked to complete the file, you have 3 months or it's treated as withdrawn. Notifications arrive electronically if you accepted that in the application; otherwise they come on paper. Until your nationality is registered you are still a foreign national, so it's wise to renew your residence card on time.

  8. Oath or promise

    Once granted, you have 180 days from the day after notification to swear or promise loyalty to the King and obedience to the Constitution, before the Civil Registry or a notary, and to renounce your previous nationality if it applies to you. Bring the original documents. If you miss the deadline, the grant lapses.

  9. Registration, DNI and passport

    The Civil Registry records your nationality. With your Spanish birth certificate, book an appointment with the National Police for your DNI and passport.

Fees

ItemApprox. amount
Nationality fee (form 790, code 026)Paid once, before you apply, at a partner bank in Spain (with a NIE or DNI). Keep the receipt: you have to attach it.Official source€104.05
DELE A2 registrationOfficial price for sitting the exam in Spain. Outside Spain it depends on the country.Official source€138
CCSE registrationSingle price worldwide. If you fail or miss it, you get a second attempt at no extra cost. It must be at the same centre within 6 months.Official source€85

Indicative 2026 amounts. They change every year: check the official amount before paying.

Official sources: boe.es · mjusticia.gob.es

General information taken from official sources. It isn't legal advice and no lawyer has reviewed it.