Licencia-de-Primera-Ocupacion-LPO-explained-Spain-2026

Licencia de Primera Ocupación (LPO) explained

Agne Zastarske

Agne Zastarske

Licencia de Primera Ocupación (LPO) in Spain explained for foreign buyers in Andalusia: how it affects mortgages, utilities, resale and rural homes.
Article Content

This article is a clear Licencia de Primera Ocupación (LPO) Guide for Foreign Buyers in Spain, focused on buying property in Andalusia, especially Axarquía and rural Málaga. Here you will find LPO explained in simple terms, how it affects mortgages, utilities and resale, and why it matters so much when you choose a home. If you are thinking about buying property such as a rustic villa or village house, this guide will help you understand the planning situation before you commit.

1. What is the Licencia de Primera Ocupación?

The Licencia de Primera Ocupación (LPO), or First Occupation Licence, is a document issued by the town hall that confirms:

  • The building was constructed in line with its approved building licence.
  • It meets the urban, technical and habitability rules in force when it was granted.

In plain language, it is the town hall’s stamp that says:

  • “This property is a legal dwelling.”
  • “People can live here with basic safety, hygiene and services.”

Without an LPO in Andalusia you will often run into problems connecting water and electricity, getting a mortgage or regularising rentals.

2. Why the LPO matters so much in Andalusia in 2025

For buyers in Axarquía and the rest of Málaga province, an LPO is more than a form. It affects:

a) Utilities
Many suppliers ask for the LPO (or a recognised alternative such as AFO or a valid Declaración Responsable) before contracting mains water, electricity or gas in a clean, regular way.

b) Mortgages
Spanish lenders, and especially big banks, usually expect an LPO for standard residential lending. Several professional guides for buyers emphasise that banks often make the LPO a condition for granting a mortgage.

c) Resale and rentals
If you sell later, any serious buyer’s lawyer will ask whether the property has an LPO or an equivalent planning situation. Lack of LPO can affect value and limit the pool of buyers.

For tourist rentals, many local rules in Andalusia require that the dwelling has either an LPO or an accepted figure such as AFO or a valid occupation authorisation before registering as a vivienda turística.

For rustic and semi-rural homes in Axarquía, an LPO is a strong positive. Many older country houses never had one and must rely on AFO/DAFO or other regularisation routes instead.

3. LPO, Declaración Responsable and recent changes

In recent years Andalusian and local rules have moved towards a faster system using the Declaración Responsable de Licencia de Primera Ocupación in many municipalities.

In simple terms:

  • In a classic system, you applied for an LPO and waited for the town hall to inspect and approve.
  • Under the Declaración Responsable route, the owner or developer files a sworn statement with all the technical documents, stating that the property meets all requirements. From that moment, the dwelling can be occupied and utilities can be processed, while the town hall keeps the right to inspect later.

On the Costa del Sol, towns such as Málaga, Marbella, Estepona and Mijas already use this model for many cases, precisely to avoid long delays once a compliant building is finished.

For you as a buyer, the key is not whether the town hall used the old LPO resolution or the newer Declaración Responsable system, but:

  • Is there a valid occupation authorisation on file in the town hall?
  • Does it cover the home as it exists today?

A good local lawyer and architect can check that.

4. LPO compared with AFO / DAFO

Buyers in Axarquía often hear about AFO or DAFO (Asimilado a Fuera de Ordenación). This is a separate figure used to regularise older buildings in non-urban land that were built without correct licences and can no longer be demolished because the time limit for enforcement has expired.

Key points from official and professional guidance in Andalusia:

  • AFO recognises that the building exists and allows:
    • Access to basic services such as water and electricity.
    • Entries in the Land Registry in many cases.
    • Necessary conservation works for safety and hygiene.
  • AFO does not fully “legalise” the building in planning terms. It confirms a tolerated status, not full planning compliance.

