Pillar: Planning and buildings

Is a cave house legal and safe?

Planning·12 min read·Updated 13 November 2026
On this page

In Andalusia, a cave house may have a licence or a special planning status. AFO recognises certain uses of an irregular building; it does not legalise it (LISTA, article 174.1). Read the use allowed by the municipal decision and arrange a structural, ventilation and damp inspection before buying. Planning paperwork cannot replace that inspection.

Map from the sample report: What is built on the plot. The Catastro declares one building of 227 m²: two residential parts of 104 and 99 m² and 24 m² of parking. Being in the Catastro does not prove it has a licence.Map legend: What is built on the plot
This example comes from Torrox in Andalusia and is not a cave: the page shows how the report compares what is built on a plot with what the Catastro records, without inspecting any cave. Page 13 of 116 of the TerrenoCheck sample report, a real plot (6633007BC5963S, Xàbia/Jávea (Alicante)): What is built on the plot. The Catastro declares one building of 227 m²: two residential parts of 104 and 99 m² and 24 m² of parking. Being in the Catastro does not prove it has a licence. Layer source: Dirección General del Catastro · IGN / PNOA. Aerial image: © Instituto Geográfico Nacional (PNOA), CC BY 4.0. See the report page

Outside Andalusia this title of the Andalusian regulations does not apply: in the Region of Murcia, for instance, its own planning law governs. Everything below covers Granada, Almería and the rest of Andalusia.

AFO does not legalise the cave or end other proceedings (article 174.1). Read the use and conditions stated in the decision. Meeting ventilation standards alone does not satisfy the safety and natural-risk requirements of article 173.4.

What Andalusian law calls a cave house

The regulations define a cave as a ‘building unit developed underground, dug artificially into the ground or obtained by adapting a natural cave for use’ (art. 420.c). The wider cave settlement also takes in the hills, the small front yards (‘placetas’), patios and pens, the paths and the channels that carry rainwater away (art. 420.a).

When that settlement sits on urban land, the regulations call it a ‘barrio de cuevas’ (cave quarter) (art. 420.d). The LISTA lets a special plan mark out traditional cave-house areas (art. 70.3.h) and leaves the minimum safety and health standards of cave homes to the regulations (art. 173.5).

Where people still live in caves

The Diputación de Granada (the provincial council) counted 5,838 occupied caves in the province in its 2002 census: 2,920 in the Hoya de Guadix and 2,812 in the Altiplano. It put the total at 11,795 caves and warns that ‘there is no exhaustive census’. It is the latest official count by municipality that we have found.

Occupied caves by municipalityGranada, Diputación census, 2002 Guadix (1981): 1,398; Benalúa: 539; Orce: 390; Benamaurel: 381; Castilléjar: 353; Cúllar: 340; Baza (1981): 334; Cuevas del Campo: 241Occupied caves by municipalityGranada, Diputación census, 2002Guadix (1981)1,398Benalúa539Orce390Benamaurel381Castilléjar353Cúllar340Baza (1981)334Cuevas del Campo241Province total: 5,838 occupied caves
Municipalities with the most occupied caves in the Diputación de Granada census (2002). Guadix and Baza are in a different colour because the source gives the 1981 census figure for them. Source: Diputación de Granada, Eurocuevas project, ‘Cuevas en la provincia de Granada’, p. 102. Accessed 12 November 2026.

We have not found a published official count for Almería. Under the regulations a municipality counts as troglodytic if more than 15 % of the homes on its urban land are caves, if cave settlement covers more than half of that land, or if its caves have heritage or tourism value worth preserving (art. 421). In the first two cases the town hall writes the detailed layout of its cave quarters into the town plan when it next processes it (art. 425.2).

What lies under Guadix and Baza

Asked about one square in Guadix and one in Baza, the Junta's environmental map service (REDIAM) answers with sedimentary rock: conglomerates, sands, silts and clays. The map is drawn at 1:400,000 and does not go down to the level of a single plot.

A reading in Guadix and BazaResponse of the REDIAM lithological map of Andalusia at two squares in Guadix and Baza, Granada.A reading in Guadix and BazaLayer queriedREDIAM WMS 'Mapa Litológico de Andalucía'(Andalusian lithological map), layer'sedimentarias', scale 1:400,000.Plaza Padre Poveda, GuadixUNIDAD_LIT 'Conglomerados, arenas, lutitas ycalizas' (conglomerates, sands, mudstones andlimestones); CLASE 'Sedimentario'.Plaza Mayor, BazaUNIDAD_LIT 'Arenas, limos, arcillas, gravas ycantos' (sands, silts, clays, gravels andpebbles); CLASE 'Sedimentario'.What it meansSedimentary ground across the district.Whether one cave's hill is stable is for asurveyor to judge on site.Read on 12.11.2026.
Answer of the Andalusian lithological map (REDIAM, layer ‘sedimentarias’) at two points, read on 12.11.2026. It describes the district, not the hill over any one cave. Source: REDIAM, WMS Mapa Litológico de Andalucía (licence CC BY 4.0). Accessed 12 November 2026.

