Listyco
Photo by Maria Ziegler on Unsplash
Guides

The habitability certificate in Spain: cedula de habitabilidad, licencia de primera ocupacion and what buyers need (2026)

The Spanish habitability certificate: what the cedula is, why Andalusia replaced it with a municipal licence, and what a missing document means for buyers.

The habitability certificate in Spain: cedula de habitabilidad, licencia de primera ocupacion and what buyers need (2026)

A Spanish habitability document certifies that a dwelling meets the minimum conditions for people to live in it. But the specific document a buyer encounters depends on the region: Andalusia suppressed the cedula de habitabilidad in 1987 and replaced it with municipal first-occupation licences, while Catalonia, the Balearics and others still issue a cedula. On the Costa del Sol, the document you are checking for at completion is the licencia de primera ocupacion, granted by the town hall, not a regional certificate.

What is the habitability certificate in Spain?

The habitability certificate (cedula de habitabilidad) is a document that certifies a dwelling meets the minimum conditions of hygiene, safety and spatial adequacy for human occupation. It was originally created by a 1937 Order of the Ministry of Governance to prevent occupation of unhealthy housing and overcrowding. The national framework for what a habitable building must provide is set by Article 3 of Ley 38/1999, the Ley de Ordenacion de la Edificacion (LOE), which groups the basic requirements into three blocks: functionality (use, accessibility, telecoms, postal access), security (structural, fire, use) and habitability (hygiene and health, noise protection, energy saving and thermal insulation).

The LOE does not itself issue a certificate. It defines the standard. The document that proves a particular dwelling meets it is issued either by the autonomous community (the cedula, in regions that retain it) or by the municipality (the first-occupation licence, in regions that have moved to a municipal model). The LOE’s Disposicion Adicional Primera references all three forms in one breath: the developer must refund advance payments if the construction does not finish on time or “no se obtenga la cedula de habitabilidad, licencia de primera ocupacion o el documento equivalente que faculten para la ocupacion de la vivienda”. The bank guarantee on off-plan payments is only cancelled once one of these documents is issued.

Why Andalusia does not have a cedula de habitabilidad

Andalusia is the region that most buyer-facing guides get wrong. The cedula de habitabilidad does not exist as a live document in Andalusia because the Junta suppressed it nearly four decades ago. Decreto 283/1987 of 25 November, enacted by the Consejeria de Obras Publicas y Transportes and effective from 1 January 1988, abolished both the cedula de habitabilidad and the preceptivo hygiene report that preceded municipal building licences. The decree’s reasoning was administrative simplification: the regional certificate duplicated the controls already exercised by town halls through building and first-occupation licences, so maintaining a separate regional layer added cost and delay without adding protection.

Article 1 of the decree suppresses the cedula outright. Article 2 transfers the utility-connection gate to the municipality: supply companies (water, gas, electricity) cannot contract supply for any building undergoing first use or change of use unless it holds the preceptiva licencia municipal. Article 3 preserves the Junta’s general competence to guarantee habitability, but the operative document a buyer or seller handles is municipal, not regional.

This is why a Costa del Sol property will never produce a “cedula de habitabilidad” on request. The equivalent is the licencia de primera ocupacion issued by the Ayuntamiento, or under the current law a declaracion responsable de ocupacion where the LISTA permits it.

What is the licencia de primera ocupacion?

The licencia de primera ocupacion is a municipal licence confirming that a newly constructed or fully rehabilitated building matches its approved project, complies with urban planning regulations, and meets the habitability requirements of the LOE and the Codigo Tecnico de la Edificacion (CTE, approved by Real Decreto 314/2006). It authorises the first use of the dwelling and is the trigger for permanent utility connections.

The licence is granted by the town hall after the works are complete and the final works certificate (certificado final de obra) has been signed by the project’s technical architect. The Ayuntamiento checks that the finished building conforms to the building licence, that any urbanisation conditions attached to the licence have been met, and that the dwelling satisfies the CTE’s exigencies on hygiene, noise and energy.

