Spain Residency and Immigration System: Who Handles Visas, NIE, TIE and Residence Permits?
Spain’s residency and immigration system is mainly controlled at national level, even though many procedures are carried out through provincial offices across the country.
This distinction is important for anyone moving to Spain.
Your local Ayuntamiento can register where you live through the padrón, but it cannot give you legal immigration status. Your right to enter, reside, work, renew your residence or obtain long-term residence comes from Spain’s national immigration framework.
For newcomers, the system becomes much easier to understand once you separate four concepts:
visa → residence authorization → NIE → residence document
They are related, but they are not the same thing.
Who Controls Immigration and Residency in Spain?
Immigration is primarily a responsibility of the Spanish State.
The rules therefore do not fundamentally change simply because you move from Madrid to Valencia, Barcelona, Alicante, Málaga or another Spanish province.
What can change is where and how you complete the procedure.
Depending on your immigration route, you may deal with:
| Authority | What it commonly handles |
|---|---|
| Spanish Consulates | Visa applications made from outside Spain |
| Oficinas de Extranjería | Many residence, work, family, renewal and modification procedures |
| UGE | Certain international-mobility residence authorizations |
| Policía Nacional | TIE cards, fingerprints, certain NIE procedures and EU residence registration |
| Ministry of Justice | Spanish nationality procedures |
| Ayuntamiento | Empadronamiento and municipal matters |
| Social Security | Social Security registration and contributions |
| Tax Agency | Spanish tax administration |
This is why there is no single “Spanish immigration office” responsible for every stage of moving to Spain.
For useful portals and administrative resources, see our guide to essential Spanish government websites.
What Law Governs Immigration in Spain?
For many non-EU nationals, the central framework is Spain’s immigration legislation under Ley Orgánica 4/2000 and its current immigration regulation approved by Royal Decree 1155/2024.
The regulation has applied since May 20, 2025 and introduced important changes to several areas of Spanish immigration law, including residence, work, study, family residence and arraigo procedures.
However, not everyone moving to Spain uses exactly the same legal system.
Different frameworks may apply to:
- EU, EEA and Swiss citizens exercising free-movement rights;
- non-EU family members of EU citizens;
- family members of Spanish citizens;
- international teleworkers;
- highly qualified professionals;
- entrepreneurs;
- intra-company transferees;
- students;
- employees and self-employed workers;
- applicants using exceptional-circumstances routes such as arraigo.
That is why identifying your immigration category should normally come before collecting documents or booking appointments.
You can compare the main routes through our immigration services in Spain overview.
Visa vs Residence Permit in Spain: What Is the Difference?
These terms are frequently used as though they mean the same thing.
They do not.
Spanish Visa
A visa is generally connected with permission to enter Spain for a particular purpose.
Many non-EU applicants begin their relocation process through a Spanish consulate abroad.
However, this is not universal.
Certain residence authorizations can be requested from within Spain when the applicant meets the applicable conditions.
Residence Authorization
A residence authorization is the legal basis allowing a foreign national to reside in Spain.
Depending on the category, it may also provide the right to work.
Examples include residence connected with:
- employment;
- self-employment;
- non-lucrative residence;
- international teleworking;
- family relationships;
- highly qualified employment;
- entrepreneurship;
- exceptional circumstances.
The residence authorization is therefore more important than the plastic card that may later prove it.
NIE vs TIE vs Residence Permit
One of the biggest sources of confusion for newcomers is the difference between the NIE, TIE and actual residence authorization.
NIE — Número de Identidad de Extranjero
The NIE is a foreigner’s identification number.
It may appear on immigration documents and is widely used for administrative, financial, property, tax and other dealings in Spain.
But obtaining an NIE does not automatically make you a legal resident of Spain.
Someone can have an NIE while living outside Spain.
Read our complete guide to the NIE number in Spain.
TIE — Tarjeta de Identidad de Extranjero
The TIE is the physical identification card issued to many non-EU foreign residents.
It normally displays information such as:
- your name;
- NIE;
- photograph;
- immigration status;
- validity period.
The TIE proves your documented status, but it should not be confused with the legal authorization underlying it.
Our TIE Card Spain guide explains the fingerprint appointment, documents and card-collection process.
Residence Authorization
The residence authorization is the legal decision giving you the right to reside in Spain under the applicable immigration category.
A simplified sequence can therefore look like:
Residence authorization → NIE assigned or recorded → TIE issued
The exact order depends on the immigration procedure.
Do EU Citizens Need a Spanish Residence Permit?
EU, EEA and Swiss citizens generally do not use the ordinary non-EU visa and residence-permit system.
They benefit from European free-movement rights.
However, free movement does not mean that someone planning to live permanently in Spain has no administrative obligations.
EU citizens staying in Spain for more than three months generally need to determine whether they must register under the EU residence framework.
Qualifying applicants normally use Modelo EX-18 and receive the Certificado de Registro de Ciudadano de la Unión.
This certificate contains the person’s NIE, which is one reason it is sometimes informally called the “green NIE.”
But:
NIE ≠ EU residence registration
If you are an EU citizen moving to Spain, read our detailed EX-18 EU Citizen Registration guide.
What Is an Oficina de Extranjería?
An Oficina de Extranjería is a provincial State immigration office involved in processing many immigration procedures.
You may interact with Extranjería when dealing with matters such as:
- residence authorizations;
- work authorizations;
- family reunification;
- residence for exceptional circumstances;
- certain renewals;
- changes or modifications of status;
- long-term residence.
Because applications are often associated with the province where you live or intend to live, newcomers sometimes assume immigration law itself is provincial.
It is not.
The law is national, while much of its administration is organized through provincial offices.
What Is UGE and Why Is It Different?
Spain also has a specialized administrative unit commonly known as the UGE — Unidad de Grandes Empresas y Colectivos Estratégicos.
It handles certain residence categories within Spain’s international-mobility framework.
These can include qualifying cases involving:
- international teleworkers;
- highly qualified professionals;
- entrepreneurs;
- intra-company mobility;
- certain other strategic mobility categories.
For example, someone using Spain’s international teleworker route may therefore follow a very different process from someone applying for ordinary employee residence through the standard immigration system.
This is another reason not to assume that every foreign resident submits an application to the same authority.
Does the Policía Nacional Decide Your Residence Application?
Not usually in the sense newcomers often imagine.
The Policía Nacional plays an important role in foreigner documentation.
Among the procedures commonly associated with police immigration units are:
- fingerprint appointments;
- issuing TIE cards;
- certain NIE applications;
- EU citizen residence registration;
- foreigner documentation;
- certain return-document procedures.
A person may therefore receive a favourable residence decision from one authority and later visit a police station to obtain the physical residence card.
If your authorization requires a TIE, the EX-17 TIE application guide explains the next stage.
What Role Does Your Ayuntamiento Play?
Your Ayuntamiento is extremely important after moving to Spain, but it is not an immigration authority.
One of its most important functions for newcomers is empadronamiento — registration in the municipal population register.
Your padrón can become relevant for many practical procedures and may help demonstrate where you live.
However:
Empadronamiento does not itself grant Spanish residence.
Being registered at an address does not replace a visa, residence authorization or EU residence registration.
You can learn more in our complete empadronamiento in Spain guide.
Which Spanish Residency Route Should You Choose?
Spain does not have one universal residence permit for foreigners.
Your correct pathway depends on factors including:
Nationality
EU citizens follow a different framework from most non-EU citizens.
Employment
Working for a Spanish company can require a different route from working remotely for a foreign employer.
Self-employment
Operating your own activity in Spain can create different immigration requirements.
Income and financial resources
Financially independent applicants may qualify for routes that would not fit someone planning to work.
Family relationships
Different systems can apply depending on whether your family member is Spanish, an EU citizen or another foreign resident.
Studies
Students operate under a separate authorization framework.
Current location
Some procedures must start abroad, while others may be submitted from Spain if the legal requirements are met.
Residence history
Someone already legally living in Spain may need a renewal or modification rather than a completely new visa.
The correct question is therefore not:
“What is the easiest Spanish visa?”
It is:
“Which Spanish immigration route matches what I actually intend to do in Spain?”
What Documents Are Commonly Required for Spanish Residency?
Requirements depend heavily on the particular immigration route, but applications may involve documents proving:
- identity;
- nationality;
- criminal history;
- employment;
- professional activity;
- income or financial resources;
- health coverage;
- family relationships;
- qualifications;
- accommodation;
- previous residence;
- Social Security arrangements.
Foreign public documents may also require legalization or an apostille and, where applicable, official translation into Spanish.
Do not collect every possible document months in advance without checking the relevant procedure.
Some certificates have limited practical validity periods.
Our documents needed to move to Spain checklist explains how to organize the document stage.
What Happens After Your Residence Is Approved?
Approval is not necessarily the end of the immigration process.
Depending on your status, the next steps can include:
1. Entry into Spain
Applicants using a consular visa route must enter Spain according to the conditions of the visa and authorization.
2. TIE or EU Registration
Many non-EU residents need a TIE, while qualifying EU citizens use their own registration system.
3. Empadronamiento
Register your address with the municipality where applicable.
4. Social Security
Employees, self-employed workers and other qualifying residents may need Social Security registration or related procedures.
5. Healthcare
Your route to Spanish healthcare depends on your status and circumstances.
6. Tax and administrative setup
Immigration residence and Spanish tax residence are different concepts and should not be confused.
7. Digital access
A digital certificate or Cl@ve can make many government procedures significantly easier.
Relocation therefore continues after the residence permit is approved.
Can You Change From One Spanish Residence Status to Another?
Sometimes.
Spain allows various modification procedures depending on the residence status you currently hold and the new conditions you meet.
Examples can include changes involving:
- study and employment;
- residence and employment;
- employment and self-employment;
- exceptional-circumstances residence;
- family circumstances;
- other qualifying immigration categories.
A change in your job, family circumstances or professional activity does not automatically mean your existing authorization remains appropriate.
Check your immigration position before changing the activity on which your residence depends.
How Do Residence Renewals Work in Spain?
Many temporary authorizations need to be renewed or modified before they expire.
A renewal is not simply a request for another card.
Authorities may need to determine whether you continue to satisfy the legal conditions required for your residence category.
Applicants should therefore monitor:
- residence expiry dates;
- permitted filing periods;
- employment or activity requirements;
- Social Security records where relevant;
- financial conditions;
- family circumstances;
- periods spent outside Spain;
- passport validity.
See our guide to residence permit renewal in Spain before your current authorization approaches expiry.
What Is Long-Term Residence in Spain?
Many non-EU residents eventually move from temporary residence toward residencia de larga duración, or long-term residence.
Five years of qualifying legal and continuous residence is an important benchmark for many applicants, but reaching a calendar anniversary does not mean approval is automatic.
Your residence history and applicable absence rules matter.
Long-term residence can provide the right to reside and work in Spain indefinitely under the conditions established by Spanish law.
EU citizens have a separate permanent-residence framework under EU free-movement rules.
Read our long-term and permanent residence in Spain guide if you are approaching five years of residence.
Does Five Years in Spain Give You Spanish Citizenship?
No.
Long-term residence and Spanish citizenship are separate legal concepts.
Citizenship by residence has its own residence-period requirements, which depend on nationality and personal circumstances.
The general period is longer than five years for many applicants, while reduced periods apply to certain groups.
Residence history, continuity, civic conduct, integration and other requirements may also matter.
If citizenship is part of your long-term plan, immigration decisions made during your first years in Spain can become important later.
National Immigration vs Local Administration: The Key Difference
A useful way to understand Spanish bureaucracy is to divide it into two levels.
National Immigration System
Determines matters such as:
- whether you may enter Spain under an immigration route;
- whether you can legally reside;
- whether your authorization permits work;
- whether your residence can be renewed;
- whether you qualify for long-term residence.
Local Administration
Helps manage everyday life where you live, including areas such as:
- municipal registration;
- some local taxes;
- local services;
- municipal permits;
- community facilities.
Your Ayuntamiento helps establish your local administrative life.
Spain’s immigration authorities establish your legal immigration status.
You normally need both systems when building a life in Spain.
Common Residency and Immigration Mistakes
Thinking an NIE Means You Are a Resident
It does not.
The NIE is an identification number.
Booking a TIE Appointment Before Understanding Your Status
Not every foreign national uses a TIE.
Assuming Every Visa Must Be Applied for at a Consulate
Some Spanish residence routes permit qualifying applications from inside Spain.
Assuming the Ayuntamiento Controls Immigration
Municipal registration and immigration status are separate.
Treating EU and Non-EU Residence as the Same System
They operate under different legal frameworks.
Waiting Until Your Residence Card Is About to Expire
Renewal planning should begin before the deadline becomes urgent.
Choosing a Visa Only Because Someone Else Used It
Two people moving to Spain can require completely different residence procedures even if their income or professions appear similar.
Frequently Asked Questions About Residency and Immigration in Spain
Who is responsible for immigration in Spain?
Immigration law is primarily controlled by the Spanish State. Applications can involve Spanish consulates, provincial immigration offices, specialized national units and the Policía Nacional depending on the procedure.
Is a NIE the same as Spanish residency?
No. A NIE is an identification number and does not by itself grant the right to live in Spain.
Is a TIE the same as a residence permit?
Not exactly. The TIE is the physical foreigner identity card documenting a qualifying immigration status. The underlying residence authorization establishes the legal basis for residence.
Do EU citizens need a TIE in Spain?
EU citizens generally use the EU citizen registration system rather than the ordinary TIE procedure. Qualifying EU citizens staying for more than three months normally need to consider EX-18 registration.
Can my Ayuntamiento approve my Spanish residency?
No. Your Ayuntamiento can handle procedures such as empadronamiento but does not grant immigration residence authorizations.
Do all Spanish residence applications start at a consulate?
No. Many routes begin abroad, but Spanish law also allows certain qualifying residence applications to be filed from within Spain.
Can I work in Spain if I have an NIE?
An NIE alone does not give you permission to work. Your work rights depend on your nationality and immigration or residence status.
Can I become a permanent resident after five years?
Many foreign residents can become eligible for long-term or permanent residence after five years of qualifying residence, but the exact framework and continuity requirements depend on the applicant’s immigration regime.
Is immigration law different in Madrid, Valencia and Barcelona?
The underlying immigration framework is national. Administrative offices, appointment availability and practical procedures can vary between provinces.
Build Your Spanish Immigration Plan Before You Apply
Spain’s immigration system becomes much more manageable when you identify the correct legal pathway before collecting documents, booking appointments or making major relocation decisions.
A strong relocation plan should connect:
Immigration route → documents → application → approval → arrival → TIE or EU registration → empadronamiento → Social Security and healthcare → renewal → long-term residence → citizenship planning
Newcomer.es is building this process into one connected relocation journey.
If you are unsure which Spanish residence route fits your nationality, work, income, family situation and future plans, explore our immigration services in Spain or contact Newcomer.es to plan your next steps.