Whether a particular hill is stable, its cracks and the state of the vaults only show up when an architect or building surveyor (‘arquitecto técnico’) visits. For the earthquake risk of the area, see the guide to seismic zones.

The hill above: who owns it

Buying the cave does not mean you own the ground over it. The regulations limit ownership of the subsoil ‘on land where several caves, roads or other public-domain elements overlap’ (art. 424.1). Existing caves can be entered in the Registro de la Propiedad (land registry) subject to those limits (art. 424.2).

The Diputación's study puts it this way: ‘we only know of caves dug under land of the same owner reaching the Registry’. The same study says the difficulty lies with caves dug under someone else's land, such as a path or public woodland. Ask for the nota simple (land registry extract) and compare the registered property with what you see: if the town hall owns the hill, ask it in writing what right the seller holds over the cave.

Licence, pre-1975 regime or AFO

The cave's situationIts regimeWhat to ask the seller forRule
LicensedThe conditions and use authorised by the licenceBuilding licence and the ‘declaración responsable’ (signed statement) for occupation or useLISTA, arts. 137.1 and 138.1.d
Finished before Law 19/1975, on non-developable land, without a licenceTreated as licensed for the use it had then; does not cover later unlicensed workTown hall certificate stating that regimeLISTA, fifth transitional provision
Finished without a licence, enforcement deadline passedAFO only after safety and health requirements and natural-risk conditions in article 173.4 are met, including any prior remedial measures; no legalisation; use as stated in the decisionThe town hall's AFO decisionRegulations, art. 430
Irregular, deadline still openNo AFO possibleBefore buying, consult a planning lawyerLISTA, art. 173.4

LISTA regulations: 2022 publication checked against the 19.12.2022 correction, DL 3/2024 article 118 and Ley 5/2025 fourth final provision; these do not alter articles 407–430. LISTA, BOE consolidated text. The AFO decision states the regime and the conditions of use that apply to the cave (regulations, art. 409). Sources: LISTA (Law 7/2021), consolidated text; Decree 550/2022, LISTA regulations (BOJA). Accessed 12 November 2026.

The town hall has six months to decide an AFO application; if it does not answer, the application is deemed refused (LISTA, art. 173.2). Until the decision, the building cannot be connected to basic services or have any work done, except work the town hall orders for safety or health (art. 173.3). How these deadlines run is explained in planning enforcement deadlines, and which occupancy document each region asks for in occupancy licence.

Minimum standards for an irregular cave home

For a cave used as a home and recognised under an AFO, the regulations require at least (art. 430.3):

  • a room for living and sleeping, kitchen equipment and a separate bathroom;
  • at least one chimney working as a ventilation duct, and openings to the outside totalling 5 % of the cave's area;
  • natural or mechanical ventilation in the kitchen and bathroom;
  • openings to the outside in the living room, kitchen and bedrooms, or a connection to rooms that have them.

Where there is no municipal cave by-law, the general conditions of art. 407 also apply: structural safety with no damage that endangers occupants or third parties or affects neighbouring properties, protection against water and damp, water and electricity installed to their rules, and a working waste-water system (arts. 422.4 and 430.2).

Damp, ventilation and collapse: what to look at on a visit

What to check in a cave1. Hill above: Who owns it? Paths or other caves limit ownership (art. 424.1). 2. Chimney: At least one, working as a ventilation duct (art. 430.3.b). 3. Openings: Openings to the outside adding up to 5 % of the cave's area (art. 430.3.b). 4. Vaults and walls: Cracks, loose material and damp patches: have a surveyor look at them. 5. Rainwater: Channels that lead it away from the door; the owner must keep them (art. 429.1).What to check in a caveHill123451Hill aboveWho owns it? Paths or other caves limitownership (art. 424.1).2ChimneyAt least one, working as a ventilation duct(art. 430.3.b).3OpeningsOpenings to the outside adding up to 5 % ofthe cave's area (art. 430.3.b).4Vaults and wallsCracks, loose material and damp patches:have a surveyor look at them.5RainwaterChannels that lead it away from the door;the owner must keep them (art. 429.1).
Schematic section of a cave with the points worth checking. The chimney and openings requirements come from art. 430.3 of the regulations; the advice on damp and water from the Diputación de Granada's technical study. Sources: Decree 550/2022, arts. 424, 429 and 430 (BOJA); Diputación de Granada, ‘Cuevas en la provincia de Granada’, pp. 58–67. Accessed 12 November 2026.

The Diputación's technical study separates damp from condensation, ambient humidity, rising damp, water getting in and burst pipes. For the first two it recommends better ventilation, preferably natural through chimneys, or forced extraction where that is not possible. Against water getting in, it suggests small dykes, gullies and entrances sloping away from the door.

