What is your path to obtaining legal status in Spain if you are undocumented?
25 November 2026
What is your path to obtaining legal status in Spain? We explain the types of residency, the requirements, and the mistakes that lead to the most rejections.

How can you get legal status in Spain if you are undocumented? Guide
To getting legal status in Spain if you are undocumented, the main way is to apply for a Temporary residence permit due to exceptional circumstances (rootedness) after proving 2 years of continuous residence in the country, or apply for a residence as a family member of a Spanish or EU citizen, which does not require a minimum prior period of stay. Following the closure of the extraordinary regularization period on June 30, 2026, these ordinary procedures under the Immigration Regulations (Royal Decree 1155/2024) are the active legal routes for obtaining your residence and work permit.
Living in Spain without administrative authorization prevents access to decent employment, makes it difficult to rent housing, and creates constant legal insecurity. However, Spanish law protects the genuine ties of those who are already living in the country. At Advice for Immigrants We analyze regularization cases throughout Spain on a daily basis, and we have summarized in this practical guide which path is right for you based on your exact situation.
Quick summary: Which path applies to you based on your time in Spain?
If you are looking for a straightforward answer before reading the detailed requirements for each procedure, find your case in this comparison table:
Your current situation in Spain | Recommended legal path | Minimum time in Spain | Does it allow you to work? |
|---|---|---|---|
You have a job offer or pre-employment contract | Socio-Occupational Integration | 2 consecutive years | Yes, as an employee (minimum 20 h/week) |
You have resident relatives or your own means | Social Ties | 2 continuous years | Yes, as an employee or as a self-employed person |
You want to study vocational training or official courses | Socio-Educational Integration | 2 continuous years | Yes, up to 30 hours per week while studying |
You had legal residency and lost it | Second Chance Rootedness | 2 continuous years | Yes, as an employee or as a self-employed person |
You have a Spanish partner, spouse, or children | Family Residence of a Spanish National | No minimum time | Yes, from the date of approval (and provisionally in authorized cases) |
You are the parent of an EU minor | Family Ties | No minimum time | Yes, a 5-year card to work without restrictions |
1. Obtaining papers after being in Spain for 2 years: the 4 ordinary forms of rootedness
Under the current Immigration Regulations (RD 1155/2024), the general period for obtaining rooted status has been reduced from 3 to 2 years of continuous residence in Spain. To submit any of these applications, you must meet three common requirements:
No criminal record in Spain and in the countries where you have resided for the past 5 years.
Not being prohibited from entering in Spain or be listed as inadmissible in the Schengen area.
Not be an asylum seeker with a case pending at the time of submitting the application.
Socio-Occupational Roots: The fastest route if you have a job offer
The Socio-occupational roots replaced the former employment-based residency permit and is now the preferred option for those who have an employer willing to hire them.
Key requirements: Prove 2 years of residence in Spain and submit one or more signed employment contracts that total at least 20 hours per week and guarantee the Minimum Interprofessional Wage (SMI) or the applicable collective bargaining agreement in proportion to the working hours.
Advantage: It does not require a social integration report and allows for the combination of several simultaneous part-time contracts (ideal in sectors such as hospitality, caregiving, cleaning, or construction).
Social Roots: If you have family members who are residents or if you want to start a business
The Social ties permit is designed for people with direct family ties to foreigners who already have legal residency in Spain (spouse, registered partner, parents, or children) or for those who want to start their own business.
Key requirements: 2 years in Spain and proof of sufficient financial means (at least 100% of the IPREM for the family member and another 100% for the applicant).
What if you don't have family members residing in Spain? You can also apply by providing a social integration effort report issued by your city council or autonomous community, provided that you demonstrate your own financial means or a viable business plan to register as a self-employed person.
Socio-Educational Integration Permit: documents for studying and working at the same time
If you have been in Spain for two years but have not yet secured a firm job offer, the socio-educational rootedness permit allows you to regularize your status through official studies.
Key requirements: 2 years of residency, social integration report, and enrollment (or commitment to enroll) in vocational training, professional certificates, or SEPE courses for hard-to-fill occupations.
Advantage: Unlike the previous regulations, this permit allows you to work up to 30 hours per weekfrom the date it is granted while you are studying.
Second Chance Residency: If you had papers and became undocumented
Designed for those who became undocumented because they were unable to renew their residence card or did not meet the required contributions.
Key requirements: Having held a residence permit in the 2 immediately preceding yearsto the application and have lost it for reasons unrelated to public order or security. You do not need a prior employment contract to regain your legal status.
2. Getting papers without waiting 2 years: pathways through family ties
If you have direct ties to Spanish or European Union citizens, you don't have to wait two years or remain in an undocumented status.
Residence permit for family members of Spanish citizens
If you are a spouse, registered domestic partner, or proven stable partner (due to cohabitation or children in common) of a person with Spanish nationality, you can apply directly for this specific permit even if you entered as a tourist and have exceeded 90 days. It also protects:
Children Children under 26 years of age (or older children who are dependents) of the Spanish citizen or their partner.
Parents or parents-in-law (ascendants) when they are dependent on the Spanish citizen or when there are humanitarian reasons.
Family Ties (EU Citizens)
This status grants a residence and work permit for 5 years with no prior residency requirement to:
Parents or guardians of a minor with nationality of another country of the European Union, the EEA, or Switzerland who resides in Spain.
Persons who provide effective support to a Spanish or EU citizen with a disability with whom they live.
3. Other exceptional routes: humanitarian reasons and protection
Even if you do not meet the residency requirements or have immediate family members, the Immigration Act provides for exceptional authorizations for situations of proven vulnerability:
Humanitarian reasons due to serious illness: When you suffer from an illness that has arisen in Spain and requires specialized health care, the interruption of which would pose a serious risk to your health or well-being.
Victims of gender-based violence or sexual violence: Confidential and priority procedure that grants residence and work without the need for a prior period of stay.
Cooperation with authorities: For people who cooperate with the Labor Inspectorate (e.g., by reporting labor exploitation without a contract) or with police and judicial authorities.
4. Essential documents and errors that lead to denials
In our daily practice as immigration lawyers, more than 70% of denials in cases filed without legal counsel are due to preventable errors:
Failure to prove 24 months without gaps: Immigration requires continuity. The Historical certificate of registration is the key piece of evidence, but if you registered late or moved without updating your address, you must cover each quarter with public or private documents showing your name and date (medical appointments in the public health system, money transfers, registered transport passes, bank statements, or bills).
Improperly legalized criminal record: The criminal record certificate from your country of origin must be apostilled(Hague Apostille) or legalized through diplomatic channels, translated by an official sworn translator in Spain and valid on the exact date of submission.
Absences exceeding 90 days: During the 2 years prior to applying for rooted status, you cannot have left Spain for more than 90 days in total.
Apply while you are still an asylum seeker: If you applied for international protection and your case or appeal is still active, the application for rooted status will not be accepted for processing. It is essential to conduct a legal analysis to determine whether it is advisable to withdraw before filing.
Frequently Asked Questions about Obtaining Documentation in Spain (FAQ)
How long do I have to be undocumented in Spain to apply for legal status?
In general, you need to prove 2 years of continuous residence in Spain to apply for any of the types of rooted status (employment-related, social, training-related, or second chance). However, if you have a partner, spouse, or children who are Spanish or EU citizens, you don't need any minimum time to regularize your status.
How long does it take for the Immigration Office's decision to be issued?
The maximum legal timeframe for a decision from the Immigration Offices is 3 months from the day after the online submission. When a licensed attorney submits your case through the Mercurio professional platform, you avoid months-long delays in getting an in-person appointment.
Can I be deported if I submit my application while undocumented?
No. Submitting an application for residence based on rootedness or family ties is a fully legal administrative procedure. Initiating the process demonstrates your willingness to integrate and strengthens your legal protection against any sanctioning procedure.
What if I have a criminal or police record in Spain?
To obtain residency, you must have no criminal record. If you had a conviction in the past whose sentence you have already served, in many cases it is possible to first apply for the expungement of criminal records with the Ministry of Justice before submitting your application to Immigration.
Do you need an attorney to review your case and submit your file?
Each immigration path has technical details that make the difference between quick approval and denial. An error in calculating your stay dates, in the salary of your pre-contract, or in the validity of your background check can cause you to lose months of waiting.
At Counseling for Immigrants We review all your documentation before submitting it, prepare your complete file, and register it electronically with Immigration from any province in Spain.
