Guide · Licences and legality

Buying an illegal house on rustic land in Spain: what are the risks?

18 min · Updated

In this article

Before paying anything, get the town hall to confirm in writing whether demolition can still be ordered, what alterations are permitted and whether utility connections can be authorised: an old house is not automatically a legal one. Do not pay a reservation fee or deposit (arras) if you see any of these warning signs:

DocumentsThe house, pool or outbuildings do not match the papers
OrdersA demolition order is still outstanding
WorksNeither the town hall nor the utility companies have confirmed which works are allowed and whether the house can be connected

Ask for these before paying

  • A licence, legalisation or AFO decision that matches the house
  • The town hall's written answer on enforcement files and orders
  • Plans and completion dates for the house and each addition
  • Written confirmation from the utility companies
See my plot's risks

The report shows the plot's Catastro data and mapped risks; it does not say whether you can build.

Sources checked 15 October 2026

A cheap finca may come with a demolition order or a house that is merely tolerated. Before paying a deposit, find out what you can keep, renovate and connect to utilities.

When should you hold off paying a deposit?

Besides the warning signs above:

  • Nobody can prove when the house was finished, or has said in writing whether demolition can still be ordered.
  • The seller relies on Balearic extraordinary legalisation without the licence (or at least the application) or proof that the house is not excluded.

Before you sign the arras (purchase deposit contract):

  1. Hire your own lawyer. You take over planning obligations attached to the property: find out what is outstanding and its cost (TRLSRU, art. 27.1).
  2. Agree which document the purchase depends on, who obtains it and by when, and who pays for legalisation, works, demolition or connections. With no quote yet, make the purchase conditional on accepting one.
  3. Check which type of arras the contract states. Expressly agreed arras penitenciales let either side withdraw without showing a breach: you lose the deposit, or the seller repays double (Civil Code, art. 1454). Otherwise the deposit is usually part payment (arras confirmatorias): if either side fails to complete, the other can enforce the contract or end it and claim damages (Civil Code, art. 1124). Either way, agree in writing on a full refund if a check or approval fails.
  4. Agree who holds the money until the condition is met, and when the seller gets it.
Legal status of the houseWhat it meansWhat to do before paying
Can be legalisedComplies with the plan, or a special route applies (Balearic extraordinary legalisation)Ask for the licence, or make it a deposit condition
Time limit expired, still not legalOnly tolerated, with works restricted (AFO in Andalusia; the regime and permitted works vary by region); check earlier orders and rulingsGet written confirmation of the status and of the works and utilities allowed
Can still be demolishedThe period has not run out, an exception applies, or an order is outstandingDo not pay; your lawyer reviews the file