So:

  • LPO is linked to a properly licensed build that met the rules when finished.
  • AFO is a regularisation tool for older irregular buildings on rustic land.

Both can appear in rural Axarquía. The ideal situation for a country house is a correct LPO covering the home in its current state.

5. Does an LPO guarantee that everything is perfect?

Short answer: no. It is a very strong positive, but not an absolute guarantee.

An LPO confirms that:

  • At the time it was granted, the dwelling matched the approved project and met urban and habitability rules.

It does not automatically guarantee that:

  • No unlicensed extensions, terraces, pools or outbuildings were added later.
  • There are no later disciplinary files or planning breaches.
  • There are no issues with title, land boundaries, easements, debts or taxes.

In practice, a proper legal review in 2025 should always include:

  • Checking the LPO or Declaración Responsable against the current built reality.
  • Checking for later unlicensed works and limitation periods.
  • Reviewing Nota Simple, Catastro, IBI, registry entries and any AFO procedures.

6. LPO: correct and incorrect ideas

Correct statements about LPO

These are broadly accurate under current Andalusian practice and guidance:

  • “LPO is the town hall document that certifies a dwelling meets legal and habitability requirements and can be lived in.”
  • “Without an LPO or equivalent, you may struggle to contract utilities, get a mortgage or resell later.”
  • “Many Costa del Sol town halls now allow a Declaración Responsable to obtain occupation quickly, while keeping the power to inspect.”
  • “AFO is not the same as an LPO and does not fully legalise a building, but it can give access to utilities and improve security for older irregular homes.”

Incorrect statements about LPO

These are misleading or simply wrong:

  • “If a house has an LPO, there is no need for a lawyer to check anything else.”
    • Wrong. You still need full checks on title, planning history and any later works.
  • “Any country house without an LPO is illegal and cannot be bought or sold.”
    • Wrong. There are paths such as AFO or later regularisation in some cases, but risk and value are very different.
  • “Once you have an LPO, the town hall cannot ever open a disciplinary file.”
    • Wrong. If they detect serious breaches or later illegal works, they can still act under planning law.
  • “AFO and LPO are the same.”
    • Wrong. AFO is a recognition of an irregular but tolerated situation. LPO is linked to a licensed, compliant build.

7. Example: Dutch family buying a country home in Sayalonga

To make this real, think of a Dutch couple with two children buying a country villa near Sayalonga in 2025. They want a Spanish mortgage and are nervous about rural planning issues.

The property is on rustic land but has:

  • A Licencia de Primera Ocupación that matches the main house as built.
  • No DAFO / AFO, because it was originally licensed and inspected.
  • Stable access, water and electricity contracts in place.

What happens in practice:

  1. Bank view
    The bank’s risk department cares about:
    • Existence of a valid LPO or occupation document.
    • Clean title and lack of serious planning proceedings.
      With an LPO and clear registry entries, the mortgage is realistic.
  2. Lawyer’s due diligence
    A good local lawyer in Axarquía will:
    • Obtain and review the LPO from the town hall.
    • Confirm that the current build matches the approved plans.
    • Check there is no separate AFO case, no open planning files and no unpaid sanctions.
  3. Outcome
    • Because the core dwelling has LPO and no planning files, the bank approves the mortgage.
    • The buyers can complete with a much lower risk profile than many rustic homes.
    • They still receive full advice about what they can and cannot add in the future under current Andalusian planning rules.

If that same house had no LPO and no AFO, the conversation with the bank and the lawyer would be very different. Risk would rise, costs would rise, and some lenders would simply walk away.

8. Practical checklist for buyers in Axarquía

