Immigration & residency

Spanish Nationality by Residence: Requirements and Process

By the AbogadoAI editorial team · Updated 18 July 2026 · 12 min read

🇪🇸 Read the original in Spanish

Getting Spanish nationality is the dream of thousands of foreigners who have established their home, their work, and their family in Spain. This process, although exciting, is often perceived as a bureaucratic labyrinth full of strict requirements, rigorous deadlines, and complex documentation that can generate great uncertainty. In this definitive guide written by the legal team at AbogadoAI, we break down in a clear, rigorous, and accessible way everything you need to know to successfully apply for your Spanish nationality by residence, based on current legislation so that you can take this step with total confidence.

The granting of Spanish nationality by residence is not an arbitrary discretionary act, but a procedure regulated by our legal system. The fundamental pillar of this process is found in the Spanish Civil Code, specifically in Articles 21 and 22, which regulate the timeframes and substantive conditions for a foreign citizen to acquire Spanish status.

Furthermore, this procedure is complemented by the _Ley Orgánica 4/2000, de 11 de enero, sobre derechos y libertades de los extranjeros en España y su integración social_ (known as the _Ley de Extranjería_ / Immigration Law) and its corresponding Regulation (approved by Royal Decree 557/2011), in addition to European Union directives on free movement that facilitate the residence of EU citizens.

For the Ministry of Justice to grant nationality, the applicant must prove the concurrence of two essential factors: legal, continuous residence immediately prior to the petition, and a sufficient degree of integration into Spanish society, coupled with good civic conduct.

Required residence periods: How long must you wait?

The general rule in Spain requires a residence period of 10 years. However, Spanish legislation is particularly generous with certain groups, drastically reducing this timeframe depending on the country of origin or the personal circumstances of the applicant.

Below, we detail the specific periods established in Article 22 of the Civil Code:

The general period: 10 years

This is the default period applicable to most foreign citizens from third countries (for example, citizens of Morocco, China, the United States, or Pakistan) who do not meet any of the reduction conditions detailed below.

The intermediate period: 5 years

Reserved exclusively for those individuals who have obtained the status of refugee or beneficiary of international protection.

The historical agreement period: 2 years

This is one of the most frequently used periods and benefits nationals by origin of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea, Portugal, or individuals of Sephardic origin.

Important legal note: To benefit from this 2-year period, the applicant must be a national by origin of these countries. For example, an Indian citizen who has naturalised as Argentine cannot immediately benefit from the 2-year period if they do not hold said nationality by birth or according to the criteria of origin set by the doctrine of the _Dirección General de Seguridad Jurídica y Fe Pública_ (General Directorate of Legal Certainty and Public Trust).

The minimum period: 1 year

The law reduces the legal residence requirement to just 1 year for the following special cases:

The three mandatory substantive requirements

It is not enough to simply let time pass in Spain; your residence must meet three strict legal characteristics to count towards nationality:

Time spent on a student visa, volunteering, or in irregular situations (such as _arraigo_ (social/labour integration residency) before it is granted) does not count towards the nationality timeframe. A student period is considered a "stay" (_estancia_), not "residence" (_residencia_) according to the _Ley de Extranjería_. You must hold an active residence authorisation (whether it is for work, non-lucrative residence, family reunification, or a Union citizen family member card).

2. Continuous residence (Watch out for trips outside Spain!)

Residence must be uninterrupted. Prolonged absences from Spanish territory can break the chain of continuity and lead to the denial of your application.

3. Good civic conduct and integration

Good civic conduct is proven by the absence of a criminal record in Spain and in your country of origin. In addition, the applicant must demonstrate integration by passing two official exams designed by the _Instituto Cervantes_ (Cervantes Institute):

The financial cost of the process: Key fees and amounts

Starting this procedure requires financial planning. These are the key financial amounts you will need to pay during the process:

Practical examples of calculating timeframes and viability

To better understand how these rules apply in real life, we analyse two common scenarios:

Example 1: The case of Jefferson (Ecuador)

