+34 656 450 023
AREVONT
Guides

Illegal buildings in Spain and the risk of demolition

In 30 seconds

Whether an illegal Spanish building can be fixed comes down to one fact. On ordinary urban or rustic land, the authority’s right to order demolition expires after six years, and the building can then apply for AFO status. On protected or coastal land, that clock never starts, and demolition stays possible forever.

Does where the land sits change everything?

This page is about a building whose core structure was never legally approved at all: no building licence at all, or a licence for something the land was never zoned to allow. If your concern is narrower, such as a closed terrace, a pool, or an extra room added to an otherwise fully legal house, the separate unpermitted-extensions guide covers exactly that case, under the same Andalusian rules and the same time limits.Yes, land classification matters more than the building’s age, its size, or how finished it looks. Andalusian law treats an identical building completely differently depending on the legal classification of the plot beneath it. This is the first thing a lawyer or a technical inspector checks, before anything else on the checklist, because it decides whether the rest of the check even matters.Arevont’s legal coordination confirms the plot’s classification before you pay a reservation, specifically because a buyer cannot see this from a listing, a photograph, or even a site visit. It is a legal status recorded with the municipality, not something you can see by looking at the land.
Where does the land sit?
  • Suelo urbano (urban, buildable)Six years from completion, then AFO status becomes possible.
  • Suelo no urbanizable, ordinary rusticThe same six-year clock as urban land; some rural uses are permitted, residential building generally is not.
  • Suelo no urbanizable de especial protecciónDemolition can be ordered at any time, with no time limit, regardless of how long the building has stood.
  • Public coastal domain and its protection easement (ZIL)No clock at all. Construction here can be pursued at any time, with no time limit.
This single fact decides everything else.
CompletionNo time limit
  • Ordinary urban or rustic land6-year clock
  • Protected or coastal landNo time limit
6 years
AFO becomes possible from here on ordinary land
On ordinary land the demolition clock runs out after six years. On protected or coastal land it never starts.
This is the position as of 17 August 2026, read in Ley 7/2021 (LISTA) art. 153 and checked against two independent Andalusian legal-practice sources, rather than assumed. The exact article numbers have not been read directly in the official BOJA text, so a lawyer still needs to confirm them before this is treated as settled.

Does AFO status make an illegal building legal?

No, and this is the single most common misunderstanding about it. Asimilado a Fuera de Ordenación, or AFO, simply recognises that the administration’s own time limit to order demolition has run out. It is not a statement that the building was ever properly permitted. AFO status lets an owner connect to water and electricity, and in most cases register the building, which matters a great deal for a buyer because a building that cannot be registered is much harder to sell or mortgage. But it does not remove the underlying illegality.Arevont’s technical-inspection partner checks a property against its real paperwork, specifically to catch the gap between "connected to services and lived in for years" and "legally built". These two things feel the same from inside the house, but they are not the same thing at all.
If it has AFO, it is now a normal legal property
It can be registered and connected to services, but it stays classified as non-conforming. Some future work, such as a large renovation or an extension, may not be allowed in the same way it would be on a fully legal building.
AFO status is permanent and cannot be revisited
This depends on the time limit having genuinely run out, and on the land not falling into one of the no-limit categories above. If it is later found that the land sits in a protected zone, the question can reopen even after AFO status was granted.
A mortgage lender will treat an AFO property the same as an ordinary one
In practice, lenders are often more cautious about an AFO property, and the valuation and loan terms can differ. Confirm this with a specific bank before assuming a normal mortgage is available.
If a property already has AFO status, is it safe to buy without checking further?It is a much safer starting point than an illegal building with no status at all, but it is not the end of the check. Confirm the land classification the AFO was granted under: a status granted years ago can be reopened if new information shows the land falls into a no-limit category. Also confirm directly with a lender whether the mortgage terms you expect really apply to an AFO property.

How would a buyer even find out an enforcement file is open on a specific property?

