MUNDO Research Team · Vetted by Costa del Sol property professionals
Published July 2025 · Updated February 2026 · 9 min read
Licencia de Primera Ocupación: The First Occupation Licence
The Licencia de Primera Ocupación (LPO), also called the Licencia de Ocupación or Cédula de Habitabilidad (in some regions), is an official document confirming that a building has been constructed in accordance with the approved building plans and meets all habitability standards. It is the Spanish equivalent of a UK Building Control completion certificate.
Why It Matters
The LPO is essential for several reasons:
- Connecting utilities: Technically, electricity, water, and gas companies should not connect permanent supplies without an LPO. In practice, this rule is inconsistently enforced — many properties operate with "temporary" connections that have been in place for decades.
- Mortgage approval: Spanish banks will typically not grant a mortgage on a property without an LPO. This is a major issue for buyers needing finance.
- Legal sale: While it is possible to buy and sell a property without an LPO, the buyer should be aware of the implications. A property without an LPO may have been built illegally or may not meet building standards.
- Tourist rental licence: You cannot obtain a VFT (tourist rental licence) without an LPO or equivalent habitability certificate.
- Insurance: Some insurers will not cover properties without an LPO, or may exclude structural damage claims.
How to Check
Ask the seller or their agent for a copy of the LPO. If they cannot provide one, ask why. Possible reasons include:
- The property was built before LPOs were required (older properties)
- The developer went bankrupt before obtaining it (common during the 2008 crisis)
- The property was built or extended without proper planning permission
- The LPO was obtained but has expired (they can have validity periods in some municipalities)
Your lawyer should check the LPO status as a standard part of the conveyancing due diligence. If the property lacks an LPO, it doesn't necessarily mean you can't buy it — but you need to understand the risk and the potential cost of regularising the situation.
Building on Rural vs Urban Land
Spanish land is classified into three main categories, and the classification determines what you can build:
Suelo Urbano (Urban Land)
Land within a designated urban area with all services (roads, water, electricity, drainage) available. Building is permitted in accordance with the Plan General de Ordenación Urbana (PGOU) — the local master plan. You can build a house, apartment building, or commercial premises, subject to planning permission and building regulations.
Suelo Urbanizable (Developable Land)
Land designated for future urban development but not yet developed. Building may be possible once the necessary infrastructure is installed and planning approvals obtained. This is often land on the outskirts of towns designated for future expansion.
Suelo No Urbanizable / Suelo Rústico (Rural/Non-Developable Land)
Land classified as rural. Building is heavily restricted. You can typically only build:
Get the full picture before you buy
Free weekly intel — cost breakdowns, market drops, and vetted agents for UK buyers.
No spam. Unsubscribe anytime.
- Agricultural buildings: Related to the agricultural use of the land (barns, storage, agricultural worker's dwelling)
- Single dwelling: Subject to strict conditions — minimum plot sizes (often 10,000-25,000m² in Andalusia), maximum building size, setback requirements, and connection to all services
- No subdivision: You generally cannot divide rural land into smaller plots for multiple dwellings
Despite these restrictions, large numbers of properties have been built on rural land throughout Spain — particularly in the 1980s-2000s when enforcement was lax. Many of these are the "fincas" and "cortijos" that appeal to UK buyers. The legal status of these buildings varies enormously.
The AFO Process in Andalusia
The AFO (Asimilado a Fuera de Ordenación) is a process specific to Andalusia that allows owners of buildings constructed on rural land without proper planning permission to regularise them. It was introduced under the LOUA (Ley de Ordenación Urbanística de Andalucía) and provides a path to legal recognition for previously illegal constructions.
Requirements for AFO
- Time requirement: The building must have been completed more than 6 years ago (the statute of limitations for planning enforcement). There must be no ongoing disciplinary proceedings.
- No protected land: The building must not be on specially protected land (coastal zone, nature reserve, flood plain, public domain — demanio público)
- No public risk: The building must not pose a risk to public safety or public utilities
- Structural assessment: A technical report (informe técnico) from an architect confirming the building is structurally sound and meets basic habitability standards
The AFO Process
- Step 1: Commission an architect to prepare a technical report and plans of the building as it exists
- Step 2: Submit the AFO application to the local town hall (Ayuntamiento) with the technical report, plans, and proof that the building is more than 6 years old (aerial photos, utility bills, cadastral records)
- Step 3: The town hall reviews the application and issues the AFO certificate if all conditions are met
- Step 4: Register the AFO with the Registro de la Propiedad (Land Registry)
Cost and Timeframe
- Architect's report: €1,500-€3,000 depending on the property size
- Town hall fee: €500-€2,000 (varies by municipality)
- Land registry inscription: €200-€500
- Total: typically €3,000-€6,000
- Timeframe: 3-12 months depending on the municipality
Limitations of AFO
Crucially, an AFO does not legalise the building — it merely acknowledges its existence and prevents demolition. An AFO property:
- Cannot be extended or significantly modified
- Cannot be demolished and rebuilt
- May face limitations on utility connections
- May not qualify for a full LPO
- May affect resale value (some buyers and banks are wary of AFO properties)
Despite these limitations, the AFO provides legal certainty and is essential for selling or mortgaging a rural property that was built without permission.
Swimming Pool Regulations
Swimming pools are subject to specific regulations in Spain:
Planning Permission
- Urban land: Most municipalities require a licencia de obra menor (minor works licence) for a swimming pool. Cost: €300-€800 in fees, plus an architect's basic project
- Rural land: A swimming pool on rural land typically requires the same permission as a building — a full licencia de obra. In practice, many pools on rural land are built without permission
- Community pools: Within urbanisations, the community of owners decides on pool construction, and the developer's original licence typically covers the pool
Safety Regulations
Since 2017 (RD 742/2013 for public pools, with regional rules for private pools in many communities), swimming pool safety regulations have been tightened:
- Fencing: Private pools accessible to the public (tourist rentals) must have safety fencing at least 1.2m high with self-closing gates. Private pools for owner use only are generally exempt, though requirements vary by region.
- Alarm systems: Some regions require pool alarms for properties used for tourist rental
- Anti-suction devices: Required on all pool drains since 2007
- Depth markings: Required for pools used for tourist rental
If you rent your property on Airbnb or similar platforms, ensure your pool meets the safety requirements for your region. Failure to comply can result in fines and, more seriously, personal liability if an accident occurs.
Extensions and Renovations: When You Need a Licence
Works That Require a Licencia de Obra Mayor (Major Works Licence)
- New construction
- Extensions that increase the built area
- Structural modifications (moving load-bearing walls, adding floors)
- Change of use (converting commercial to residential, or vice versa)
- Major external modifications visible from the street
A major works licence requires an architect's project (proyecto), submission to the town hall, and approval. Cost: architect fees of €3,000-€15,000 depending on complexity, plus town hall fees of 2-4% of the construction cost. Timeframe: 2-6 months for approval.
Works That Require a Licencia de Obra Menor or Comunicación Previa (Minor Works or Prior Communication)
- Internal renovations (new kitchen, new bathroom) that don't affect structure
- Replacing windows and doors
- Repainting exterior (in some municipalities)
- Installing air conditioning (external units)
- Building a pergola or terrace enclosure
Minor works licences are simpler — no architect's project is needed, just a description of the works and payment of fees (€100-€500). Some municipalities have replaced the licencia de obra menor with a comunicación previa (prior notification) — you simply notify the town hall of the works and can proceed after a set period (usually 15-30 days) unless the town hall objects.
Works That Typically Don't Need a Licence
- Internal painting and decorating
- Replacing fixtures (taps, sockets, light fittings)
- Replacing like-for-like flooring
- Garden landscaping (no structures)
Penalties for Illegal Building
The penalties for building without proper licences in Spain are serious:
- Fines: From €600 to €600,000 depending on severity and regional legislation
- Demolition orders: The town hall can order the demolition of illegally built structures. These orders are increasingly enforced, particularly in coastal zones and protected areas.
- Inability to register: An illegally built structure cannot be registered in the Catastro or Land Registry (making it invisible for legal and tax purposes)
- No utility connections: Illegally built properties may be denied permanent utility connections
The statute of limitations for planning enforcement in Andalusia is 6 years from completion of the works (previously 4 years). After 6 years, the town hall can no longer order demolition (except on specially protected land, where there is no limitation). However, the fact that a building is immune from demolition does not make it legal — it simply cannot be torn down. The AFO process is then the route to regularisation.
Related Reading
Due Diligence Checklist for UK Buyers
Before purchasing any property in Spain, ensure your lawyer checks:
- Land classification: Is the property on urban, urbanisable, or rural land? Obtain a certificado urbanístico from the town hall.
- Building licence: Was the original building constructed with a valid licencia de obra? Ask for a copy.
- First occupation licence: Does the property have an LPO or cédula de habitabilidad?
- Catastral match: Does the built area registered in the Catastro match what is actually on the ground? Discrepancies suggest unlicensed extensions.
- Land registry match: Does the description in the Registro de la Propiedad match the actual property? The land registry description often differs from the Catastro — both should be checked.
- AFO status: If on rural land, has an AFO been obtained? If not, is the property eligible for one?
- Coastal zone: Is the property within the zona de servidumbre (protection zone) of the coast? The Ley de Costas imposes restrictions on building within 100m of the coast (or 20m for the zona de tránsito). Properties within these zones may face demolition orders regardless of age.
- Protected land: Is the property within a nature reserve, national park, or other protected area? Building restrictions may be extremely stringent.
- Community rules: If within a development, do the community statutes restrict building works or modifications?
Building regulations in Spain are complex, regionally variable, and historically inconsistently enforced — creating a legacy of properties with uncertain legal status. As a UK buyer, the most important thing you can do is engage a thorough, independent lawyer to conduct proper due diligence before you sign anything. The cost of a comprehensive check (€1,000-€2,000) is negligible compared to the cost of buying a property with undisclosed building problems.
Free: 2026 Costa del Sol Buyer’s Checklist
30 essential steps from NIE application to completion. Never miss a critical deadline.
Join the MUNDO Buyer Club
Get weekly property intel, market insights, and be first to know about new listings on the Costa del Sol.
Join FreeUseful Resources
- UK Buyers Hub — all guides and locations
- Spanish property cost calculator
- Glossary of Spanish property terms
- Step-by-step buying process guide
Disclaimer
This guide is for informational purposes only and does not constitute legal, tax, or financial advice. Property laws and tax regulations change frequently — always consult a qualified Spanish lawyer and tax advisor before making any property purchase decisions. Data sourced from Spanish Land Registry, Idealista, and MUNDO partner network. Last verified: March 2026.