When we were house-hunting inland, I developed a nervous tic. Every time an agent said “fully legal”, my left eye twitched. Not because agents lie (well, not all of them), but because “legal” on rustic land in Spain means something much narrower than most buyers think.
A house can be in the Catastro, have a meter on the wall, pay its IBI every year and still not be legal. One Andalusian architect put it bluntly in an interview this summer: your house can be in the Catastro, in the Land Registry, have power and water, and still not be legal. He reckons around 300,000 homes in Andalucía are in that grey zone.
Our finca near Hondón turned out to be on the right side of the line, but I spent a lot of evenings learning why. This guide is what I wish someone had handed me: what AFO and DAFO mean, where they apply, what they let you do, and what they don’t.
I’m not a lawyer. Rules change, and town halls read them differently. Treat this as the map, then get a local lawyer and an architect to walk the ground with you.
Why so many country houses aren’t fully legal
For decades, people built in the campo first and asked questions later. A casita for weekends, an extra bedroom for the in-laws, a naya turned into a kitchen, a pool for the grandchildren. Some had no licence at all; some had a licence for a warehouse and became a house. Nobody came to check, the house went into the Catastro, the electricity company connected it, and life went on.
The problem is that the planning rules on rustic land are strict. The building may never have been allowed. If the council didn’t act within the time limit, it can no longer order demolition, but that doesn’t make the house legal. It sits in a limbo that the law calls being “assimilated to out of planning”.

AFO and DAFO: what the letters mean
AFO stands for *asimilado a fuera de ordenación*. It describes a building that was built without a licence (or against one), where the time limit for the council to restore legality has run out. The law can’t knock it down, but it treats it as something that shouldn’t really be there.
DAFO is simply the *declaración* of that status: the formal resolution from the town hall that recognises the building as AFO. In everyday conversation, estate agents and lawyers use AFO, DAFO and “the AFO certificate” more or less interchangeably. What matters is whether you have the town hall’s written resolution or just someone’s opinion.
Andalucía has regulated AFO in detail for years. The current framework is the land law known as LISTA and its regulation, which govern how irregular buildings are recognised as AFO. Other regions have their own versions, and some, like the Valencian Community, now take a much harder line.
Andalucía: the six-year clock
In Andalucía, the council can only take measures to restore legality while the works are under way and within the six years after they were completely finished, or from when outward signs made them visible, if that came later. After that, the power lapses, except in the cases listed in article 153.2 of LISTA, where the council can act at any time.
Those exceptions are the ones that catch people. On land that is specially protected (for environmental, landscape or archaeological reasons, or because of natural hazards like flooding) or on public land, the action to restore legality never expires, so AFO isn’t available. A house inside a protected zone or next to a riverbed doesn’t get the benefit of the clock.
What an AFO lets you do
An AFO is not a licence. Think of it as the state agreeing to tolerate the building. In practical terms, owners can register the property in the Land Registry and connect basic supplies like electricity and water. That alone can make a house sellable to a buyer who needs a mortgage or a notary who wants paperwork.
What it doesn’t do is just as important. The AFO lets you carry out conservation and maintenance works, but it limits your rights. The rules mainly allow the work needed to keep the house safe, sanitary and habitable, not extensions or major alterations. If you’re buying a two-bedroom cortijo with dreams of adding a studio and a pool, an AFO house is the wrong starting point.
What the town hall will want
The application is technical. Expect to pay an architect or technical architect to prepare a report with the building’s identification and Catastro and Registry details, its date of completion, and proof that it is safe and sanitary. The Málaga architects’ college publishes a technical note listing what the documentation must contain.
You’ll also need to show how the house gets water, how its wastewater is treated and how it gets electricity. A specialist firm’s checklist covers the technical report plus safety and health, water and sanitation and an electricity plan, plus fees. In other words, an off-grid house needs its solar, its water source and its septic system to be on paper as well as on the ground.
Older houses are a different case
Very old buildings don’t need the AFO route at all. The same Málaga note sets out a separate category for buildings on rustic land completed before 16 August 1986, whose time limit had already run out when the 1990 land reform came into force. If the house you’re looking at is genuinely that old, ask the architect whether it can be certified that way instead. Old aerial photos and the Catastro’s construction date are usually the starting evidence.
What an AFO costs
There are two bills: the technician and the town hall.
On the technical side, one national platform that collects quotes puts the average price of an AFO it has handled at €1,320. Simple houses cost less, complicated ones more, especially if the water or septic system needs work before it can be certified.
The town hall fee varies enormously, because each council sets its own ordinance. Many calculate it as a percentage of the value of the building. One Córdoba municipality, for example, charges 3% of the taxable base when the owner applies, and 5% when the council starts the procedure itself. On a house valued at €100,000, that’s the difference between €3,000 and €5,000, which is a good argument for applying before the council comes to you.
| Cost | What it covers | Example figure |
|---|---|---|
| Technician’s report | Survey, plans, safety and services report | Average €1,320 on one quote platform (Certicalia) |
| Town hall fee | Processing the declaration | 3% of the base if you apply, 5% if the council starts it, in one Córdoba town (BOP Córdoba) |
| Works needed first | Septic, water, electrics to a safe standard | Depends entirely on the house |
Ask for both figures in writing before you buy. If the seller says the AFO is “in process”, ask for the application’s registry stamp and the date it went in.
The Valencian Community: no clock at all on rustic land
This is where I live, so I read this part twice.
The Valencian Community used to have a four-year limit, then the 2014 land law (the LOTUP) raised it to fifteen years. Then a 2019 reform went further: for building on non-developable land, protected or not, there is no longer any time limit on the council’s action. A commentary on that reform summed it up simply: illegal constructions on rustic land in the Valencian Community no longer prescribe.
In plain English: there is no Valencian equivalent of waiting out the clock. If a house on rustic land was built illegally and isn’t covered by an older regime, the council can act whenever it likes.
The minimisation route
What the Valencian Community offers instead is *minimización de impacto territorial*: a procedure to regularise existing houses on rustic land by reducing their environmental impact, chiefly their wastewater.
The current land law (the TRLOTUP) limits it to buildings completely finished before 20 August 2014. Groups of houses at three or more per hectare are treated as clusters and go through a special plan; isolated houses need a prior individual declaration first.
The heart of it is sewage. A minimisation programme must include a system for treating discharges, and the owner pays for the works inside their own plot. After the licence is granted, the owner has a maximum of four years to present the certificate that the works are finished. Some towns have already drawn up these plans; the village of Parcent, for example, has published special minimisation plans for its rural clusters, and El Campello publishes guidance on how it applies the procedure.
If you’re buying a house in the Valencian Community that isn’t fully licensed, the key questions are: when was it finished (and can you prove it was before August 2014), is the town running a minimisation plan for the area, and what will the wastewater part cost.

