Spanish Nationality by Residence
Most foreigners who become Spanish do so through nationality by residence (nacionalidad por residencia). The rules are in the Civil Code (arts. 21–23), and the procedure is in Real Decreto 1004/2015. The Minister of Justice grants it and may refuse it for reasoned grounds of public order or national interest (art. 21.2 CC).
1. How Many Years You Need
Art. 22 of the Civil Code sets the residence periods:
| Years | Who |
|---|---|
| 10 years | General rule |
| 5 years | People granted refugee status |
| 2 years | Nationals by origin of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea or Portugal, and people of Sephardic origin |
| 1 year | Someone born in Spain |
| Someone who did not exercise their right to opt for Spanish nationality in time | |
| Someone legally under the guardianship, foster care or custody of a Spanish citizen or institution for 2 consecutive years | |
| Someone who has been married to a Spaniard for 1 year and is not legally or de facto separated | |
| The widow or widower of a Spaniard, if not separated at the time of death | |
| Someone born outside Spain to a parent or grandparent who was originally Spanish |
In every case the residence must be legal, continuous and immediately before the application (art. 22.3 CC). Time on a residence permit counts, and so does long-term residence. Time spent in Spain without papers does not.
Important
Student years do not count. A student permit is legally a stay (estancia), not residence. The Tribunal Supremo (judgment of 4 December 2009, appeal 7174/2005) and the Audiencia Nacional have consistently held that time on a student permit is not “legal residence” for nationality. Your 10 years (or 2, or 1) start when you move to a residence permit.
“Ibero-American” here means countries where Spanish or Portuguese is an official language. The Ministry of Justice excludes Haiti, Jamaica, Trinidad and Tobago and Guyana, and treats Puerto Rico as included.
2. Good Civic Conduct and Integration
You must prove good civic conduct (buena conducta cívica) and a sufficient degree of integration into Spanish society (art. 22.4 CC).
Criminal records and conduct
- Adults must provide a criminal record certificate from their country of origin, legalised or apostilled and translated. EU nationals can instead use a Spanish Registro Central de Penados certificate showing that their home country was consulted (art. 5.3 RD 1004/2015).
- The Ministry obtains your Spanish criminal record and a mandatory Ministry of Interior report on your conduct and your compliance with immigration obligations (art. 8 RD 1004/2015).
- Good civic conduct is assessed more broadly than a clean criminal record. The Ministry of Interior report covers your conduct and your record with immigration rules, so pending proceedings or police records can be taken into account.
The two exams (Instituto Cervantes)
Integration is proved with two exams, both run by the Instituto Cervantes:
- DELE A2 or higher, a Spanish language diploma.
- CCSE, a test of constitutional and sociocultural knowledge of Spain. It has 25 multiple-choice questions in a maximum of 45 minutes, with 60% on the Constitution and the organisation of the state and 40% on culture, history and society. Instituto Cervantes lists the 2026 registration fee as €85. A pass is valid for 4 years.
Exemptions:
- Under-18s and people whose legal capacity has been modified by a court are exempt from both exams. Minors prove integration with school or care-centre certificates.
- Nationals of countries where Spanish is an official language are exempt from the DELE only. RD 1004/2015 lists Argentina, Bolivia, Chile, Colombia, Costa Rica, Cuba, Ecuador, El Salvador, Equatorial Guinea, Guatemala, Honduras, Mexico, Nicaragua, Panama, Paraguay, Peru, Puerto Rico, the Dominican Republic, Uruguay and Venezuela. They still take the CCSE.
- Anyone who already holds a DELE A2 or higher, or an official A2 or higher certificate from an Escuela Oficial de Idiomas, does not repeat the language test.
- Applicants who were schooled in Spain and completed ESO (compulsory secondary education) can be exempted from both exams under Order JUS/1625/2016. Check the current procedure for claiming this exemption with the Ministry of Justice.
3. How to Apply
- Pay the fee: €104.05 (Modelo 790, código 026), according to the Ministry of Justice. It does not cover the Cervantes exam fees.
- Apply online through the Ministry of Justice electronic office (sede.mjusticia.gob.es) with an electronic identification such as a digital certificate, or through a lawyer or gestor who files on your behalf. Paper filing at public registries is also possible under the general administrative-procedure rules.
- Documents: the application form, your passport, your birth certificate (legalised or apostilled and translated), your criminal record certificate, the exam results (or permission for the Ministry to check them with Cervantes), the fee receipt, and proof of any special circumstance (marriage to a Spaniard, refugee status, birth in Spain, Sephardic origin, etc.). Your padrón and TIE details can be consulted with your authorisation instead of being uploaded.
- If something is missing, you receive a request to fix it (requerimiento). If you do not respond within 3 months, the application is treated as withdrawn (art. 10 RD 1004/2015).
Prepare your documents with our legalisation and apostille guide.
4. Processing Times
The legal maximum is one year from when the application reaches the competent Directorate-General (art. 11.3 RD 1004/2015). If no decision is notified by then, the application is deemed refused (negative silence), which allows you to appeal. In practice many applications take longer than a year. You can check the status of your file through the Ministry’s electronic office.
5. The Oath and Registration (Jura)
Approval is not the finish line. Within 180 days of being notified, you must (art. 21.4 and art. 23 CC; art. 12 RD 1004/2015):
- Swear or promise loyalty to the King and obedience to the Constitution and the laws
- Renounce your previous nationality, unless you are exempt (see below)
- Request registration in the Spanish Civil Registry
The Ministry of Justice says you can take the oath either at the Registro Civil or before a notary, who then sends the deed to the Registry. If you miss the 180-day deadline, the grant lapses. Once registered, you can apply for your Spanish DNI and passport.
6. Dual Nationality
- No renunciation needed: nationals of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea and Portugal, and Sephardic applicants (art. 23.b CC).
- Everyone else must declare that they renounce their previous nationality when taking the oath. Whether your home country treats you as still holding its nationality depends on its own law. Check with your consulate.
- Spain also has bilateral dual nationality conventions with several countries, including France (Montauban, 2021). Each convention has its own conditions.
- Risk of losing it: naturalised Spaniards lose Spanish nationality if, for 3 years, they use only the nationality they declared they renounced (art. 25.1.a CC).
7. If You Are Refused
You can file an optional recurso de reposición within 1 month of an express refusal (art. 14 RD 1004/2015), or go directly to the contencioso-administrativo courts within 2 months (art. 22.5 CC). Because the Minister of Justice decides nationality, these cases go to the Audiencia Nacional. See Refusals & Appeals.
Frequently Asked Questions
Can I apply before I have the exam results?
The exams are part of the integration requirement, and the file is assessed with them. Applying without them usually leads to a request for missing documents. Most people take the CCSE (and the DELE A2 if required) before applying, and keep in mind that a CCSE pass is valid for 4 years.
Does the 1-year marriage rule require 1 year of marriage and 1 year of residence?
Yes, in practice both. You must have resided legally and continuously in Spain for 1 year immediately before applying, and have been married to a Spaniard for at least 1 year at the time of application, without legal or de facto separation.
Does a trip abroad break my continuous residence?
The Civil Code requires residence to be “continued” but does not set a specific absence limit, so long or frequent absences can be questioned. Keep a record of your trips and get advice if you have spent long periods outside Spain.
This page is general information, not legal advice. Nationality decisions are discretionary on public-order grounds, so check complex cases with a lawyer.
Sources
- Civil Code, arts. 17–28 (consolidated text, BOE)
- Real Decreto 1004/2015 — Nationality by residence procedure (BOE)
- Ley 19/2015, final provision 7 — Electronic procedure and exams (BOE)
- Ministry of Justice — Nationality by residence
- Ministry of Justice — Dual nationality
- Ministry of Justice — Electronic office: Spanish nationality
- Instituto Cervantes — CCSE and DELE exams
Last reviewed: 3 December 2026.
Last updated: December 3, 2026