For off-plan buyers, the LOE ties this document directly to the developer’s bank guarantee. Under Disposicion Adicional Primera, point five, the guarantees on advance payments are cancelled only once “expedida la cedula de habitabilidad, la licencia de primera ocupacion o el documento equivalente que faculten para la ocupacion de la vivienda por el organo administrativo competente” and the developer has delivered the dwelling. The buyer’s off-plan bank guarantee therefore stays live until the first-occupation licence is issued, which is why checking for it at handover is non-negotiable.

How occupation works under the LISTA (Ley 7/2021)

The current Andalusian urban law is the Ley 7/2021 de impulso para la sostenibilidad del territorio de Andalucia (LISTA), which replaced the old Ley 7/2002 (LOUA) with effect from 23 December 2021. The LISTA introduced a declaracion responsable regime for a defined set of acts, including certain types of building works and occupation, running alongside the traditional municipal licence.

Article 138 of the LISTA lists the acts subject to declaracion responsible. Paragraph (d) covers “la ocupacion o utilizacion de las edificaciones o instalaciones amparadas en licencia previa o declaracion responsable de obras, siempre que se encuentren terminadas y ajustadas a estas y su destino sea conforme a la normativa de aplicacion”. In plain terms, a finished building whose construction was authorised by a prior municipal licence or declaration can be occupied via a declaracion responsable, provided it is complete, conforms to the authorisation, and the intended use is lawful.

Paragraph (e) extends the responsible-declaration route to existing conforming buildings in urban soil not subject to transformation, where no works have been carried out. The declaration must be accompanied by either the certificado final de obras (for new works) or a descriptive and graphic certificate (for existing buildings), per Article 138.3.

The practical effect is that in Andalusia there are now two paths to lawful occupation: the traditional municipal licence (for new build and full rehabilitation) and the declaracion responsable (for occupation of conforming finished buildings). Both are municipal-level controls. Neither is a regional cedula.

Habitability requirements: what the building must actually satisfy

The LOE Article 3.1(c) sets three habitability requirements that every dwelling must meet, developed in detail by the Codigo Tecnico de la Edificacion:

  1. Hygiene, health and environmental protection: acceptable salubrity and watertightness in the indoor environment, no degradation of the immediate surroundings, and proper waste management. The CTE’s Documento Basico HS (Salubridad) develops this into specific exigencies for water supply, waste water evacuation, waste disposal, and protection against damp.

  2. Noise protection: perceived noise must not endanger health and must allow occupants to carry out their activities. The CTE’s Documento Basico HR (Ruido) sets the sound insulation values that separate dwellings from neighbours, from common areas and from external sources.

  3. Energy saving and thermal insulation: rational use of the energy needed for adequate use of the building. The CTE’s Documento Basico HE (Energia) and the separate energy renovation subsidy framework set the envelope and system efficiency standards.

These are the substantive standards behind the occupation licence. A dwelling that fails one of them is not habitable in law, regardless of what document it holds.

Comparison: the three document types across Spain

DimensionCedula de habitabilidadLicencia de primera ocupacionDeclaracion responsable (LISTA)
What it certifiesMinimum living conditions (regional standard)Finished building matches project, meets planning and habitability rulesOccupation of a conforming finished building, use is lawful
Who issuesAutonomous community (e.g. Catalonia, Balearics)Municipality (Ayuntamiento)Municipality (via declaration, not grant)
ValidityFixed term (e.g. 15 years in Catalonia, renewable)Indefinite (tied to the building, no renewal)Indefinite (tied to the declaration)
Required forSale, rental, utility connection in regions that retain itFirst sale of new build, utility connection, tourist let registrationOccupation of conforming existing buildings in Andalusia
CostRegional fee plus architect’s certificate (EUR 80 to 300 typical)Municipal fee, varies by town hall (EUR 100 to 500 typical)No municipal fee (declaration, not a grant)

The table is the information gain most competitors lack. They conflate the cedula with the first-occupation licence, or they tell a Costa del Sol buyer to obtain a cedula that the Junta does not issue. The distinction matters because a buyer searching for a document that does not exist in the region wastes time and, worse, may accept a property that lacks the municipal licence it actually needs.

What happens if a property lacks the occupation document?

