Skip to content
Buying Process8 min readBy SpainUnveiled Editorial Team

Hidden Risks When Buying Property in Spain: Illegal Builds, Rustic Land and AFO Certificates

Illegal builds, rustic land and AFO certificates are the biggest hidden traps for foreign buyers in Spain. Here's how to spot them before you sign.

Hidden Risks When Buying Property in Spain: Illegal Builds, Rustic Land and AFO Certificates - Spain Unveiled

This article is general information, not legal, tax, or immigration advice. Rules and figures change — verify with an official source or a licensed professional before acting.

Hidden Risks When Buying Property in Spain: Illegal Builds, Rustic Land and AFO Certificates

Spain is one of the world's most attractive places to buy a home — but it is also a country where property law is layered across national, regional and municipal levels. Nowhere is that more dangerous for foreign buyers than in the grey zone of illegal construction, rustic land purchases, and AFO certificates. Villas advertised as "legalised", country houses "with all permits", or plots "ready to build" can hide problems that take years — and tens of thousands of euros — to unwind.

This guide walks you through what to check, what the paperwork actually means, and where buyers most often get burned. Laws and municipal rules change, and interpretations vary by comunidad autónoma, so always confirm current rules with an independent licensed Spanish abogado (never the seller's or developer's lawyer) before signing anything.

Why Illegal Builds Are So Common in Spain

Rural Spain — especially Andalucía, Valencia, Murcia, the Canary and Balearic Islands — is dotted with homes built on land where they should never have existed, or extended far beyond what was licensed. This happened for decades because:

  • Municipal enforcement was inconsistent, and locals built casitas that grew into full villas.
  • Rustic land (suelo no urbanizable or rústico) has strict limits on what — and how much — can be built, but those limits were widely ignored.
  • Rules differ between regions, and between town halls (ayuntamientos), so a build that is tolerated in one municipality may be prosecuted next door.

The property may still be listed, sold, mortgaged in some cases, and lived in — but its legal status can range from "fully legal" to "demolition order pending". You need to know exactly where on that spectrum your target property sits before you pay a deposit.

The Three Legal Categories You Must Understand

Spanish planning law generally sorts land into three categories:

  • Suelo urbano — urban land, serviced, buildable within planning rules.
  • Suelo urbanizable — land classified for future development, subject to a planning process.
  • Suelo no urbanizable / rústico — rural or protected land, where building is heavily restricted or prohibited.

A property on rustic land is not automatically illegal — traditional farmhouses and some low-density builds are allowed under strict conditions (minimum plot size, use tied to agriculture, setbacks, height limits). But swimming pools, guest annexes, garages, terraces and extensions added over the years are frequently unlicensed.

What an AFO Certificate Actually Is

In Andalucía, the most common tool for regularising older illegal or semi-legal builds on rustic land is the AFODeclaración de Asimilado a Fuera de Ordenación (loosely, "declaration of assimilation to out-of-planning status"). Similar mechanisms exist under different names in other regions.

Key things to understand about an AFO:

  • It is not a building licence and it does not make the build legal. It recognises that the illegal build exists, that the enforcement deadline has expired, and that the town hall will tolerate it in its current state.
  • The property remains fuera de ordenación (out of planning). You generally cannot expand, structurally modify, or fully rebuild it — only conservation and habitability works are typically allowed.
  • Utilities (water, electricity) can usually be connected legally once an AFO is granted, which is often the buyer's real motivation.
  • Getting an AFO involves a technical report (architect), municipal fees, and can take months to over a year depending on the town hall.
  • Andalusian rules on AFOs were significantly reformed under LISTA (Ley de Impulso para la Sostenibilidad del Territorio de Andalucía) — the current criteria, timelines and fees should be verified with the specific ayuntamiento and a local abogado, because implementation still varies.

If a seller tells you the property "has an AFO", ask for the certificate, read what it covers, and confirm it matches the actual footprint of the house today. Any works done after the AFO was issued may be freshly illegal.

Red Flags Before You Sign Anything

