Licencia de Primera Ocupación & Cédula de Habitabilidad: Spain’s Habitation Certificates Explained

Key Takeaways

  • The licencia de primera ocupación (LPO) proves a building is legally habitable. Without it, you cannot connect utilities, get a mortgage, or register on the padrón in most municipalities.
  • Cédula de habitabilidad is the same concept under a different name. Cataluña, Valencia, and the Balearic Islands use cédula de habitabilidad; Andalucía issues the licencia de primera ocupación.
  • Missing an LPO doesn’t always mean you can’t buy. Properties without one may qualify for a DAFO/AFO legalisation in Andalucía — but expect extra cost and months of paperwork.
  • Budget €1,500–€3,000 for the architect’s certificado final de obra plus 2–4% ICIO tax on declared construction value at your town hall.
  • Processing times on the Costa del Sol run 1–6 months depending on the ayuntamiento — Marbella and Estepona are typically faster than Málaga capital.

🌊 Get the WaypointSur Briefing

Free weekly intel for expats on the Costa del Sol. Deadlines, workarounds, and admin shortcuts only long-term residents know.

Subscribe Free →

What Is a Licencia de Primera Ocupación?

The licencia de primera ocupación (LPO) — sometimes called the licencia de primera utilización — is the municipal certificate confirming that a completed building matches its approved building licence (licencia de obras) and complies with planning, safety, and habitability standards. Think of it as the town hall’s sign-off that a property is fit to live in.

It’s issued by the local ayuntamiento (town hall) after an inspection confirms the finished construction aligns with the project that was originally approved. Every new-build property in Spain needs one before it can be legally occupied.

LPO vs Cédula de Habitabilidad: What’s the Difference?

Spain’s autonomous communities love doing things their own way, and habitation certificates are no exception:

  • Andalucía — Uses the licencia de primera ocupación. This is what you’ll encounter on the Costa del Sol.
  • Cataluña — Issues the cèdula d’habitabilitat (cédula de habitabilidad in Castilian). It must be renewed every 15 years for existing properties or 25 years for new builds.
  • Comunidad Valenciana — Also uses the cédula de habitabilidad, valid for 10 years and renewable.
  • Balearic Islands — Issues a cédula de habitabilidad valid for 10 years.
  • Basque Country, Madrid, and others — Various regional equivalents exist, though Madrid effectively replaced the cédula with the LPO system.

The practical effect is identical: the document proves a dwelling meets minimum habitability conditions. The name and renewal rules change depending on where you are. For everything Costa del Sol, you’re dealing with the LPO under Andalucían rules.

Why the LPO Matters: What You Can’t Do Without One

Mortgages

Spanish banks will not release mortgage funds for a property without a valid LPO. The notary typically requires it at the point of signing the escritura de compraventa. If you’re buying with finance, no LPO means no completion — full stop.

Utility Connections

Endesa, Iberdrola, and the water companies (Acosol on the western Costa del Sol, EMASA in Málaga) technically require the LPO to set up permanent supply contracts. In practice, some properties run on temporary builder’s supplies or inherited contracts for years — but that’s a red flag, not a solution.

Insurance

Home insurance policies may be void or limited if the property lacks an LPO. Insurers argue — correctly — that an uninspected building presents unknown structural and safety risks.

Padrón Registration

Some town halls won’t let you register on the padrón without proof that the property is legally habitable. Others are more relaxed. Marbella’s Oficina de Atención al Ciudadano, for instance, has been known to require it; smaller municipalities may not ask.

Resale Value

A property without an LPO sells for less — often 15–30% below market — because the buyer inherits the legalisation problem. Your pool of buyers shrinks to cash purchasers willing to take the risk.

When Do You Need an LPO?

New Builds

Every new construction in Spain requires an LPO before occupation. The developer (promotor) is responsible for obtaining it before handing over keys. If a developer asks you to complete without the LPO “because it’s coming soon,” that’s a serious warning sign. Your property lawyer should refuse to proceed.

Major Renovations

If you’ve done a reforma integral (major renovation) that required a building licence — changing the structure, adding rooms, altering the facade — you’ll need an LPO for the renovated property. Minor cosmetic works (painting, replacing a kitchen) don’t trigger this requirement.

Buying an Existing Property

When buying a resale property, the LPO should already exist. Your lawyer will check during due diligence. For older properties (pre-1980s especially), it’s common that an LPO was either never issued or has been lost. This doesn’t necessarily kill the deal, but it needs resolving — see the section on common problems below.

How to Get an LPO in Andalucía

The process follows a predictable sequence, though timelines vary wildly between municipalities:

Step 1: Obtain the Certificado Final de Obra

Hire an architect (arquitecto) or architectural engineer (arquitecto técnico) to inspect the completed building and issue a certificado final de obra y habitabilidad. This certificate confirms the construction matches the approved plans and meets the Código Técnico de Edificación (CTE) requirements.

