Property & Conveyancing in Spain

Property Legalisation in Spain — AFO, DAFO and the Out-of-Ordinance Build

Thousands of rural and country homes in Spain were built, extended or altered without full planning licence. Many can now be regularised through an AFO or DAFO certificate — but the certificate does not make an illegal build legal, and not every property qualifies. Here is what these terms really mean, who is eligible, and what legalisation does and does not give you.

Rural & country propertyAFO / DAFO certificatesFor owners & buyersPlain English
5.0★
Rated on Google
100%
English-speaking team

The Unlicensed-Build Problem That Catches Out Expats

If you own a country property in Spain — or you are about to buy one — there is a real chance that part or all of it was built without the planning permission Spanish law required at the time. It is one of the most widespread and least understood issues facing foreign owners of rural property. A villa with an extra bedroom that never appeared on a licence, a pool and pool house added years after construction, a barn converted into a guest annexe, or an entire dwelling raised on rustic land where no home should ever have been approved: all of these are common, and all of them carry a status problem that does not show up in a glossy estate-agent photograph.

The difficulty is that Spanish planning law treats these situations very differently from one another, and the language used to describe them — fuera de ordenación, asimilado a fuera de ordenación, AFO, DAFO — is opaque even to many Spanish owners, let alone an English-speaking buyer reading it for the first time. Some unlicensed builds can be brought into a recognised, tolerated status; some cannot; and the certificate that recognises a tolerated build is not the same thing as a building licence, even though it is often sold to buyers as if it were. Getting this wrong is expensive. It can mean buying a property you cannot insure, mortgage, extend or comfortably sell, or sinking money into a build that the authorities may still order to be demolished.

The one-sentence version: legalisation in this context usually does not mean turning an illegal build into a fully legal one — it means obtaining official recognition (an AFO or DAFO certificate) that an out-of-ordinance build is tolerated and can stay, with important limits attached. Whether your property qualifies depends on the land, the age of the build, and whether any planning enforcement is still open.
The Key Statuses

Legal, Out of Ordinance and Assimilated Out of Ordinance

Six ideas you need to hold apart. The first three are the planning statuses a build can have; the next three are the tools and limits around legalisation.

1

Fully legal build

The property was built with a valid building licence, on land where building was permitted, and matches what the licence and the registry record describe. It has its first-occupation licence or equivalent and can be sold, mortgaged, insured and extended like any normal home. This is the status everyone wants — and the one to confirm rather than assume.

2

Fuera de ordenación

"Out of ordinance." A build that was lawful when constructed but no longer conforms to current planning rules — for example because zoning or building parameters changed afterwards. It is not illegal as such, but its non-conforming parts generally cannot be extended or substantially improved, only conserved. The exact restrictions depend on the municipality.

3

Asimilado a fuera de ordenación

"Assimilated to out of ordinance" (AFO; in Andalucía often issued as a DAFO resolution). A build that was never properly licensed but where the time limit to take planning enforcement action has expired. It cannot be made fully legal, but it can be officially recognised and tolerated, allowing it to be used and maintained — subject to limits.

4

The AFO / DAFO certificate

The administrative resolution from the town hall declaring a build to be in assimilated-out-of-ordinance status. It records what exists, confirms it can remain, and is the document that lets utilities, the registry and buyers treat the property as recognised rather than simply undeclared. It is not a building licence and does not approve future works.

5

Eligibility, in brief

To qualify, the planning infraction must be time-barred (the period to order demolition has lapsed), the property must not sit on specially protected, public-domain or otherwise undevelopable land where no time bar applies, and there must be no open disciplinary or enforcement proceedings. Fail any of these and AFO is generally not available.

6

What it does not fix

An AFO/DAFO does not retrospectively grant a licence, does not authorise extensions or new works, and does not cure problems on protected land. The build remains non-conforming; you simply gain official recognition that it is tolerated. Treating the certificate as a clean bill of health is the most common and costly misunderstanding.

The distinction that matters most to a buyer is between status 2 and status 3. A property that is fuera de ordenación was once lawful; a property that is asimilado a fuera de ordenación never was, but can no longer be acted against. They are sometimes spoken about interchangeably on the ground, yet they arise from different facts and carry different paperwork. When someone tells you a country house is "legalised," your first question should always be: legalised how, and on what basis — a full licence, an out-of-ordinance recognition, or an AFO/DAFO declaration? The honest answer changes everything about what you can do with the property.

Where the Problem Comes From — Building on Rustic Land