When you fall in love with a house in Cómpeta, Sayalonga, Torrox or any other village in Axarquía, ask your team to pin down the following early:

  1. Does the property have:
    • An LPO, or
    • A valid Declaración Responsable de Primera Ocupación, or
    • An AFO resolution, in the case of older rustic homes?
  2. Does the document match what you see on site?
    • Same built area.
    • Same number of floors and rooms.
    • Same pool and main outbuildings.
  3. Are there any later works without licence or outside limitation periods?
  4. Does your bank accept the planning situation for a mortgage?
  5. Has your lawyer checked both the town hall file and the Land Registry, not just the estate agent’s folder?

This is the level of checking I expect for my own family, so it is the level I push for with clients too.

FAQ: Licencia de Primera Ocupación (LPO) in Spain and Andalusia

What is the Licencia de Primera Ocupación (LPO) in Spain and why is it important when buying property in Andalusia?

The LPO is a document from the town hall confirming that a property was built in accordance with its building licence and is fit to live in. For buyers in Andalusia it matters for three main reasons. It supports legal security, it is often needed for utilities and it is normally required for standard Spanish mortgages. Without it, you are usually taking on more risk and may have fewer financing options.

Can I buy a house in Spain without an LPO?

Yes, you can buy a property without an LPO, but you need to understand the risk. Some older homes, especially in rural Axarquía, never had an LPO and rely on figures such as AFO. In these cases you must use a strong local lawyer and architect, check exactly what is legal or tolerated and accept that resale, mortgages and future works can be more limited.

Do all rustic properties in Axarquía have an LPO?

No. Many rustic houses in Axarquía were built before current planning rules or without a full licence, so they never obtained an LPO. Some have been regularised through AFO, others are still in a grey zone. A rural property that does have an LPO is usually in a safer category than most, which is why buyers and banks pay close attention to this document.

Can I get a mortgage in Spain without an LPO on the property?

Sometimes, but it is harder. Most Spanish banks prefer properties with an LPO or another clear occupation authorisation in place. Without it, lenders may reduce the amount, change conditions or refuse the mortgage completely. If you need finance, you and your lawyer should confirm the LPO status early, before you commit to a purchase contract.

What is the difference between LPO and AFO in Andalusia?

The LPO refers to a building that was correctly licensed and approved as a dwelling when finished. AFO is a regularisation tool for older, irregular buildings on rustic land where the time limit for enforcement has passed. LPO is linked to full planning compliance at the time of construction. AFO recognises that the building exists and allows basic services and maintenance, but does not turn it into a fully compliant new build.

How can I check if a property in Andalusia has an LPO?

You, your lawyer or your architect can request a copy from the town hall urban planning department. In some cases there will be a traditional LPO resolution, in others a Declaración Responsable that covers first occupation. The key is to confirm that a valid occupation document exists, that it belongs to the property you are buying and that it matches the current built reality.

Does the Licencia de Primera Ocupación ever expire or need renewal?

The classic LPO itself does not usually “expire”. It reflects that the dwelling met the rules at the time it was granted. What can change is the planning context, later unlicensed works or new inspections. If major alterations were made after the original LPO, you may need extra licences or updated documentation so that the legal situation matches the current house.

If you plan to buy in Axarquía or wider Málaga province and you want help understanding the LPO, AFO or planning position on a specific property, Real Estate Andalusia can coordinate with independent local lawyers and technical experts so you know exactly what you are buying.

The information provided in this article is intended for general informational purposes only and should not be considered as legal or financial advice. We recommend consulting with qualified professionals for personalised guidance tailored to your specific situation. While we strive for accuracy, we cannot guarantee the completeness or timeliness of the information presented. Use of this information is at your own risk, and we disclaim any liability for any losses or damages resulting from reliance on this article.

Share this post:

WhatsApp
Facebook
Email
Join Our Newsletter
Keep Reading

Reset password

Enter your email address and we will send you a link to change your password.

Create your account

to save your favourite properties and more

Sign up with Google Sign up with email

Create your account

to save your favourite properties and more

Agne Zastarske - Real Estate Agent (Spain)

Hi, I’m Agne

Need help with your property search?

Let me help – let’s chat!