Cost: €1,500–€3,000 depending on the property size and complexity. A simple apartment might be at the lower end; a villa with pool and separate guest house will be higher.

Step 2: Submit to the Town Hall

File the application at the urbanismo (planning) department of your local ayuntamiento with:

  • The certificado final de obra
  • Copy of the original licencia de obras (building licence)
  • Photographs of the completed property
  • Energy performance certificate (certificado energético)
  • Proof of payment of the ICIO tax
  • Insurance certificate (seguro decenal) for new builds — the 10-year structural warranty

Step 3: Pay the ICIO Tax

The Impuesto sobre Construcciones, Instalaciones y Obras (ICIO) is a municipal tax levied at 2–4% of the declared construction cost. Each town hall sets its own rate. Marbella charges 3.5%, Estepona 4%, Fuengirola 3.75%, Málaga capital 3.75%.

Step 4: Municipal Inspection

A town hall technician visits the property to verify it matches the approved plans and the architect’s certificate. They check habitable room sizes, ventilation, accessibility, and structural safety.

Step 5: Approval and Issuance

If everything checks out, the town hall issues the licencia de primera ocupación. You receive the physical document, which you’ll need for the notary, bank, and utility companies.

Timeline

Officially, Andalucían law requires town halls to respond within one month for existing buildings and three months for new constructions. In practice:

  • Estepona: 4–8 weeks (generally efficient)
  • Marbella: 6–12 weeks
  • Fuengirola: 8–16 weeks
  • Málaga capital: 3–6 months (notoriously slow, improving)
  • Mijas: 8–16 weeks

If the town hall doesn’t respond within the legal timeframe, silencio administrativo positivo (positive administrative silence) technically applies — meaning the licence is deemed granted. Getting anyone to act on that technicality is another matter entirely. Your lawyer may need to file a formal complaint.

How to Check If a Property Has an LPO

Three approaches, ideally used together:

  1. Ask the seller. They should have the original document. If they “can’t find it,” that’s your first red flag.
  2. Check at the town hall. Visit or call the urbanismo department and request a search against the property’s catastral reference or address. Some ayuntamientos offer this via their sede electrónica (online portal).
  3. Review the nota simple. The Land Registry entry sometimes references the LPO, particularly for newer properties. It’s not guaranteed to appear, but its absence on a post-2000 property is worth investigating.

Your conveyancing lawyer should be doing all three as standard due diligence. If they’re not checking for the LPO, find a different lawyer.

No LPO? The DAFO/AFO Route

If a property was built or extended without proper licences — extremely common for rural fincas and older Costa del Sol villas — it won’t have an LPO because there was no building licence to begin with.

Andalucía’s solution is the DAFO (Declaración de Asimilado a Fuera de Ordenación) — sometimes still called AFO in older references. This doesn’t grant full legality but recognises the building’s existence and allows basic services. It’s a pragmatic halfway house that lets you:

  • Connect permanent utilities
  • Obtain insurance
  • Register on the padrón
  • Sell the property to mortgage buyers (some banks accept DAFO)

The DAFO process requires that the construction be older than the statute of limitations for planning violations (generally 6 years in Andalucía, though this varies). Budget €3,000–€8,000+ for the architect’s report, town hall fees, and legal costs. See our complete DAFO/AFO guide for the full process.

Costs Breakdown

Item Typical Cost Notes
Architect’s certificado final de obra €1,500–€3,000 Depends on property size/complexity
ICIO tax 2–4% of construction value Varies by municipality
Town hall application fee (tasa) €100–€300 Administrative processing fee
Energy certificate €100–€200 If you don’t already have one
Gestoría / lawyer assistance €300–€800 Optional but recommended for non-Spanish speakers

For a typical Costa del Sol villa valued at €400,000 with €150,000 in declared construction costs, expect the ICIO alone to run €3,750–€6,000 depending on your municipality’s rate.

Common Problems and How to Handle Them

Unlicensed Extensions

The classic Costa del Sol headache. Previous owners enclosed a terrace, added a pool house, or extended the kitchen — all without a building licence. The original LPO (if it existed) doesn’t cover these additions. The town hall inspection will flag them immediately.

Solution: Either demolish the illegal works (rarely practical), apply for retrospective legalisation if the construction complies with current planning rules, or pursue the DAFO route if the statute of limitations has passed.

Lost Records

Pre-1990 properties — especially in smaller municipalities — often have no records of an LPO ever being issued. Town halls have digitised archives at different rates. Benamádena’s records are reasonably complete; some inland villages have gaps going back decades.

Solution: Apply for a new LPO based on the property’s current state. You’ll need the architect’s certificate confirming habitability.

Mismatch Between LPO and Reality

The property was modified after the LPO was issued. Maybe a garage was converted to a bedroom, or a roof terrace was enclosed. The existing LPO no longer reflects the actual building.