Jefferson arrived in Spain on a student visa in September 2018. In March 2021, he successfully modified his status to a residence and employment authorisation as an employee. Since then, he has worked uninterruptedly and has only travelled to Ecuador for 20 days during the Christmas holidays in 2022.

Example 2: The case of Amira (Morocco)

Amira obtained her residence card through family reunification in January 2014. In June 2019, she travelled to Morocco to care for a sick relative and remained there for 8 consecutive months, returning to Spain in February 2020 to continue her residence. In the year 2024, she decides to submit her application for nationality under the general 10-year period.

Step-by-step practical procedure to apply for nationality

The procedure is carried out online through the electronic headquarters of the Ministry of Justice. Follow these ordered steps to avoid errors:

  1. Preparation and passing of exams: Register for and pass the CCSE and DELE exams (if applicable) at the _Instituto Cervantes_. Save the certificates of passing in PDF format.
  2. Obtaining documents from your country of origin: Request your birth certificate and criminal record certificate from your country of origin. Both documents must be duly legalised (via the Hague Apostille or diplomatic channels) and translated into Spanish by a sworn translator (_traductor jurado_) authorised by the Spanish Ministry of Foreign Affairs.
  3. Gathering documents in Spain: Obtain your _certificado de empadronamiento_ (town-hall registration certificate, collective and historical), a complete copy of your valid passport (all pages, even blank ones), and your valid _tarjeta de identidad de extranjero_ (TIE / foreigner identity card).
  4. Payment of fee 790-026: Download the fee form, pay the 105.10 € through your bank or via electronic payment, and keep the receipt with the barcode.
  5. Online submission: Access the Ministry of Justice platform using your _Certificado Digital_ (Digital Certificate). Fill out the interactive form, attach all digitalised documentation in PDF format, and digitally sign the application.
  6. Waiting phase and resolution: The Ministry of Justice has a legal timeframe of 1 year to issue a resolution. If no response is received after this period, it is understood to be rejected by negative administrative silence (although the administration still has the obligation to resolve and, usually, favourable resolutions arrive later).
  7. The Oath of Allegiance: Once you receive the notification of approval, you have a period of 180 days to perform the _jura_ (act of oath or promise of loyalty to the King and obedience to the Constitution) before the Civil Registry of your home address or before a Notary. After this act, you will be issued your Spanish birth certificate so you can go to the National Police to obtain your Spanish DNI (ID card) and passport.

Errors you must avoid

Making a mistake during the application phase can result in years of delay or a direct denial. Pay special attention to these critical points:

Frequently Asked Questions (FAQ)

Can I apply for nationality if I have a criminal record?

As a general rule, no. Having an active criminal record in Spain or in your country of origin is an almost certain cause for denial for failing to meet the "good civic conduct" requirement. The first thing you must do is serve the sentence and, subsequently, apply for the cancellation of your criminal record at the Ministry of Justice before applying for nationality.

What happens if my residence card expires during the process?

Nothing happens, as long as you submit the renewal of your residence card within the legal timeframes (60 days before its expiration or up to 90 days after). Your status in Spain will remain legal for the purposes of the nationality file.

Do minors have to take the Instituto Cervantes exams?

No. Minors under 18 years of age and individuals with judicially modified capacity are exempt from taking both the DELE language exam and the CCSE cultural knowledge exam.

Can I lose my original nationality when acquiring Spanish nationality?

Spain formally requires you to renounce your previous nationality during the oath ceremony, except for nationals of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea, Portugal, and citizens of Sephardic origin, who benefit from dual nationality agreements and can keep both.

How long does the Ministry of Justice actually take to respond?

Although the law establishes a timeframe of 1 year, administrative reality varies. Some files submitted in an impeccable online format are resolved in 3 to 6 months thanks to automation processes, while others can take 1 to 2 years if they require the correction of documents.

In summary

General legal information, not personalised legal advice. For your specific situation, ask your question for free at AbogadoAI — answers grounded in Spanish law (BOE), in English.

Have a specific legal question?

Ask AbogadoAI and get an answer based on Spanish law (BOE), with sources — in English.

Ask for free

This is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.