AFO and DAFO: the rural-property legality trap in Andalusia for foreign buyers in 2026
Half the rural houses for sale in inland Andalusia were built without a licence — and the rules to legalise them changed in 2024. A plain-English guide to AFO, DAFO, SAFO and the LISTA regime: what each one means, which properties can be cleared, which can never be, and the five-minute check every foreign buyer should run before signing anything.
You have flown into Málaga, driven an hour inland past Coín or Álora, and stood in front of a whitewashed cortijo with a swimming pool, an olive grove and a view that costs €185,000. The agent says it's "legal, just no AFO yet" or "we're finishing the DAFO paperwork." You nod as if this means something, because everyone else is nodding.
It does mean something. It means the property was built without a building licence, the local town hall has never formally signed it off, and the legal rights you would acquire on completion are radically different from what you assume when you imagine "buying a house in Spain." In Andalusia, roughly 300,000 rural buildings sit somewhere on this spectrum. Foreign buyers walk into the trap monthly because the language is bureaucratic, the rules changed in 2021 and again in practice through 2024, and the only honest answer is uncomfortable to give while standing under bougainvillea.
This is the foreign-buyer guide to AFO, DAFO, SAFO and the LISTA regime that now governs all of this in Andalusia. It explains what each acronym actually grants you, which properties can be cleared, which can never be, and the five-minute check that separates a bargain from a demolition order.
The two-paragraph backstory
For thirty years, Andalusia's inland countryside filled up with cortijos, casas de campo, swimming pools and extensions built on rural land — suelo no urbanizable — without proper building licences. Some were small irregularities to existing farmhouses; many were full new builds on plots that local plans never zoned for housing. The town halls largely looked the other way. Then a wave of foreign money in the 2000s made the problem visible, the planning courts started ordering demolitions, and Andalusia's regional government had to invent a procedure to stop the bleeding without legalising every illegal build outright.
The first answer was the AFO — Asimilado a Fuera de Ordenación, "treated as out-of-planning" — created by Decreto 2/2012 and refined by Ley 6/2016. In 2021 the entire urbanism framework was rewritten in the LISTA law (Ley de Impulso para la Sostenibilidad del Territorio de Andalucía, 7/2021), and the implementing regulation in 2022 introduced the SAFO (Situación de AFO, the legal state) and the DAFO (Declaración de AFO, the certificate issued by the town hall). The terminology shifted; the underlying logic did not. Most municipalities now issue DAFO rather than AFO, but you will see both on listings, in escrituras, and in the mouths of agents who haven't updated their script. They are not the same thing as a building licence, and that is the entire story.
What an AFO / DAFO actually grants you
The legal label is generous: "assimilated to out-of-planning." The legal reality is narrow. An AFO or DAFO is a town-hall declaration that the infraction is time-barred — the period in which the administration could order demolition has passed — and the building can therefore exist on a tolerated basis. It is not a legalisation. The building remains formally illegal; it is simply no longer demolishable for the same infraction.
Concretely, an AFO/DAFO gives you four things:
- Protection from demolition for the specific infraction declared. Six years is the standard time-bar in Andalusia for non-protected rural land. After that window the municipality cannot order you to knock the house down for the original unlicensed construction. New infractions reset the clock.
- The legal basis to register the building in the Registro de la Propiedad under the procedure of escritura de obra nueva por antigüedad — the "new-build deed by age." Without an AFO/DAFO, the building exists physically but is invisible to the registry, which makes it almost impossible to mortgage, insure properly, or sell cleanly.
- The right to connect to basic utilities — electricity, water, sewage where possible — subject to the municipality's rules. Before LISTA this was a grey area; under LISTA the utility companies are explicitly authorised to connect properties with a valid SAFO, though some still drag their feet.
- The right to conservation works only. You can repair the roof, replaster, change windows, redo the plumbing. You cannot extend the footprint, add a floor, build a second pool, or convert an outbuilding into a guest house. Any of those would be a fresh infraction that the AFO/DAFO does not cover.
What it explicitly does not give you:
- A first-occupation licence (licencia de primera ocupación). The building is tolerated, not licensed for residential use in the planning sense.
- A cédula de habitabilidad in regions that issue one (Andalusia uses different equivalents but the principle holds).
- The right to obtain a tourist-rental licence in many municipalities. See our tourist-rental licence guide for why this matters if you planned to let the property out.
- Full mortgageability. Some Spanish banks lend on AFO/DAFO properties; many will only lend at lower LTV (50–60% instead of the usual 70%); a number refuse outright. Non-resident mortgages are even harder. See the non-resident mortgage guide.
- Any protection if the property is later found to sit in a category where the time-bar never starts running. Which brings us to the next section.
The properties that can never be cleared
This is where foreign buyers lose the most money. An agent will tell you "don't worry, we can get the DAFO done after completion." They are sometimes right and sometimes catastrophically wrong, because there are categories of land where no time-bar ever runs and the demolition order can arrive in year fifteen or year thirty.
The four red zones, in order of how often they catch foreigners:
1. Specially-protected land (suelo no urbanizable de especial protección). Coastal strips under the Ley de Costas, Parques Naturales and their buffer zones, archaeological protection areas, designated forest, ravines, riverbed easements (dominio público hidráulico). Inland Málaga has a lot of Parque Natural land; the Alpujarras (Granada and Almería) cuts through Parque Natural Sierra Nevada; large parts of the Cádiz and Sevilla countryside are Parque Natural Los Alcornocales or Doñana. A building inside any of these is in fuera de ordenación absoluta — "absolutely out of planning" — and the time-bar does not apply. No AFO, no DAFO, no peace of mind, ever. The municipality can act in year twenty. The Junta de Andalucía or the central state can act independently of the municipality. See the Ley de Costas guide for the coastal version of the same trap.
2. Land subject to active enforcement proceedings. If a expediente sancionador (sanction file) was opened before the six years ran out, the clock stopped. Even if the file then sat in a drawer for a decade, it is still open. The first thing a serious lawyer pulls is the municipal urbanism file (expediente urbanístico) on the cadastral reference. If there is an open file, the AFO/DAFO will be refused.
3. Properties built across two parcels or with disputed boundaries. The DAFO procedure requires a surveyor's report (informe técnico) certifying the date of construction, the footprint and the boundaries. If the building extends over a neighbouring parcel — common where a single owner held both and built without thinking — the town hall will refuse. Boundary disputes are surprisingly common in rural Andalusia because catastral and registry boundaries diverged for decades.
4. Buildings whose age cannot be proved before the relevant cut-off. The AFO/DAFO requires evidence the building existed and was completed more than six years before the application — typically from aerial photography (the vuelo americano, IGN orthophotos, regional flights), utility bills, IBI receipts, or witness statements. If the surveyor's photographic timeline shows the building, or a substantial extension to it, was completed less than six years ago, you cannot apply. You wait the six years out, hoping the municipality doesn't act in the interim.
The five-minute pre-offer check
Before you sign arras on any inland Andalusian property — cortijo, casa de campo, restored molino, any structure on rustic land — do this:
1. Check the cadastre. Pull the consulta descriptiva y gráfica on sedecatastro.gob.es. Look at uso del suelo (land use). If it says suelo rústico or suelo no urbanizable, you are in AFO/DAFO territory. If it says urbano or urbanizable, you are not — the normal planning rules apply and the question is just whether the building had a licence (still important, but a different conversation).
2. Check the registry. Get the nota simple from the Registro de la Propiedad via registradores.org for €9.02. Look at the descripción de la finca (description). If the registered description shows just "parcela de terreno" (a parcel of land) with no building, but the cadastre and the photos show a 150 m² house with a pool, the building is not registered. The seller does not yet legally own "a house with a pool." They own a plot of land with an unregistered structure on it. See the nota simple guide.
3. Ask the seller for the AFO or DAFO certificate. If they have one, read it. Note the date it was issued, the municipality that issued it, and crucially, the description of what was declared assimilated — the footprint and uses. A DAFO that covers the main house but not the 80 m² extension or the pool you also bought is worthless for those elements.
4. Pull the urbanism file at the town hall. Any Spanish lawyer can do this in 24–48 hours via the certificado urbanístico (urbanism certificate). It tells you: is the land protected? Is there an open expediente sancionador? Is the property in a zone where DAFO is possible at all? Without this certificate in hand, you should not pay arras. See our arras contract guide for why the deposit you put down is at risk if you proceed without it.
5. Verify with a surveyor (arquitecto técnico) that age can be proved. A 500 € pre-purchase check by an architect who knows the LISTA procedure will tell you whether the property qualifies for DAFO, what the application will cost (typically 1,500–3,500 € all-in), and how long the municipality is currently taking. Some Málaga municipalities issue DAFO in three months; some Sevilla municipalities take two years.
If steps 1–5 come back clean, you have a tolerated rural property and you proceed with eyes open. If any of them raise a flag, you renegotiate the price down by the legalisation cost (and the risk), make the AFO/DAFO a condition precedent in the arras contract, or walk away.
What "condition precedent in arras" actually means
The single most useful clause a foreign buyer can insert into an arras contract on an unlicensed Andalusian property is this: "the sale is conditional on the seller obtaining a DAFO covering the entire constructed footprint of the property prior to completion; failing which the deposit is returned in full and the contract is rescinded without penalty."
In Spanish: "la compraventa queda sujeta a la condición suspensiva de que la parte vendedora obtenga la Declaración de Asimilado a Fuera de Ordenación (DAFO) que ampare la totalidad de la edificación con anterioridad a la firma de la escritura pública; en caso contrario, las arras serán devueltas en su integridad y el contrato quedará resuelto sin penalización para la parte compradora."
Sellers will resist this. They will tell you they cannot get the DAFO in the four-month arras window. The honest counter is that if the property genuinely qualifies, the surveyor can confirm in two weeks, the application takes three to six months in most municipalities, and the contract can be extended by mutual agreement. If the seller refuses any version of this clause, it is rarely because the timing is impossible. It is usually because they already know the answer they would get is "no."
What it means if you already own a non-legalised property
If you bought in inland Andalusia between 2003 and 2020 and never resolved the legality question, here is the order of operations:
1. Find your file. Many buyers from that era have nothing in writing about the urbanism status. Pull the urbanism certificate from your town hall and a fresh nota simple. Find out where you actually stand.
2. Apply for the DAFO if eligible. Under LISTA the procedure is the same whether you are the original builder or a downstream owner. The fees, the surveyor's report and the informe técnico are tax-deductible against future capital gains in some structures — check with a Spanish tax adviser.
3. Register the obra nueva por antigüedad at the Registro de la Propiedad once the DAFO is issued. Until you do, the building does not legally exist for registry purposes, which becomes a problem the day you try to sell. See our selling-as-non-resident guide for the rest of the exit picture.
4. Get the building insured properly. Many policies on unregistered structures are technically void; underwriters can refuse to pay out if a claim reveals the building was off-register at the time of issue. Replace the policy on the basis of the registered footprint after step 3.
The common foreign-buyer mistakes
- Trusting the agent's "the DAFO is in process" without seeing the surveyor's report, the application receipt or the urbanism certificate. "In process" ranges from "the file is at the town hall, response expected next month" to "the seller mentioned it to a friend who knows someone."
- Assuming AFO and DAFO mean the same as full legality. They don't. Re-read the section above. You buy a tolerated structure, not a licensed dwelling.
- Ignoring the land-protection question. "Rural" alone is not enough. You need to know whether it is especially protected. The cadastre will show suelo no urbanizable de especial protección — that's the one to walk away from.
- Paying arras without the urbanism certificate in hand. The arras deposit is the leverage. Once it's paid, the cheapest way out is forfeiting it. The certificate costs €40 and a week.
- Treating utility connections as proof of legality. A house can have electricity and water from the 1990s and still be illegal. Pre-LISTA, utility companies connected freely; the meter on the wall tells you nothing about the planning status.
- Buying without a lawyer who has actually done LISTA work. Generic conveyancing lawyers from Marbella or Málaga do not always know the inland regime well. Ask specifically: "how many DAFO files have you supervised in the last two years?" If the answer is zero, find another lawyer. See the property-lawyer guide.
- Forgetting that LISTA is regional. This regime applies in Andalusia. Murcia, Valencia, the Balearics and Catalonia have their own — and different — answers to the same problem. If you are looking inland Murcia, the Murcia DIO and Ley 13/2015 are the equivalent conversation; the principles are similar but the cut-offs and procedures differ.
What this means for how you search
The reason this trap snares so many foreign buyers is brutally simple: by the time you are standing in front of the cortijo you have already booked the flight, the hire car, the lawyer recommendation, the AirBnB, and emotionally landed. The cognitive load of telling yourself "this beautiful house with a swimming pool might be a 100,000-euro problem" is more than most people will absorb in a 45-minute viewing while the agent talks about the olive harvest.
This is the search problem Buvivo was built to flip. Instead of you scrolling listings and discovering the legal status three viewings in, you post what you actually want — rural Andalusia, €180–250k, three bedrooms, DAFO already issued, full mains connections, not in a Parque Natural — and only matching properties are pitched to you. The agents and owners who already have the DAFO in the file send it. The ones who don't, self-select out. You spend your viewing trip on properties that survive the urbanism question, and your money on the legal due diligence that finishes the job.
The bottom line
Andalusia's rural property market is the most rewarding and the most punishing in Spain for foreign buyers. The same €200,000 buys a stone cortijo with a pool and a view, or a demolition order in seven years. The procedure that decides which one you got is called LISTA, the certificate that protects you is called the DAFO (formerly the AFO), and neither of them legalises the building — they only buy you a tolerated existence on a tolerated plot.
Run the five-minute check before you sign anything. Insist on the urbanism certificate before you pay arras. Make the DAFO a condition precedent on any property that doesn't already have one. Walk away from anything in a parque natural, a coastal protection zone or with an open expediente. Do that, and you can still find the cortijo with the bougainvillea — just one that won't become a regret.
For the wider picture on rural Spanish property, read our village-house guide, the Costa del Sol guide, and the red flags every foreign buyer should know.
This article is general information, not legal advice. The LISTA regulation and its municipal application are still evolving and vary across Andalusia's 785 town halls; always confirm the specific status of a property with a qualified Spanish urbanism lawyer before signing arras.
Looking for property in Spain?
Post what you're searching for on Buvivo and let agents come to you with matching properties.
Post a free request