Solution: You’ll need a new LPO covering the current state — which means going through the full process again, including proving the modifications were legal or pursuing DAFO.

Developer Hasn’t Obtained the LPO

In off-plan purchases, some developers try to complete the sale before the LPO is issued, promising it’s “just paperwork.” I’ve seen this play out badly — months of waiting, utilities on temporary connections, and no legal recourse if the developer goes bust.

Solution: Do not sign the escritura until the LPO is in hand. Your lawyer should make this non-negotiable. The bank won’t release your mortgage funds without it anyway.

Regional Differences at a Glance

Region Document Name Validity Renewal Required?
Andalucía Licencia de primera ocupación Permanent (unless modified) No
Cataluña Cèdula d’habitabilitat 15 years (existing) / 25 years (new) Yes
Valencia Cédula de habitabilidad 10 years Yes
Balearic Islands Cédula de habitabilidad 10 years Yes
Madrid Licencia de primera ocupación Permanent No

If you’re buying on the Costa del Sol, the Andalucían LPO is what matters. But if you’re comparing properties across regions — say, a holiday flat in Barcelona versus a villa in Marbella — the cédula de habitabilidad requirements in Cataluña add an ongoing renewal cost and compliance check that Andalucía doesn’t impose.

Frequently Asked Questions

Can I buy a property without an LPO?

Yes, technically. Spanish law doesn’t prevent the sale of a property without an LPO — the notary can proceed with a cash purchase. But you’ll face problems with mortgages (banks won’t lend), utilities (companies may refuse permanent contracts), and insurance (coverage may be limited or void). You’ll also inherit the obligation to resolve the situation, which could cost thousands. Factor this into your purchase cost calculations.

How long does it take to get an LPO on the Costa del Sol?

From architect’s inspection to town hall approval: typically 2–6 months. Estepona and the smaller western Costa del Sol municipalities tend to be faster (4–8 weeks). Málaga capital can take 3–6 months. Allow extra time if the town hall requests additional documentation or finds discrepancies during inspection.

What’s the difference between an LPO and a building licence?

The licencia de obras (building licence) grants permission to start construction. The LPO confirms the completed building matches what was approved and is fit for habitation. You need the first before building, and the second before living in it. They’re bookends of the same process.

Does a DAFO replace an LPO?

Not exactly. A DAFO recognises a building as asimilado a fuera de ordenación — assimilated out of planning. It allows utilities and basic services but doesn’t grant the same full legal status as an LPO. Some banks accept DAFOs for mortgage purposes; others don’t. It’s a practical compromise, not a full legalisation.

My property is 50 years old and never had an LPO. Is that a problem?

It’s common but not necessarily catastrophic. Many older properties on the Costa del Sol predate modern planning requirements or were built when enforcement was lax. If the property has had utilities connected for decades and appears in the Land Registry, it’s been functioning without one. Getting a retrospective LPO or DAFO regularises the situation and protects your investment — especially important if you plan to sell or need mortgage refinancing.

Do I need an LPO to rent out my property?

For a legal tourist rental licence (vivienda con fines turísticos) in Andalucía, yes — the Junta requires proof of habitability as part of the registration process. For long-term rentals, enforcement is less strict, but operating without an LPO exposes you to liability if a tenant raises safety concerns.

Related Guides

Related Guides

Frequently Asked Questions

Do I need a gestor for this process?

For most administrative procedures in Spain, a gestor simplifies the process significantly. They handle paperwork, book appointments, and know the practical requirements that websites often do not mention. Fees typically range from EUR 50-150 per procedure.

What documents do I need?

At minimum, you will need your NIE (or passport for initial procedures), proof of address (padron certificate or utility bill), and documentation specific to the procedure. Always bring originals and copies of everything.

How long does this process take?

Processing times vary by office and procedure. Simple administrative tasks take days to weeks. Residency, tax, and property matters can take weeks to months. Having all documentation correct from the start prevents delays.

Where can I get help in English?

English-speaking gestoria offices on the Costa del Sol handle most expat administrative needs. See our guide to English-speaking gestorias for recommendations. Many town halls in tourist areas also have some English-speaking staff.

Andrew Lawrence

About the Author

Andrew Lawrence

A.J. Lawrence is the founder of WaypointSur. After a career spanning development, operations, and growth marketing, he moved to the Costa del Sol in 2022. WaypointSur is the guide he wished existed when he arrived — built from direct experience navigating Spanish bureaucracy, banking, property, and tax as an English-speaking professional.

Waypoint Sur

The Costa Del Sol in your inbox. No fluff.
For the residents who stay — not the tourists who leave.

Subscribe

Get our free weekly newsletter — practical intelligence about life on the Costa del Sol.


© 2026 Waypoint Sur · Newsletter · Guides

Privacy Policy · Terms & Conditions · Cookie Policy