A property without the relevant occupation or habitability document faces four practical consequences:

  1. No legal sale as habitable. Spanish case law treats the existence of the occupation licence as assumed in a sale contract, so its absence is grounds to annul the purchase. The buyer can seek rescission and restitution.

  2. No utility connection. Decreto 283/1987 Article 2 bars supply companies from contracting water, gas or electricity for any building undergoing first use without the municipal licence. A property that never received its licence cannot legally connect permanent supplies.

  3. No tourist let registration. Under the Andalusian tourist housing regime (Decreto 31/2024 modifying Decreto 28/2016), a vivienda de uso turistico must be legally habitable to register. The Registro de Turismo de Andalucia checks that the use is conforming, which in practice requires the occupation document to be on file.

  4. Bank guarantee stays live. For off-plan buyers, the LOE Disposicion Adicional Primera keeps the developer’s bank guarantee active until the occupation document is issued. A developer who cannot produce it at handover has not fulfilled the condition that releases the guarantee.

For a buyer doing due diligence on an illegal build, the absence of a first-occupation licence is a red flag that the property may never have received planning sign-off. The fix is not to obtain a certificate after the fact; it is to establish whether the building was ever legally completed. If it was not, the AFO (asimilado a fuera de ordenacion) route may apply, but that is a downgrade, not a cure.

How to check for the occupation document when buying

The occupation document is checked at the property conveyancing stage, not at the notary. Three steps:

  1. Request the licencia de primera ocupacion (or the declaracion responsable) from the seller. For a resale, the document should already exist in the town hall’s file. For a new build, the developer must produce it at handover.

  2. Verify it against the nota simple and the building licence. The occupation licence references the building licence (licencia de obras). The property’s cadastral reference and the building licence number should match across the documents.

  3. Confirm utility contracts are active. If the property has live water and electricity contracts, the utility companies will have verified the occupation document at connection. A property with no utilities on a first sale is a signal that the licence may not have been issued.

For a property being prepared for sale, a seller who has lost the original licence can request a certificado de conformidad from the town hall, which confirms the building was completed against an authorised licence. The process is administrative, not technical, and typically takes a few weeks.

This guide is general information, not legal or tax advice. Rules change and individual circumstances differ. Verify current requirements with an independent lawyer (abogado) or tax advisor (gestor/asesor fiscal) before acting.

Frequently asked questions

Does Andalusia have a cedula de habitabilidad?
No. Andalusia suppressed the cedula de habitabilidad by Decreto 283/1987 of 25 November, which entered into force on 1 January 1988. The Junta de Andalucia considered the separate regional certificate redundant because municipal building and first-occupation licences already subsumed the habitability controls. In Andalusia the relevant document is the municipal licencia de primera ocupacion.
What does the licencia de primera ocupacion certify?
It is a municipal licence confirming that a newly built or fully rehabilitated property matches its approved project, complies with urban planning rules, and meets the habitability requirements set by Ley 38/1999 Article 3 and the Codigo Tecnico de la Edificacion. It is the document that legally authorises first use of the dwelling and enables utility connections.
Can I sell a property without a habitability document in Spain?
A property lacking the relevant occupation or habitability document cannot legally be sold as habitable. Spanish case law treats the existence of the licence as assumed in a sale contract, so its absence can be grounds to annul the purchase. Utility companies are also barred from connecting first-time supplies without the municipal licence under Decreto 283/1987 Article 2.
Is the cedula de habitabilidad the same as the licencia de primera ocupacion?
No. The cedula de habitabilidad was a regional document issued by the autonomous community certifying minimum living conditions. The licencia de primera ocupacion is a municipal licence confirming the finished building matches its approved project and complies with planning and building rules. Andalusia replaced the former with the latter in 1987; Catalonia and other regions still issue a cedula.
Do I need a habitability document to register a tourist let in Andalusia?
Yes. Under the Andalusian tourist housing regime (Decreto 31/2024, modifying Decreto 28/2016), registration of a vivienda de uso turistico requires proof that the dwelling is legally habitable. In practice this means the property must have its municipal occupation licence or declaracion responsable on file, because the registry checks that the use is conforming.

Sources and data