Spanish citizenship for Moroccans
How many years you need, the two tests, the documents from Morocco and what happens to your Moroccan nationality.
Reviewed on
Morocco is the country of origin of more people who obtain Spanish citizenship each year than any other. If you are Moroccan and live in Spain, these are the rules that apply to you and the documents you need to request from Morocco.
How many years of residence you need
Morocco is not one of the countries with a shorter period, so the general rule applies: 10 years of legal residence, continuous and immediately before the application (Civil Code, art. 22). There are shorter periods depending on your situation:
| Your case | Legal residence |
|---|---|
| General rule | 10 years |
| Refugee, with recognised status | 5 years |
| You were born in Spain | 1 year |
| You have been married to a Spanish citizen for one year, without separation | 1 year |
| You are the widow or widower of a Spanish citizen | 1 year |
| You were born outside Spain and your father, mother, grandfather or grandmother was Spanish by origin | 1 year |
Only time with a valid residence permit counts: years without legal status do not add up. All the cases are in the guide to citizenship requirements.
The tests: CCSE and DELE A2
- CCSE: compulsory. It has 25 questions in Spanish on the Constitution, the State and Spanish society. More details in the CCSE exam guide.
- DELE A2: also compulsory, because Spanish is not an official language in Morocco. Any DELE at level A2 or higher is valid, and it does not expire.
Minors do not take the tests. People who went to school in Spain and passed ESO (compulsory secondary education) can be exempted from both by attaching their certificate. All the exemptions are in the DELE A2 guide.
The documents from Morocco
Besides the application form, your passport and the fee (full list in documents for citizenship), you need these Moroccan documents:
- Birth certificate: the full literal copy (copie intégrale).
- Criminal record certificate from Morocco.
- If you are married: marriage certificate.
How to prepare them:
- Apostille: Morocco has been party to the Hague Convention since 2016, so its documents are legalised with the Hague apostille, without going through the Spanish consulate.
- Sworn translation into Spanish: the documents will be in Arabic or French. Apostille first and translate afterwards, so the translation also includes the apostille.
- Criminal record: you can request it in Morocco or through the Moroccan consulate in Spain. In 2026 several consulates announced that they now issue it already apostilled: ask at yours. The regulation also accepts the consular certificate of good conduct, as long as the consulate issues it after consulting the Moroccan authorities.
- Validity: if the criminal record certificate states a validity period, that one applies; if it does not, it is valid for six months from issue. Request it once everything else is ready.
Do you lose your Moroccan nationality?
When you are granted citizenship, at the oath or promise you must declare that you renounce your Moroccan nationality. Morocco is not one of the countries whose nationals are exempt from this requirement (Civil Code, art. 23).
Two things are worth knowing:
- What Morocco does with that renunciation depends on Moroccan law, not Spanish law.
- Once you are Spanish, do not use only your Moroccan nationality: people who obtain citizenship by residence lose it if, for three years, they use exclusively the nationality they declared they renounced (Civil Code, art. 25). Use your Spanish ID card and passport as normal.
In short
- 10 years of legal residence (or 1 year if you have been married to a Spanish citizen for one year, or if you were born in Spain).
- CCSE and DELE A2 passed.
- Birth certificate and criminal record certificate from Morocco, apostilled and with a sworn translation.
- Declaration renouncing your Moroccan nationality at the oath.
With the app you can prepare for the CCSE with explanations and an Arabic translation of every question, and keep your application and your documents’ expiry dates up to date. It is free.