Urban Legality
Thousands of properties in Andalucía were built without licences or on rural land. Here is what you must check — and what the Land Registry will not tell you.
Spain — and Andalucía in particular — has a well-documented problem with properties that were built without the required planning permission or building licences, or that were constructed on land classified as rural (suelo no urbanizable or suelo rústico) where residential construction is either prohibited or severely restricted. Estimates from the regional government of Andalucía suggest that several hundred thousand properties across the region fall into this category.
This situation arose during decades of rapid construction, during which local planning controls were frequently ignored, circumvented or not enforced. Many of these properties have been bought and sold multiple times, often without buyers being fully informed of their legal status. The practical consequences for a buyer can be severe: inability to obtain a habitation certificate; inability to connect to mains utilities through the municipal network; inability to obtain a mortgage or insurance; and, in the most serious cases, vulnerability to a demolition order.
The risk is concentrated — though not exclusively located — in semi-rural and rural areas, cortijos, fincas, and properties marketed as "country houses," "rural retreats" or "fincas with sea views." However, urban and semi-urban properties can also have legality issues, particularly older properties or those that have been extended without a licence.
The Asimilado Fuera de Ordenación (AFO) is a legal category that applies to buildings that were constructed without the required licence but for which the period within which the authorities could order demolition has expired. Under Spanish law, the general prescription period for planning infringement proceedings is six years from the date of completion of the construction (though in protected land categories such as suelo no urbanizable de especial protección, there is no prescription period and the authorities can act at any time).
When a building has passed the six-year prescription period, it cannot be demolished retroactively for the original planning infringement. In Andalucía, it can be formally recognised under the AFO category, which provides a form of administrative regularisation. The formal Andalucian procedure is known as the DAFO — Declaración de Asimilado al Fuera de Ordenación — and is discussed in detail below.
It is crucial to understand what AFO/DAFO status means — and, equally importantly, what it does not mean:
A property with AFO/DAFO status should therefore be purchased with eyes fully open. It is not a "clean" property with full urban legality — it is a property whose illegal history has been administratively recognised and time-barred from enforcement action.
All land in Spain is classified within the municipal urban planning framework (Plan General de Ordenación Urbana — PGOU, or its equivalent). The two primary categories relevant to buyers are:
Suelo urbano — urban land that has been developed or is designated for development, with full services and building rights. Properties built on suelo urbano with the appropriate licences have full legal status.
Suelo rústico / suelo no urbanizable — rural or non-developable land, typically protected for agricultural, environmental or landscape reasons. Building residential properties on this land is generally prohibited or strictly limited. Any residential construction on suelo rústico that pre-dates current regulations may fall into the AFO/DAFO category, but it cannot be regularised to full urban status.
Properties marketed as fincas, cortijos, or rural houses in the hills behind the Costa del Sol — particularly in the municipalities of Mijas, Alhaurín de la Torre, Coín, Cártama, Álora and many others — frequently sit on suelo rústico. Some of these are charming properties with real lifestyle value, but buyers must understand the legal limitations before committing to a purchase.
A common misunderstanding among foreign buyers is that a nota simple from the Spanish Land Registry (Registro de la Propiedad) confirms that a property is legal. This is incorrect. The Land Registry records legal ownership, mortgages and other charges on the title. It does not record whether a building was constructed with the required licences, whether it complies with planning regulations, or whether it is on protected land. A property can have a clean Land Registry entry and still be built entirely without planning permission.
The Catastro (Cadastre) is a separate administrative register that records the physical characteristics of land and buildings — location, size, use and value for tax purposes. It reflects what physically exists on the ground, but again, it does not confirm whether that building is legally authorised. A building appearing on the Cadastre means it has been registered for tax purposes; it says nothing about its planning legality.
True urban legality can only be determined by checking with the town hall, obtaining the planning history of the property, reviewing the land classification under the current PGOU, and — for rural properties in particular — instructing your lawyer to obtain a formal urban planning report.
An informe urbanístico is a formal report obtained from the relevant town hall (ayuntamiento) that sets out the urban planning status of a specific plot of land. Your lawyer should obtain this — or an equivalent consultation — before any rural or semi-rural property purchase is advised. The report will confirm:
Some town halls issue these reports relatively quickly; others take weeks or months. In some cases, the information can be obtained informally through a consultation with the planning department (área de urbanismo). Your lawyer will know the best approach for the specific municipality where the property is located.
Andalucía introduced its own formal mechanism for regularising unlicensed buildings on rural land through Decreto 2/2012, subsequently updated and consolidated into the regional planning law framework by Ley 7/2021 de impulso para la sostenibilidad del territorio de Andalucía (LISTA). The procedure is known as the Declaración de Asimilado al Fuera de Ordenación (DAFO).
To obtain a DAFO certificate, the property owner must demonstrate that:
The DAFO application is made to the municipality and involves providing plans, photographs and a technical report from an architect or technical architect (arquitecto técnico). The costs involved include the technical report, municipal processing fees, and a financial levy calculated on the value of the unlicensed construction.
Once granted, the DAFO certificate allows the property to be formally inscribed in the Land Registry with its current footprint, and can facilitate the connection to off-grid or independent utilities. However — and this is critical — it does not restore the property to full urban legality, does not permit extensions, and does not resolve the position regarding mains utility connections through new municipal infrastructure. It is regularisation within a legal framework of continued non-conformity, not a conversion to full planning compliance.
Where a property does not yet have a DAFO certificate but appears to qualify, buyers sometimes complete a purchase subject to the seller obtaining the DAFO — or negotiate a price reduction to reflect the cost and risk of the process. Either approach carries risks and must be handled carefully by a lawyer experienced in Andalucian planning law.
Never buy a rural or semi-rural property in Spain without first obtaining a specific urban legality report and taking legal advice on what it shows. Do not rely on what the estate agent tells you about the property's status, on the appearance of a nota simple from the Land Registry, or on the fact that the Cadastre records the building. These documents do not address urban legality.
For more on the full due diligence process for buying property in Spain, see our guide: Due Diligence Checklist for Buying Property in Spain.
We carry out urban legality searches for every property we advise on — including full planning reports and DAFO/AFO assessments. Don't buy before you know what you're buying.