This is the finding that most surprises a buyer’s lawyer, because it does not appear on the document everyone assumes covers it. A nota simple shows what is registered against the property: mortgages, easements, other charges. An open municipal enforcement procedure against an illegal construction, called an expediente de disciplina urbanística, is not automatically shown in the registry, and a clean nota simple does not mean no such procedure exists.The only reliable way to find out is to ask the town hall’s own urban planning department (departamento de urbanismo or disciplina urbanística) directly, about the specific plot. This is a targeted check, not something that appears in a general document review. Ask for it explicitly, rather than assuming it is already covered by the standard checks.
  1. Ask the municipality directly, by plot referenceNot the seller, and not a general registry search: a written or in-person request to the town hall’s planning department.
    Where
    Town hall, urban planning department / urban enforcement department
  2. Ask for the licencia de obra and compare it to what is builtIf a licence exists, but the finished building goes beyond what it allows, part of the structure can be illegal even though part of it was genuinely licensed.
  3. Treat “no problem for years” as irrelevant on protected landYears without any action mean something on ordinary land, where the six-year clock runs.
    Watch out
    They mean nothing on land where demolition never becomes time-barred.
A clean nota simple does not mean no enforcement file exists.

What a buyer’s check on this specific risk covers

This is a more detailed version of the full legal check a lawyer runs on every purchase, focused on the one risk described above.
What is checkedWhat it means in practiceWhy it matters
Land classification (Registro and Catastro both)Whether the plot is suelo urbano, ordinary rustic, or under special protection. Checked in both systems, because they can disagree.Decides whether the rest of this check even matters.
Licencia de obra against the built footprintWhether a real licence exists and whether what stands on the plot matches it.A partial licence can mean part of the building is legal and part is not.
Open enforcement procedures at the ayuntamientoA direct, specific request to the municipality, using the cadastral reference. Not visible in a standard registry search.This is something a clean nota simple will not show on its own.
AFO / DAFO status, if any existsWhether the building already holds recognised non-conforming status, and under which land classification it was granted.Changes what is registrable and mortgageable, without making the building fully legal.
The first-occupation licence, where relevantWhether the building was ever certified fit to connect to services and be lived in.A building that was never legally approved rarely has this either. Its absence is a further warning sign, not the whole answer.
Not every item applies to every property. Your lawyer confirms what is relevant to the specific plot and its documentation.
Frankly

What the law settles, and what only a local check can

This is general information about how Andalusian law treats illegal construction, current as of 17 August 2026. It is read from Ley 7/2021 (LISTA) and checked against two independent legal-practice sources, rather than assumed from a commentary. It is not a legal opinion on any specific property, and it does not describe the status of any real building.How common is this, honestly? Andalusia’s own last full official count, in 2019, put the number of irregular constructions in the region at around 327.000. Press reports since then describe that figure as having fallen to roughly 300.000, as regularisation and demolition work continues. Neither number is our own estimate: both come from news reports, not from a single current official publication, and no figure exists that narrows this down to the Costa del Sol specifically or to the kind of property a foreign buyer is likely to consider.The figure worth treating most carefully beyond that is the six-year time limit and the list of land categories where no limit applies at all. Both were checked against two sources that agree with each other and quote the same article numbers, but neither was read directly against the official BOJA text, which is why they are flagged for a lawyer to confirm rather than presented as beyond question.None of this performs the check it describes, and we are not a law firm. Arevont’s legal coordination and its technical-inspection partner check the specific plot and the specific building for you, free of charge, before you commit a reservation deposit. That is the real mechanism, and what you have just read is the idea behind it.

Frequently asked questions about illegal buildings

Is an illegal building automatically worth avoiding, even with AFO status?
Not automatically, but it changes what you are buying: a property with real limits on future renovation, sometimes on financing, and a value that reflects that reduced flexibility. Some buyers accept this deliberately, at a price that reflects it. The mistake is not knowing about it, not the decision itself.
Can a seller be held responsible if they knew about an illegal construction and did not disclose it?
Hiding a known defect when selling can carry its own legal consequences, separate from the building’s planning status itself, and this is exactly the kind of finding a lawyer raises before completion rather than after. It is a reason to have the check done before signing, not a substitute for it.
Does insurance still cover an AFO or illegal property?
It depends on the insurer and on what is being insured: contents cover is more straightforward than structural cover on a building with an irregular legal status, and this is worth confirming directly with an insurer for the specific property rather than assuming either way.
How is this different from an unpermitted extension on an otherwise legal house?
The difference is scale, not the legal mechanism. Both sit under the same six-year clock and the same protected-land exceptions. An unpermitted extension puts one room or one structure at risk; an illegal whole building puts the entire property at risk. The site’s separate guide to unpermitted extensions covers the narrower case in full.
Related
Looking at a specific property?
Next stepDo you have a guarantee and are not sure what it actually covers?Send us a copy of the document or a link to the property. We will tell you what to ask the lawyer before you send any further payment.
Submit property