The NIE (Número de Identidad de Extranjero) is your identification number as a foreigner in Spain. You need it to sign an employment contract, open a resident bank account, rent a flat, buy a car or property, and register with Social Security. It is a number, not a card - the card comes separately depending on your situation.
Which procedure applies to you?
- EU, EEA and Swiss citizens staying more than three months apply for the Certificado de Registro de Ciudadano de la Unión (form EX-18). It is a green certificate that shows your NIE.
- Non-EU citizens with a visa or residence authorisation receive a NIE with their authorisation and then apply for the TIE (Tarjeta de Identidad de Extranjero), the physical residence card, with form EX-17.
- Anyone who only needs the number - for example to buy property without living here - applies for a NIE certificate with form EX-15.
Getting an appointment (cita previa)
Appointments are booked online through the government's Cita Previa Extranjería website by choosing the province of Madrid and the right procedure. Slots for "Policía - Certificados UE" and "Toma de huellas" (fingerprinting for the TIE) are released in batches and disappear quickly, so check early in the morning and on different days. You need an appointment for each step; walk-ins are generally not accepted.
What to bring
- The completed application form (EX-18, EX-17 or EX-15), printed and signed
- Your passport or national ID card, plus a photocopy
- Proof of the fee paid: form Modelo 790, código 012, which you fill in online and pay at a bank before the appointment
- For the EU certificate: proof of employment, self-employment, sufficient funds and health insurance, or enrolment in studies
- For the TIE: a recent passport-size photo and your padrón certificate
Practical tips
Bring originals and copies of everything; officials can refuse an application for a missing photocopy. Applications are handled in Spanish, so if your Spanish is basic, consider bringing a friend or using a gestor or lawyer who handles extranjería procedures. Many of the English-speaking lawyers in our directory do this routinely.
Once you have your NIE, the next step is usually registering on the padrón - see our guide to empadronamiento in Madrid.
Last reviewed November 2026. Rules, fees and procedures change - always confirm with the official source before you act: Spanish Government - Extranjería · Cita previa