Watch for these warning signs, which frequently appear on rural properties across Spain:

  • Discrepancies between the Nota Simple, Catastro and reality. The Registro de la Propiedad (Land Registry) may show 120 m², the Catastro (Cadastre) 180 m², and on the ground you find 240 m² plus a pool. Every extra square metre is a question mark.
  • No first-occupation licence (Licencia de Primera Ocupación or Cédula de Habitabilidad, depending on region).
  • No end-of-works certificate (Certificado Final de Obra) or architect's declaración de obra nueva for extensions.
  • Seller offers a low declared price to reduce transfer tax — this creates capital gains and money-laundering exposure for you on resale.
  • Property described as "in the process of legalisation" with no paperwork to prove it.
  • Wells and septic tanks that were never declared or authorised.
  • Protected land classifications (parque natural, vía pecuaria, dominio público hidráulico, coastal Ley de Costas zone) touching the plot — these can make regularisation impossible.

The Due Diligence Your Lawyer Should Do

A proper legal review before signing a contrato de arras (deposit contract) should include:

  • Nota Simple from the Land Registry — ownership, charges, mortgages, embargoes.
  • Catastro certificate — surface areas and boundaries as recorded for tax.
  • Certificado urbanístico from the town hall — land classification and what can legally be built.
  • Licence history — original building licence, extensions, first-occupation licence.
  • Confirmation there is no open sanction file (expediente sancionador) or demolition order.
  • Topographic survey on rural plots to check actual boundaries vs registered ones.
  • Energy certificate (Certificado de Eficiencia Energética) — required for sale.
  • Community debts if applicable, and up-to-date IBI (municipal property tax) receipts.

For rustic properties, add a specific check on whether the plot meets the minimum unit of cultivation (unidad mínima de cultivo) — buying a subdivided rural plot smaller than the regional minimum can invalidate the segregation.

Who Pays What, and Where the Costs Hide

Beyond the price, budget realistically for:

  • Transfer tax (ITP on resale, or IVA + AJD on new-build) — rates vary by autonomous community; check the current rate for your region.
  • Notary and Land Registry fees.
  • Legal fees — typically around 1% of the price, but agree a flat quote in writing.
  • AFO costs if applicable — architect's report, municipal fees, and later utility connection costs.
  • Retention for non-resident sellers — the buyer withholds a percentage of the price and pays it to the Agencia Tributaria on the seller's behalf; confirm the current rate.
  • Plusvalía municipal — usually the seller's obligation, but negotiable and worth confirming.

Never rely on verbal reassurances about "who normally pays what". Put it in the arras contract.

Buying Remotely and Via a Power of Attorney

Many foreign buyers sign via a poder notarial (power of attorney) given to their Spanish lawyer. This is standard and safe if:

  • The POA is drafted narrowly (specific property, specific price ceiling).
  • Your lawyer is genuinely independent — verify their Colegio de Abogados registration number.
  • Funds move through traceable bank transfers with clear source-of-funds documentation; Spanish notaries and banks apply strict anti-money-laundering checks.

Short FAQ

Can I get a mortgage on a property with an AFO? Sometimes, but many Spanish banks will not lend, or will lend only at lower loan-to-value ratios, on properties that are fuera de ordenación. Confirm with the specific bank before committing.

Can I insure an illegal build? You may be able to insure the contents and basic structure, but claims involving unlicensed elements can be denied. Disclose the situation to the insurer in writing.

If I buy an illegal build, can the town hall demolish it? If the enforcement deadline has expired and no protected land is involved, demolition is unlikely but not impossible — especially where courts have ordered it. Properties on protected rural land or the coastal public domain carry the highest demolition risk, sometimes with no compensation.

Is a notary's involvement enough protection? No. The notario verifies identity, capacity and the deed's formal legality — not planning status, hidden defects, or whether the build matches the licence. That is your abogado's job.

The Bottom Line

Rustic land and older rural homes in Spain can be wonderful buys — but only if you understand exactly what you are buying. An AFO is a tolerance, not a legalisation. A beautiful villa on suelo rústico can be a legal minefield. Slow down, hire your own abogado, insist on written answers to written questions, and walk away from any seller who resists proper due diligence. In Spanish property, patience is almost always cheaper than a lawsuit.

Laws, tax rates and regional planning rules in Spain change frequently and vary by region. Always confirm current rules with an independent licensed Spanish abogado and the relevant town hall before making any decision.

More guides in Buying Process