NIE number and a bank account in Spain before a mortgage or loan
The NIE is the personal number Spain gives a foreigner, and it is also the foreigner's tax number, so buying a home, signing a mortgage and paying the taxes of ownership all need it. A foreigner with economic, professional or social interests in Spain obtains it from the Spanish police on request, and from abroad through a Spanish consulate; the decision is due within 5 days, and silence after that means refusal.
-
Real Decreto 1155/2024 · art. 205.1, 205.3 y 205.4 · (source data as of 2026-10-08)
source: www.boe.es · act.php
What is the NIE?
The foreigner's identity number: personal, unique and exclusive. It is assigned to foreigners who start a procedure to stay in Spain, and to those who have economic, professional, social or other interests in the country — buying a home is one of them. The number appears on every document issued to its holder.
-
Real Decreto 1155/2024 · art. 205.1 y 205.2 · (source data as of 2026-10-08)
source: www.boe.es · act.php
NIE and NIF: why the tax agency asks for it
Every operation with tax consequences in Spain needs a tax identification number (NIF). For a foreigner, the NIF is the NIE. A foreigner who has no NIE can be given a NIF starting with the letter M by the tax agency.
Buying a home and signing a mortgage are such operations, and so are the taxes a non-resident owner pays afterwards.
-
Real Decreto 1065/2007 · arts. 18.1, 20.1 y 20.2 · (source data as of 2026-10-08)
source: www.boe.es · act.php
Mortgage in Spain for non-residents and foreigners · Non-resident tax in Spain after buying a property
How does a non-resident obtain an NIE?
In person, from the Spanish police — directly, at a foreigners' office or at a police station. Someone who is not in Spain at that moment requests it from the police department for foreigners and borders through a Spanish consulate.
Two conditions: not being in Spain irregularly, and stating why the number is needed.
The decision is due within 5 days of the request reaching the office in charge; if no decision arrives by then, the request is treated as refused.
The same procedure issues the certificate of residence and the certificate of non-residence.
-
Real Decreto 1155/2024 · art. 205.3, 205.4 y 205.5 · (source data as of 2026-10-08)
source: www.boe.es · act.php
Which documents does a bank accept from a foreigner?
A bank must identify every customer with a reliable document. For a foreigner the law lists the residence card, the foreigner's identity card and the passport; for a citizen of the EU or the EEA, also the national identity card. Other official identity documents with a photograph may be accepted only as an exception.
-
Real Decreto 304/2014 · art. 6.1 a) · (source data as of 2026-10-08)
source: www.boe.es · act.php
Who has a right to a basic payment account?
A bank that offers payment accounts must offer a basic payment account to anyone who resides legally in the European Union, including people with no fixed address, as well as to asylum seekers and to people whose expulsion is legally or practically impossible. Someone living outside the EU is not covered by this right and depends on the bank's own policy.
The bank must refuse if the customer does not give the information required under the anti-money-laundering rules, or already holds an account in Spain that offers the same services.
A refusal must be in writing, free of charge and with its concrete reasons, within 10 business days of the complete request.
-
Real Decreto-ley 19/2017 · arts. 3, 4.1 y 5.2 · (source data as of 2026-10-08)
source: www.boe.es · act.php
Mortgage in Spain for non-residents and foreigners · New build in Spain: how your deposit is protected
What this page does not contain
Some practical details depend on sources this page has not read:
- waiting times for an appointment at a police office or a consulate;
- the fee for issuing the NIE;
- the documents a particular consulate asks for;
- the fees banks charge for accounts of non-residents.