Most legalisation cases trace back to construction on rural or rustic land (suelo rústico or suelo no urbanizable). For decades, particularly across inland Andalucía, Murcia, the Valencian interior and parts of the Costa del Sol and Costa Blanca, homes were built on land that was never zoned for residential use. Sometimes that happened with the apparent blessing of a local builder or even a permissive town hall; often it happened with a licence that did not actually cover what was built, or no licence at all. The owners lived in these properties for years, paid their local taxes, and assumed that doing so made everything regular. It did not.

When Spain tightened planning enforcement and the regions introduced regimes to deal with the resulting backlog of irregular rural homes, a practical compromise emerged. Properties that could no longer be demolished — because the legal window to act had closed — could be recognised in an assimilated status, brought onto the radar of the authorities, connected to services in a controlled way, and recorded so that they could change hands more transparently. That is the origin of the AFO and, in Andalucía, the DAFO. It is a pragmatic solution to a historic mess, not an amnesty: it deals with what already exists and firmly closes the door on building more in the same way.

Why expats are especially exposed: a foreign buyer rarely knows the planning history of the land, cannot easily read the town-hall records, and is often reassured by a seller or agent that "everyone's house is like this." That reassurance is not a substitute for checking the actual status. The point of this page — and of taking proper advice — is to replace assumption with fact before money moves.

Is Your Property Eligible to Be Legalised?

Eligibility for an AFO/DAFO turns on a small number of decisive questions. None of them can be answered reliably from the property's appearance; all of them require checking the planning records, the land classification and the enforcement history. Broadly, a build is a candidate for recognition where the following hold true.

  • The infraction is time-barred. The period in which the authorities could lawfully order demolition or restoration of legality has expired. This is the single most important gateway. The length of that period, and how it is counted, depends on the region and the date of the build.
  • The land is not specially protected. The property does not sit on land subject to special protection — coastal public domain, protected natural areas, flood zones, livestock tracks (vías pecuarias) and similar — where the time bar generally does not apply at all and demolition can be ordered indefinitely.
  • There are no open proceedings. No disciplinary or enforcement file is currently active against the property. An open expediente blocks recognition until it is resolved.
  • The build is structurally complete and safe. AFO regimes generally require that the construction is finished and meets basic conditions of safety and habitability; a half-built or unsafe structure is not a candidate.
  • The construction can be evidenced and dated. You can demonstrate, typically through aerial imagery, cadastral records and a technical report, what was built and when — the date being central to proving the time bar has run.
  • Local taxes and the cadastre broadly reflect reality. The property and its true footprint can be reconciled with the cadastral and tax records, or brought into line as part of the process.
The reverse is just as important. If the build sits on protected or public-domain land, if enforcement is still open, or if it is too recent for the time bar to have expired, an AFO/DAFO is usually not available — and a seller who claims otherwise is either mistaken or misleading you. Our first job on any matter is to establish, honestly, which side of that line a property falls.

What Legalisation Does — and Does Not — Give You

This is the part most likely to be misunderstood, so it is worth being precise. An AFO/DAFO recognition genuinely improves your position. It moves the property from an undeclared, vulnerable state into one that is recognised by the authorities, recorded on the official register, and far easier to deal with when you come to sell, insure or arrange services. It removes the cloud of "is this even legal?" that hangs over an undeclared build, and it gives a future buyer a documented status they can understand and rely on. For many owners that is exactly the certainty they need.

But it is not a building licence and it does not make the build legal in the full sense. The construction remains non-conforming; you cannot use the certificate to justify extending, rebuilding or substantially improving the property — those works would require their own authorisation, which on rustic land may simply not be available. Recognition also does not erase the underlying land issue: if the home is on rustic land, it stays on rustic land, with all the limits that implies. And it offers no protection at all where it was never available in the first place, such as on specially protected or public-domain land. Selling becomes possible and more transparent, but the property will still be valued and treated by buyers, banks and insurers as what it is: a recognised but non-conforming rural build. Anyone who tells you an AFO makes the house "completely legal, just like any other" is overstating what the certificate does.

Selling, mortgaging, insuring and utilities: a recognised (AFO/DAFO) property can usually be sold and insured, and connected to services in a controlled way, far more easily than an undeclared one. Mortgage lending is more variable — some banks will lend against a recognised rural property and many will not, or will lend less — so the status improves your options without guaranteeing them. We set out the realistic picture for your specific property rather than a blanket promise.

Buying a Property That Needs Legalising

