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.
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.
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.
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.
"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.
"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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.