It advises against planting on the slopes above caves: water seeps in more easily and the weight of shrubs adds load to the vaults. After a collapse, the first step is to check that it does not affect neighbouring caves and buildings. A cave is a home in direct contact with the ground, so also check radon as set out in the guide to asbestos, radon and soil.

Works and extensions after you buy

On urban land, until the detailed layout is approved, any work affecting caves needs a licence, except work ordered by the town hall and minor work needing no technical project, which goes through a declaración responsable (art. 428.3). In cave quarters without a plan, an extension to improve safety and health cannot add more than 50 % to the dug-out area (art. 422.2). A new cave can be authorised where the plan allows it and basic building standards are met (art. 422.1).

The owner must look after the outer layer of ground over the cave, even where it is part of open public space, and the natural rainwater channels (art. 429.1). Nor may the owner change the shape of the hill or its landforms (art. 424.3.b).

A cave in a historic area or a heritage list

If the cave is in a historic area declared a Bien de Interés Cultural (BIC, listed heritage site) and no special protection plan has been approved yet, licences need a favourable decision from the heritage authority (Law 16/1985, art. 20.3). The catalogue of a cave quarter includes an inventory, covering at least the caves that need protection, with their use, condition and ownership (regulations, art. 427.2). Ask the town hall whether yours has an entry.

Mortgage and valuation

For a mortgage, the bank orders a valuation under Order ECO/805/2003 (art. 2.a). The valuer inspects the property and checks its heritage protection and whether it fits the town plan (art. 7.2). Missing registry documents put a ‘condicionante’ (qualification) on the valuation (art. 10.1.d); a property that does not fit the plan gets an ‘advertencia’ (warning), unless it already carries a qualification (art. 11.b). Whether to lend is the bank's decision, so ask before you pay a deposit. If you are a non-resident, ask too which documents the bank needs from you and allow for that time. For insurance, ask in writing whether the policy covers ground collapse and damp.

What to do, in order

  1. Get the nota simple from the Registro de la Propiedad or its online office. No deadline is set by law; do it before the deposit and compare the registered property with the cave and the hill.
  2. Ask the seller for the cave's permit: the licence, the fifth-transitional-provision certificate or the AFO decision. If an AFO still has to be applied for, the town hall has six months to decide (LISTA, art. 173.2).
  3. Ask the town hall in writing whether the cave lies in a mapped cave-settlement area, a heritage catalogue or a historic area. No general deadline is set for this enquiry. If you are abroad, a representative with a power of attorney can file it for you.
  4. Book a survey with an architect or building surveyor: vaults, cracks, damp, chimneys and rainwater on the hill. No deadline is set; plan for it before signing.
  5. If you need a mortgage, order the valuation with the nota simple and the planning permit to hand. The order sets no deadline for the report.

What this guide does not settle The rules are those of the LISTA and its regulations as published in BOJA on 2.12.2022. A municipal cave by-law replaces the general conditions of art. 407, and the town plan sets which works and extensions are allowed. The Diputación census dates from 2002 and includes 1981 figures.

Before you pay the deposit
  • The nota simple describes the cave, or you know why not.
  • You know who owns the hill and whether paths or caves lie above.
  • There is a licence, the transitional-provision certificate or an AFO.
  • The cave has a chimney and openings to the outside in its rooms.
  • A surveyor has reported in writing on vaults, cracks and damp.

Before you ring the town hall, you can order the report on the property using its cadastral reference and arrive knowing what the Catastro records as built and the geology of the area.

This guide is general information on the rules in force on the date each source was checked. It is not legal advice: for a specific purchase, ask a lawyer or the notary. Written and reviewed by the TerrenoCheck team (Kandyb Studio, Paweł Kandybowicz, responsible for the content). If you find a mistake, write to us and we will correct it.

Common questions

Is it legal to live in a cave house?

In Andalusia, distinguish a licence or the transitional regime from AFO. AFO does not legalise the building; its decision must allow the intended use. Expiry of an enforcement period alone is insufficient, and safety and natural-risk conditions still apply (articles 173.4 and 174.1).

Can a cave house be registered at the land registry?

Yes, under mortgage and registry law and within the limits set by overlapping caves, roads or public land (regulations, art. 424.2). Irregular caves follow the AFO regime.

Can I extend a cave house?

That depends on the town plan. In a cave quarter without a plan, only to improve safety and health and by no more than 50 % of the dug-out area (art. 422.2), with a licence or a declaración responsable (art. 428.3).

Can I get a mortgage on a cave house?

Order ECO/805/2003 does not mention caves. The valuation carries a qualification if registry documents are missing and a warning if the property does not fit the plan (arts. 10 and 11). The bank decides.

How many cave houses are there in Granada?

The Diputación counted 5,838 occupied caves in 2002 and 11,795 in total, without an exhaustive census. Guadix has the most, with a figure taken from the 1981 census.

Check this on your own plot

Pin the plot on the map and confirm the cadastral reference: the report gathers the public data and official maps for it, each with its source and date. It does not replace the land registry extract, the notary or a tax adviser. €29 VAT included.

Open the map Read a sample report