The most dangerous moment in all of this is the purchase of a rural property whose status has not been verified. You may be shown a certificate and told everything is in order; you may be told the house is "in the process" of legalisation; or you may simply be told not to worry. None of these is a substitute for an independent check of the actual planning position. A property described as "legalised" might hold a genuine AFO/DAFO, might be merely fuera de ordenación, might have an application that will fail, or might be on protected land where recognition can never be granted and demolition remains a live risk. Only proper due diligence tells them apart.

This is precisely why a buyer of any rural or country property should instruct their own lawyer — not the seller's, not the agent's recommendation by default — to investigate the planning status before signing or paying a deposit. An independent lawyer acting only for you will obtain the urbanistic certificate from the town hall, check the land classification and enforcement history, confirm what any existing AFO/DAFO actually covers, and tell you honestly whether the price reflects the real, restricted status of the build. These checks sit alongside the wider red flags to watch for when buying property in Spain and the broader work of safely buying and selling property. Where a build is genuinely an unlicensed or illegal construction, our guide to illegal builds in Spain sets out the risks and the options in full.

Practical rule for buyers: never accept "it's legalised" at face value. Get an independent lawyer to obtain the town-hall planning certificate and confirm, in writing, exactly what status the property holds and what you can and cannot do with it — before any money is committed.

The Regional Picture — Andalucía and Beyond

There is no single national rulebook for legalising out-of-ordinance builds. Planning is largely devolved to Spain's autonomous communities, and each has developed its own framework for dealing with irregular rural construction. Andalucía is the region most associated with these issues and with the DAFO in particular, having faced an enormous backlog of homes built on rustic land across its interior provinces; its rules have evolved through successive reforms aimed at regularising existing dwellings while preventing new ones. Murcia, the Valencian Community, Castilla-La Mancha and others each have their own regimes and their own terminology, and even within a region individual town halls apply the rules with noticeable differences in practice, fees and processing times.

Two consequences follow for an English-speaking owner or buyer. First, advice you read about one region — or worse, a generic article that does not say which region it describes — may simply be wrong for your property. The eligibility tests, the enforcement time limits, the documents required and the fees charged are all capable of differing from one autonomous community, and one municipality, to the next. Second, the rules change over time. Regions reform their planning laws, courts interpret them, and town halls update their procedures. A property that could be recognised under last year's framework, or a fee that applied then, cannot be assumed to hold today. This is why we never rely on a remembered rule of thumb and always confirm the current position for the specific municipality before advising you to spend money on a process.

Change-over-time caveat: the law on out-of-ordinance builds, AFO/DAFO eligibility and town-hall fees is set out in regional and municipal rules that are revised periodically. Nothing on this page should be treated as the current rule for your property — we verify the live position for your specific location before acting.

Common Mistakes and Misconceptions

  • "An AFO/DAFO makes the house fully legal." No — it recognises a non-conforming build as tolerated. It is not a building licence and does not make the construction legal in the full sense.
  • "Fuera de ordenación and asimilado a fuera de ordenación are the same thing." They are not. One was once lawful and is now non-conforming; the other was never lawful but can no longer be acted against. They arise from different facts and carry different paperwork.
  • "If everyone's house in the area is like this, it must be fine." The status of your neighbour's property tells you nothing reliable about yours. Each build must be checked against its own land, date and enforcement history.
  • "Any unlicensed build can be legalised." Wrong — builds on specially protected or public-domain land, those with open enforcement, and those too recent for the time bar to have run generally cannot be recognised at all.
  • "Once it's legalised I can extend or rebuild." No — recognition tolerates what exists; it does not authorise future works, which on rustic land may not be available.
  • "A certificate means I can get a normal mortgage." Not necessarily — lending against recognised rural property is variable, and many banks lend less or not at all. Recognition improves your options without guaranteeing finance.
The throughline: almost every misconception either overstates what legalisation achieves or assumes a property qualifies when it may not. Establishing the real status early turns a hidden liability into a known position you can plan around — or walk away from before you pay.
FAQs

Property Legalisation & AFO/DAFO — Your Questions

What does "property legalisation" actually mean in Spain?+

In most rural cases it does not mean turning an illegal build into a fully legal one. It usually means obtaining official recognition — an AFO or DAFO certificate — that an out-of-ordinance build is tolerated and can remain, with limits attached. The construction stays non-conforming; you gain a recognised, recorded status rather than a building licence.

What is the difference between fuera de ordenación and asimilado a fuera de ordenación?+

