Lucía Arranz worked for four years in Dubai for a consultancy. In 2021, when she left, she reported her departure and moved her tax address to the Emirates. On 10 March 2025 she came back to Valencia on a permanent contract. In May 2026, a bank in the Emirates where she still has an account asks her for a certificate of tax residence in Spain to close her customer file. She applies through the tax agency's website and, a few days later, receives a notice: it is not appropriate to issue it.
Lucía has been living in Spain for more than a year, paying social security contributions and rent in Ruzafa. She does not understand what else Hacienda, as the Spanish tax office is commonly called, wants. The answer is simple and a little uncomfortable: Hacienda knows nothing about any of that, because nobody has told it.
How the Agencia decides whether to issue it
The Agencia Tributaria, the Spanish tax agency, explains it on its website: the certificate is issued if your tax residence in Spain can be inferred from the data held by the AEAT (its own abbreviation). The second additional provision of Order EHA/3316/2010 provides that, once the appropriate checks have been made, the certificate will be issued or the applicant told that the request cannot be granted.
And article 72 of the Regulations on tax management and inspection adds a detail that explains many refusals: when the data declared by the taxpayer do not match those verified by the administration, it is the latter that are certified. If what is on record is residence in Dubai, that is what the Agencia can state, and nothing else.
What Hacienda saw in Lucía's file
Let us take the inventory that anyone looking at her case from outside would take.
- Tax address on the register: Dubai, reported in 2021 and never changed.
- Last IRPF (personal income tax) return filed: the one for 2020, as a resident.
- Years 2021 to 2024: no Spanish returns, consistent with her departure.
- Year 2025: the filing season for 2025 income tax runs in spring 2026. If Lucía had not yet filed when she applied for the certificate, there was still no document of hers for that year.
- Days in Spain in 2025: from 10 March to 31 December, 22 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31 = 297 days.
With 297 days, Lucía is far above the 183 in article 9 of the IRPF Act and is resident in 2025. But that fact lives in her passport, her employment contract and her entry on the municipal register, not in the tax databases. As far as the Agencia was concerned, Lucía was still someone who had left.
The reasons that come up again and again
| Reason | What the register shows | How it is fixed |
|---|---|---|
| Old tax address | An address abroad or a flat that is no longer yours | Report the current address (Modelo 030 if you have no business activity; 036 if you do) |
| Returns not filed | No recent income, or only Modelo 210 non-resident returns | File the outstanding IRPF returns |
| Notice of departure never reversed | That you went abroad | Update the register and document your return |
| Personal details that do not match | A name or identification number different from the passport | Correct the register details before applying again |
| Representative without proven authority | An application made by a third party | Prove the representation, as article 71 of the Regulations requires |
| Request for a year with no data | A year not yet declared | Wait until the return has been filed, or attach evidence to the application |
The order in which to make the corrections
The temptation is to apply for the certificate again straight away, to see whether it comes out this time. It does not. The order that works is this.
First, the address. Article 48.3 of the Ley General Tributaria (the General Tax Act) says that a change of tax address has no effect against the administration until it is reported. As long as the register says Dubai, everything else reaches an office that does not recognise Lucía as resident. We deal with this in what happens if you moved and did not report it and in the guide to putting your tax address right.
Next, the returns. If there is a year in which you were resident and did not file, that gap is precisely what prevents certification. Filing late has its cost, which may be a surcharge, but it is the data the Agencia needs.
Then, the evidence. The Order allows the application to be accompanied by documents and supporting evidence proving tax residence in Spain. An employment contract, the certificate of registration on the municipal register, social security registration and the tenancy agreement do not replace the tax register, but they help when the file goes to manual review.
Finally, the new application, stating correctly the recipient, the purpose and the country where it will take effect.
If you would like us to review what your register entry shows and the order in which to act before applying again, you can explain your situation in the certificate form.
Sometimes the Agencia does not issue the certificate because what is on record fits better with residence in another country, and the applicant had not thought about it. If the underlying reason is that you spend a good part of the year abroad or that your family lives in another State, applying again will not fix it: first you have to analyse where you really live. Correcting the register to obtain a document that does not reflect reality creates a bigger problem than the one it solves.
What it is better not to do
Challenge the refusal as if it were a penalty. Article 75 of the Regulations gives tax certificates an informative character and rules out direct appeals against them, without prejudice to challenging later acts. The useful route, almost always, is to correct the cause and apply again.
Nor is it wise to change your tax address to one that is not real in order to get the certificate. An individual's tax address is the place of their habitual residence, under article 48.2 of the same Act, and the Agencia can check and correct it.
When another country is involved
If the refusal happens because another State also considers you resident, the problem is no longer about the register. The rules for resolving it are in the tax treaties, and we explain them in who issues the certificate if two countries consider you resident. And if it was a foreign administration that refused you, its reasons are governed by its own rules: the client's adviser in that country is the one who can explain them, and we coordinate with that adviser on whatever affects Spain.
Lucía reported her address in Valencia, filed her 2025 income tax return in June and applied for the certificate again in July. It came out on the spot. How long it takes when it does not come out straight away is explained in how long the certificate takes.
The Salama Tax page describes how the register is reviewed before any application and which documents are usually needed. No review guarantees that the Agencia will issue the certificate; what it does is avoid applying blind.