AFO (asimilado a fuera de ordenación) is an Andalusian status for a finished house built without permission or in breach of it: the town hall can no longer order it to be put right or demolished, generally 6 years after it was fully finished (LISTA, Andalusia's land and planning law, art. 153.1), but the house is still not legal. On rustic land in the coastal influence zone (at least 500 m inland from the legally defined inner edge of the shore; Coastal Law, art. 30), current law sets no time limit, so a house finished on or after 23 December 2021 cannot get AFO there. For a house finished before then, what counts is the period in force at the time (Decreto 550/2022, art. 354.5): your lawyer checks whether it had run out.

If the estate agent says the house "can get AFO", ask for the town hall's recognition decision (resolución de reconocimiento de la situación de AFO), often called the AFO certificate; an application is not one. If there is none, wait, or make the deposit conditional on it, with a full refund if it is refused or not issued by an agreed date. If the house was finished before 1975, first read about the certificate for houses finished before Law 19/1975.

Is there a time limit for action against an illegal house in Spain?

No single Spanish deadline exists: region, land category, documented completion date and any action taken all matter.

Time the authorities have to act against unlicensed works, by regionPlanning enforcement time limits051015to start proceedingsCanary Islands4 yearsNo limit: environmental-protection rusticland if so classed before work beganto take measuresAndalusia6 yearsNo limit: rustic land protected for landslideor flood risk while it lasts; coastal zone; public domainto take actionCatalonia6 yearsNo limit: land that is or must be non-developable(art. 32.a), public open space and roadsto start proceedingsGalicia6 yearsNo limit (licensed works): green areas, roads,public facilities; elsewhere art. 90 after 6 yearsto serve the start noticeBalearic Islands8 yearsNo limit: protected rustic land when built;2018 to 13.12.2024, all rustic landValencia regionno limitNon-developable land: no current limit;the law in force at completion appliesMurciaCheck the time limitNo separate limit for restoration in the law;infringements time-barred after 4 or 8 yearsWhen the clock starts depends on the law.Not all exceptions are shown.
Sources: LSENPC, art. 361; LISTA, art. 153; TRLU, art. 207; LSG, arts. 153 and 155; LUIB, art. 196; TRLOTUP, art. 255; LOTURM, art. 294. Checked 15 October 2026.

How do I prove the age of the house and additions?

Ask for evidence that identifies this house and its additions and dates them. To register a building by age, national law accepts (TRLSRU, art. 28.4.a):

  • a certificate from the town hall or a qualified building professional;
  • a notarial record (acta notarial);
  • a descriptive and graphic cadastral certificate.

Have a surveyor or architect check the documents against the house. In the Balearics, whoever claims the date must prove it; an unlicensed use or change of use is a continuing breach whose period starts only when it stops (LUIB, art. 196.3–196.4).

What does buying an AFO house in Andalusia allow?

AFO does not legalise the house; works that comply with the plan can be legalised at any time. If enforcement proceedings were closed because the time limit had expired, ask for the closing decision: it is useful evidence, but not AFO recognition, which you still need (LISTA, art. 152.7–152.8).

If the house was finished before Law 19/1975 of 2 May came into force without the planning licence required for its location on non-developable land, it is treated as licensed for the use it had then. This does not cover later works, or houses on the coastal public domain and its easements. Ask the town hall for the certificate.

The 6 years run from full completion, or from when the works first became visible from outside if that was later; for a change of use, from when the new use became apparent (LISTA, art. 153.1). Each extension, pool or annexe has its own completion date and period; if the AFO decision describes only the original house, the additions are not covered. There is no limit on, among others, public-domain land, rustic land protected because of a real risk of landslide or flooding (while the risk lasts), the coastal influence zone, listed heritage and green areas. In an unlawful subdivision for housing on rustic land, the 6 years can protect at most the plot the house stands on (art. 153.2). See also the guides to flood zones and Spanish coastal law.

The town hall will not recognise AFO while it can still act against the house, before the house meets minimum safety and health conditions, or, on land at real risk of erosion or flooding, until the required measures are in place (art. 173.4).

AFO recognition is recorded in the Land Registry. It shows the building is fit for use, not that any activity in it is permitted (LISTA, art. 174.4 and 174.6).

Valencia region: can the house still be demolished, and can it be regularised?

Current law sets no time limit on non-developable land (suelo no urbanizable, the Valencian term for rustic land), but the period that applies is the one in force when the works were finished (TRLOTUP, art. 255.6). By completion date:

  • 1 February 2006 to 19 August 2014: 4 years (Law 16/2005, art. 224);
  • 20 August 2014 to 7 February 2019: 15 years (Law 5/2014, art. 236). A house from this period can still face a demolition order until at least August 2029 and cannot use minimización, which covers only works finished before 20 August 2014;
  • from 8 February 2019: no limit on any non-developable land. Demolition can be ordered at any time, so without a licence, do not pay a deposit.

The 2005 and 2014 laws set no limit on, among others, protected non-developable land, green areas or public-domain land; before 2006 an earlier law applies. If the period had run out, demolition can no longer be ordered, but the illegal parts still cannot be renovated, extended or strengthened, except for works the authorities order for safety, health and appearance (art. 256). Ask your surveyor to separate lawful from unlawful parts, and the town hall for the enforcement file.

Isolated buildings finished before Law 19/1975 came into force, without the planning licence required for their location on non-developable land, are treated as licensed if they keep their original use and type and are not formally declared a ruin (DT 26ª).

Minimización de impacto territorial (the Valencian route for reducing a building's impact) covers buildings fully completed before 20 August 2014. The town hall can mark out a cluster of at least three homes per hectare, or fewer where they are close together (art. 228). An isolated house needs an individual declaration from the full council (pleno), justified by the owner, then a licence with technical documents, a risk analysis and corrective measures (art. 230).

Balearics: could the house qualify for extraordinary legalisation?

You can apply only once the authorities can no longer order restoration, including demolition. Before you pay, your lawyer must check this and the conditions below.

The general period to act is 8 years, with no limit on protected rustic land, listed property, parks, open spaces and public infrastructure or facilities (LUIB, art. 196). This applies to houses finished on or after 14 December 2024. For houses finished from 1 January 2018 to 13 December 2024 there was no limit on any rustic land; on ordinary rustic land, ask your lawyer whether the 8 years now run and from when. For older houses, your lawyer checks which law applies.

Extraordinary legalisation has its own rules (Law 7/2024, additional provision 7, DA 7ª.1):

  • It applies the classification and law at completion, or a later, more favourable one.
  • On protected rustic land, the period (normally 8 years) must have run without interruption, and the works must predate their express prohibition there.
  • A changed use (a barn turned into a home) can be legalised only if action against it is also time-barred; uses begun before 29 May 2014 count from when they began.
IslandApply byIf the 8 years apply and you apply at the deadline, house finished beforeLevy rate today
Mallorca15 Feb 202815 Feb 202012.5%; 15% from 16 Feb 2027
Menorca25 Mar 2028 (a Saturday: moves to Monday 27 Mar 2028 unless a holiday)25 Mar 202012.5%
Ibiza3 Apr 20283 Apr 202012.5%
Formentera18 Jun 202918 Jun 202110% until 18 Jun 2027

What legalisation costs (Law 7/2024, DA 7ª.2–4):

  • Levy: that year's rate of the assessed construction cost of what is legalised by this route, valued at the application date; if only the use is legalised, the base is the cost of the building it is tied to. Anything legalisable the ordinary way goes in the same application and comes off the base (DA 7ª.3).
  • Reduction: Spanish income tax (IRPF) payers get 50% off with a four-year average taxable base up to €33,000 (€52,800 joint), 25% up to €52,800 (€84,480 joint); a non-resident who does not file IRPF may not qualify.
  • On top: taxes, fees, the legalisation project, wastewater treatment meeting the Balearic Hydrological Plan, and any municipal measures on appearance, lighting or energy and water use.
  • The whole property: the application covers every irregular work and use; anything still open to enforcement that cannot be legalised must be demolished.
  • Utilities: the licence is enough to sign up for electricity, water, gas and telecoms (DA 7ª.11); get the supplier's written confirmation of the connection and its cost.

For example, if building what is legalised would cost €100,000 today, the 12.5% levy is €12,500 before any reduction. The base is not the purchase price.

Excluded, among others: public-domain land, road protection zones, coastal and water easements, flood zones and buildings marked for demolition or expropriation. Ask the town hall whether it has excluded the house's use from this route (DA 7ª.2 and 7ª.5.e). On Formentera the route covers only homes, farming and the activities listed in annex IV of its island plan.

After legalisation, the use is tied to the whole registered property, which cannot be split up while the use continues unless the plot exceeds the minimum size and the link is lifted first (DA 7ª.7).

Tourist letting of a legalised home

Tourist letting of a legalised home is banned, except homes lawfully let to tourists before 29 May 2024 while their authorisation remains valid. If it dates from the old Law 2/2005, tourism quality accreditation and a surveyor's or engineer's safety certificate within 3 months of the legalisation are also required (Law 7/2024, DT 4ª).

Canaries, Catalonia, Galicia and Murcia: what changes?

Canaries: 4 years, with wide exceptions

The 4 years run from full completion (LSENPC, art. 361). For a use in a lawful building, or one fuera de ordenación, they run from its first outward, verifiable sign; if a storage building is now lived in, get its status confirmed in writing. There is no time limit, for proceedings or for an order, on, among others, illegal subdivisions on protected rustic land, building on rustic land already environmentally protected when work began, public-domain land, listed heritage and green areas (art. 361.5).

Otherwise, once the period expires the house is fuera de ordenación but still not legal. Repairs for habitability and appearance are allowed, plus works for its established use or one the plan allows, without more volume or height (art. 362.2); with an established use, a licence can also cover ancillary uses and works sector rules require (art. 362.3). The status is also a ground for compulsory purchase, with compensation ignoring illegal works (art. 362.4).

Catalonia: 6 years, except reserved or protected land

On public open space or roads reserved by the plan, or land that art. 32.a makes non-developable, neither action nor an order ever becomes time-barred. Elsewhere, the 6 years run from the breach or completion (TRLU, art. 207 and art. 32.a), or from when an unlawful licence is annulled.

Galicia: 6 years, then only limited works

For works needing a licence (art. 142.2) there is no time limit on the plan's green areas, public open space, roads or public facilities, or the 4 m road setback of art. 92.1 (LSG, art. 155). Elsewhere, after 6 years from completion without measures (art. 153), article 90 governs the house: ask the town hall which paragraph applies. On rustic land, with planning permission, conservation, alteration and rehabilitation are allowed, but never an extension (art. 90.2). Ask the town hall and the regional Agencia de Protección de la Legalidad Urbanística for their files (LSG, art. 156).

Murcia: do not confuse a fine with demolition

On land for public infrastructure (sistemas generales), green areas, roads or specially protected natural areas, among others, restoration can always be ordered; elsewhere the law does not say when it becomes time-barred, so ask your lawyer what, if anything, protects the house. The 4- or 8-year periods are limitation periods for the planning offence, which affect the fine, not restoration (LOTURM, art. 272 and art. 294.1–294.2).

Does registration by age mean legalisation?

No. Registration by age (declaración de obra nueva por antigüedad) is possible only once the enforcement period has expired: never, for example, for a house finished on Valencian non-developable land from 8 February 2019. It needs the documents under proving age, with a completion date and description matching the deed; the registrar then notifies the town hall (TRLSRU, art. 28.4.a).

If the house was registered this way without a town hall certificate, ask the Land Registry for any marginal note on its planning status (TRLSRU, art. 28.4.c).

What does TerrenoCheck check about the house?

It also maps flood zones, Natura 2000, protected areas, public woodland, coastal law zones and, outside Galicia, the Balearics and the Canaries, vías pecuarias (protected livestock routes): sample report.

What should I ask for before paying the deposit (arras)?

Before you pay, settle the general checks and those for your region and the house's status, or have your lawyer make any open point a deposit condition, with a date and a full refund if it fails. Ask the town hall for its fees, and your architect and lawyer for fixed quotes and timings. The town hall has 6 months from filing to decide on AFO or Balearic legalisation, a period that may be suspended (Law 39/2015, art. 22); with no decision, the application counts as refused. Set your own refund date in the deposit contract, allowing time to prepare the application.

Documents and answers before paying the deposit

  • Legal or legalisable house: licence or legalisation matching the house viewed, plus the residential-use document that applies (licencia de primera ocupación or declaración responsable, a formal compliance declaration, depending on the region)Seller and town hall; your lawyer confirms which
  • Valencia region: the town hall's written answer on open enforcement files and whether demolition can still be ordered, and, if they exist, the minimización declaration and the licence that follows itTown hall; your lawyer reviews it
  • Andalusia: AFO recognition covering the existing building and its use, or the certificate for a house finished before Law 19/1975 came into forceSeller and town hall
  • Balearics: the extraordinary-legalisation licence; if there is only an application, make the licence a condition of the depositSeller, town hall and island council
  • Documented completion date of the house and each addition (porch, pool, garage, annexe), compared by your surveyor with the plans, licence or AFOSeller and surveyor or architect
  • Land class and category, and any protection zones or easements; in the Balearics, also the class when the house was builtTown hall and relevant authorities
  • Enforcement files and orders: ask in writing about open and closed files and any orders not yet carried out (certificado de inexistencia de expedientes de disciplina urbanística)Town hall and regional or island body; ask both
  • Proposed works and utility connectionsTown hall and utility companies
  • Water and wastewater off the mains: where the water comes from (well, tank), under what authorisation, how wastewater is treated, and the cost of any changesSeller, surveyor and the relevant authority
  • Land Registry extract, registration documents and marginal notesRegistry and seller
  • What exactly you are buying: a separate registered property or an undivided share (cuota indivisa) of a larger one, and whether it matches the house and land you viewedRegistry and your lawyer
  • Time limits, deposit terms and any criminal proceedings or court rulings affecting the house (in Andalusia, the AFO decision must mention criminal proceedings)Your own lawyer
  • Finance offer for this house, or a finance conditionLender and your lawyer

The sale deed must disclose the planning position of buildings that are fuera de ordenación; if it does not, the buyer can cancel the sale within 4 years and claim damages. Your lawyer must confirm whether a particular AFO decision counts (TRLSRU, art. 27.2.a and art. 27.3).

Already have a plot in mind?

Find it on the map, confirm the boundary and get the report as two PDFs (100 pages in English and 99 in Spanish in the sample report; the length of each order depends on the plot), with its sources and dates.

Check a plot

Frequently asked questions

Does AFO recognition legalise a house in Andalusia?

No. It records that the period to act has expired and does not affect other proceedings or court rulings. See the AFO section.

When can an illegal house on rustic land no longer be demolished?

When the right period has really expired, no exception applies, and no earlier proceedings or order remain. See the deadlines by region.

Can I renovate or extend an AFO property in Andalusia?

You can renovate and strengthen it with licences, but as a rule not extend it, except for ancillary elements that sector rules require.

What does an AFO cost, and how long does it take?

Budget for technical work, the town hall's AFO fee, set in its fee bylaw (ordenanza fiscal; ask for it), any safety and health works and, separately, utility connections. For timing, see what to ask for before paying.

Can I use extraordinary Balearic legalisation for tourist letting?

Generally not; the exception covers homes lawfully let to tourists before 29 May 2024. See the Balearic section.

Sources

SourceWhat it backsChecked
BOE, Andalusian LISTAarts. 14, 152, 153, 154, 173 and 174; AFO, planning enforcement, DA 9ª and the pre-1975 regime in DT 5ª15 Oct 2026
BOE, national land law, TRLSRUarts. 27 and 28, buyer duties, sale disclosure and building registration15 Oct 2026
BOJA, Decreto 550/2022, LISTA general regulation, consolidated textart. 354.5, period in force when the works were finished15 Oct 2026
BOE, Law 39/2015 on administrative procedureart. 22, pausing the deadline to decide15 Oct 2026
BOE, Spanish Civil Codeart. 1454, arras penitenciales15 Oct 2026
BOE, Valencian TRLOTUParts. 228, 230, 241, 255 and 256, impact minimisation, formal declarations, periods and effects; DT 26ª, pre-1975 buildings15 Oct 2026
BOE, Valencian Law 16/2005art. 224 sets a 4-year period for works finished 2006 to 201415 Oct 2026
BOE, Valencian Law 5/2014 (LOTUP)art. 236 sets a 15-year period, with the 2019 change for non-developable land15 Oct 2026
BOE, Balearic LUIBart. 196, period, exceptions, evidence and uses15 Oct 2026
BOE, Balearic Law 7/2024art. 54, DA 7ª and DT 4ª, rustic regime, extraordinary legalisation and tourist exception15 Oct 2026
Alaró town hall, extraordinary legalisation10%, 12.5% and 15% periods on Mallorca15 Oct 2026
BOIB no. 21, 15.02.2025, Consell de Mallorca decisionDA 7ª applied on Mallorca15 Oct 2026
BOIB no. 37, 25.03.2025, Consell Insular de Menorca decisionDA 7ª applied on Menorca15 Oct 2026
BOIB no. 41, 03.04.2025, Consell d'Eivissa decisionDA 7ª applied on Ibiza15 Oct 2026
BOIB no. 76, 18.06.2026, Consell Insular de Formentera decisionDA 7ª applied on Formentera, limited scope15 Oct 2026
BOE, Canarian LSENPCarts. 361 and 362, deadlines, orders, exceptions and fuera de ordenación15 Oct 2026
BOE, Catalan TRLUart. 207 and art. 32.a, time limits and excluded land15 Oct 2026
BOE, Galician land lawarts. 90, 92, 153, 155 and 156, periods, exceptions, works and competent authorities15 Oct 2026
BOE, Murcian LOTURMart. 272 and art. 294, infringement time limits and planning enforcement15 Oct 2026

This guide is general information on the rules in force on the date 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). Each statement is checked against the official source linked in the table, on the date shown. If you find a mistake, write to us and we will correct it.