A property that is fuera de ordenación was built lawfully but no longer conforms to current planning rules. A property that is asimilado a fuera de ordenación was never properly licensed, but the time limit to take enforcement action has expired, so it can be officially recognised and tolerated. They arise from different facts and carry different paperwork.

What is an AFO or DAFO certificate?+

It is the administrative resolution from the town hall declaring a build to be in assimilated-out-of-ordinance status. It records what exists, confirms it can remain, and is the document that lets utilities, the Land Registry and buyers treat the property as recognised. In Andalucía it is commonly issued as a DAFO resolution. It is not a building licence.

Does an AFO/DAFO make my property fully legal?+

No. It recognises and tolerates a non-conforming build but does not retrospectively grant a licence or make the construction legal in the full sense. The build remains non-conforming, and on rustic land it stays on rustic land with all the limits that implies.

Is my property eligible to be legalised?+

Broadly, a build is a candidate where the planning infraction is time-barred (the period to order demolition has expired), the land is not specially protected or public domain, there are no open enforcement proceedings, and the construction is complete, safe and can be evidenced and dated. Eligibility can only be confirmed by checking the planning records, land classification and enforcement history.

Can a property on protected land be legalised?+

Generally no. On specially protected, public-domain or otherwise undevelopable land — coastal public domain, protected natural areas, flood zones, livestock tracks and similar — the enforcement time bar often does not apply at all, and demolition can be ordered indefinitely. An AFO/DAFO is usually not available in those cases.

What does the legalisation process involve?+

It runs through a legal assessment of eligibility, an architect's technical report describing and dating the build, an application to the town hall with supporting documents, payment of municipal fees and any value-linked charge, the town-hall resolution if the file is in order, and finally reflection at the Land Registry and reconciliation with the cadastre.

How long does it take and what does it cost?+

Timescales vary enormously between municipalities and can run to several months, as historic evidence has to be gathered, the technical report commissioned, and the town hall awaited. Costs include the architect's fees and municipal charges, many of which are linked to the value or surface of the build, so they differ widely by location. We establish the local position and quote once we have seen the property; extras may apply.

Can I sell a property that is asimilado a fuera de ordenación?+

Yes, a recognised (AFO/DAFO) property can usually be sold and is far more straightforward to transfer than an undeclared build, because the buyer can see a documented status. It will still be valued and treated as a recognised but non-conforming rural property, and the buyer should carry out their own checks before completing.

Can I get a mortgage or insurance on a legalised rural property?+

Insurance is usually available, and recognition makes a controlled connection to utilities easier. Mortgage lending is more variable — some banks will lend against a recognised rural property and many will not, or will lend less. Recognition improves your options without guaranteeing finance, so the position should be checked for your specific property.

I am buying a country house described as "legalised" — what should I check?+

Do not accept the description at face value. Instruct your own independent lawyer to obtain the town-hall urbanistic certificate, check the land classification and enforcement history, confirm whether any existing AFO/DAFO genuinely covers the whole build, and advise whether the price reflects the real, restricted status — before signing or paying a deposit.

Do the rules differ between regions like Andalucía and Murcia?+

Yes. Planning is largely devolved, so each autonomous community has its own framework and terminology, and individual town halls apply the rules differently in practice, fees and processing times. Andalucía is most associated with the DAFO. The rules also change over time, so the current position for your specific municipality must be confirmed before acting.

Can Platinum Legal Spain tell me if my property can be legalised?+

Yes. We begin with an honest eligibility assessment — checking land classification, planning history and enforcement — and tell you plainly whether an AFO/DAFO is realistically achievable. Where it is, we coordinate the architect, manage the town-hall application and see it through to the registry. We act for English-speaking clients across Spain and quote clearly once we have seen the property's position.

Find Out Where Your Property Really Stands

Before you buy, sell or spend on a rural property, know its true planning status. We assess whether an AFO/DAFO is achievable, manage the process where it is, and protect buyers before they commit — in plain English, across Spain.

The information on this page is general guidance only and does not constitute legal advice. The rules on out-of-ordinance builds, AFO/DAFO eligibility, planning enforcement time limits and municipal fees are set out in regional and local legislation that changes over time and varies between Spain's autonomous communities and individual town halls. Whether a specific property can be legalised depends on its land classification, the date of construction and its enforcement history. Always obtain advice on your specific property before acting. Platinum Legal Spain is an independent English-speaking legal practice serving clients across Spain.