Other regions in brief
Every region has its own rules and its own clock. Catalonia, Murcia and Castilla-La Mancha (which includes Albacete) all have their own land laws, and I’ll cover them properly in the region guides. The questions you need answered are the same everywhere:
- How long does the council have to act after a building is finished, and does that limit apply to this type of land?
- Is the plot in any protected category, a flood zone, a livestock route or next to a public road, where the limit doesn’t apply?
- Is there a formal procedure to recognise the building, and what does it let you do afterwards?
How to check a house before you buy
Here’s the order I’d do it in, roughly from cheapest to most expensive.
- Get the cadastral reference and look at the Catastro record. Note the year of construction and the built area. My guide to finding a property’s cadastral reference shows four ways to get it.
- Order a nota simple from the Land Registry. Compare the description of the house with the Catastro and with what’s actually standing there.
- Ask the seller for every document: licence, first occupation licence, AFO resolution, minimisation documents, old water and electricity contracts.
- Ask the town hall for a planning report on the plot: its classification, any protection, and whether there are open disciplinary files on the property.
- Pay an architect for a site visit before you sign the deposit contract. Ask them to compare what’s built with what’s registered and give you a written opinion on the route to regularise it, and roughly what it costs.
- Get a lawyer to put conditions in the contract, so you can walk away and get your deposit back if the regularisation turns out to be impossible.
My guide to checks before buying rural land goes through the land side of this in more detail, and buying a ruin step by step covers the extra traps of a property that’s half fallen down.
Questions people ask me
Is an AFO house safe to buy?
It can be, if you go in with your eyes open. You’re buying a house you can live in, maintain and sell, but not one you can freely enlarge. The price should reflect that. If the seller is pricing it like a fully licensed villa with planning potential, walk away.
Can I get a mortgage on an AFO house?
Being able to register the house is what makes a mortgage possible at all, but every bank has its own appetite for these properties. Ask your bank or broker early, with the AFO resolution in hand.
Can I extend an AFO house or add a pool?
Generally no. The regime is built around keeping the existing building safe and habitable. Anything bigger needs the planning rules for rustic land to allow it, which is a separate question. My guide to what you can build on rustic land explains those rules.
The seller says “no pasa nada”. Should I believe them?
Believe paper, not people. A town hall resolution with a date and a file number is worth more than any number of reassurances. If there’s nothing in writing, the honest answer is that nobody knows yet.
What about off-grid systems on an AFO house?
You’ll need them documented anyway, because the AFO file has to explain how the house gets water, power and sanitation. That’s one reason I’d budget for a licensed septic system and a properly certified solar installation from the start. My guides to septic tank rules and off-grid solar sizing and costs cover both.
The short version
Legal status is the first question about any house on rustic land, not the last. In Andalucía, time can turn an irregular house into an AFO house you can register and live in, but it can’t turn it into a fully legal one, and protected land never gets that benefit. In the Valencian Community, time no longer helps at all on rustic land; the minimisation route is the main way forward for houses finished before August 2014.
None of this is a reason not to buy. It’s a reason to find out exactly what you’re buying, and to price it accordingly. I’d rather pay an architect a few hundred euros before signing than discover the problem when I try to add a bedroom.





Leave a Reply