Listyco
Photo by Arvydas Baltinas on Unsplash
Guides

Demolition orders in Spain: when the town hall can demolish your property and how to challenge it (2026)

A Spanish town hall can order demolition for illegal builds or ruin. The LISTA gives six years to act, a one-month appeal window and an AFO route.

Demolition orders in Spain: when the town hall can demolish your property and how to challenge it (2026)

A demolition order (orden de demolicion) in Spain is an administrative act by which a town hall commands the owner to demolish all or part of a building, either because it was built without a planning licence or because it has become structurally dangerous. In Andalusia the framework is the Ley 7/2021 de impulso para la sostenibilidad del territorio de Andalucia (LISTA), and the restoration-of-legality clock runs for six years from the date the works were completely finished (Article 153). After that, the town hall loses the power to demolish, and the building can instead be recognised as asimilado a fuera de ordenacion (AFO). The two routes to demolition are illegal-build enforcement and ruin declaration, and each has a different legal basis, timeline and remedy.

What triggers a demolition order for an illegal build in Spain?

A demolition order for an illegal build is triggered when the town hall discovers works completed without the required planning licence (licencia de obras), or in breach of its conditions, on land where the applicable urban plan does not permit the construction. The LISTA Article 152 governs the procedure for restoring legality in Andalusia, replacing the former LOUA (Ley 7/2002) framework. The town hall can initiate the procedure on its own initiative or following a denunciation by any citizen, since urban legality is a matter of public order.

The procedure begins with a technical and legal report on whether the works are compatible with the current planning ordinance. If the works could potentially be legalised, the LISTA Article 152.6 gives the owner a two-month window to apply for the corresponding licence. During that legalisation application, the demolition procedure is suspended. If legalisation is impossible because the works violate the planning framework, or if the owner fails to legalise within the two months, the procedure continues and the resolution orders the measures necessary to restore the physical reality to what the plan permits, which typically means demolition.

The resolution must be notified within a maximum of one year from the date of initiation (LISTA Article 152.2). If the town hall fails to notify within that period, the procedure is void (caducado). The measures of restoration have a real character under LISTA Article 150.3, meaning they bind any third-party acquirer of the property, not just the original builder.

How long does the town hall have to order demolition?

The restoration-of-legality action is time-limited. The LISTA Article 153.1 sets a six-year period running from the complete termination of the works, or from the appearance of external signs that make the works detectable, whichever is later. Once six years have passed without the town hall initiating and completing the restoration procedure, the action expires and demolition can no longer be ordered.

This prescription period is characterised in Spanish law as a caducidad (expiry) rather than a prescripcion (prescription), a distinction confirmed by the Tribunal Superior de Justicia de Madrid. The practical difference is that caducidad generally cannot be suspended, only interrupted by specific procedural acts, and once it has expired the administration’s power is definitively lost.

There are important exceptions where the six-year limit does not apply and demolition can be ordered at any time. LISTA Article 153.2 lists five categories: (a) works on public domain and protection easements, (b) works on protected rustic land with certain risks of landslides, floods or similar, (c) works in the coastal influence zone, (d) works affecting individually listed heritage assets in the Catalogo General del Patrimonio Historico de Andalucia, and (e) urbanistic parcelaciones on rustic land. For these, the town hall can act regardless of how much time has passed.

The state-level TRLSru (RDL 7/2015) Article 28.4 confirms the consequence of expiry: once the prescription periods have elapsed and demolition can no longer be ordered, a special procedure allows the construction to be registered in the Property Registry with a nota marginal recording its urban situation, which is the registry mechanism behind the AFO process.

What is the difference between a demolition order and a ruin declaration?

A demolition order under the LISTA is an urban-planning enforcement measure: it targets a building that violates the planning framework and aims to restore the physical reality to what the law permits. The trigger is the lack of a licence or a breach of licence conditions, and the power belongs to the town hall’s urban planning department.

A ruin declaration (declaracion de ruina) is a building-safety measure. It is triggered when a structure becomes physically dangerous, regardless of whether it was legally built. The Ley 38/1999 de Ordenacion de la Edificacion (LOE) Article 16.1 imposes on all owners the obligation to conserve buildings in good condition through adequate use and maintenance. When a building reaches a state of structural risk, the town hall can initiate a ruin procedure that may result in compulsory repair, securing works, or demolition if repair is economically or technically unfeasible. The procedure is governed by local municipal ordinances and the LOE framework.

The key practical difference: a legally built property that has deteriorated can face a ruin declaration and possible demolition, but the owner is not subject to urban-planning sanctions. An illegally built property faces demolition as an enforcement measure, plus potential sanctions under the LISTA’s penalty regime. Both can result in the same outcome (demolition) but the legal route, the owner’s remedies and the cost allocation differ.

How can you challenge a demolition order?

The appeal route is governed by the Ley 39/2015 de Procedimiento Administrativo Comun. Article 123 establishes that an administrative act that exhausts the administrative route (finishes the via administrativa, as a demolition order typically does) can be challenged either through a potestative reposicion appeal to the same body that issued it, or directly before the contencioso-administrativo jurisdiction. The reposicion route is optional, not mandatory.

If the owner chooses the reposicion route, Article 124.1 gives a one-month period from the day after notification of the express act to file it. The town hall then has one month to resolve (Article 124.2). If the reposicion is rejected or deemed dismissed by silence, the owner can proceed to the contencioso-administrativo court. If the owner skips reposicion and goes directly to court, the judicial filing period is two months from notification under the Ley 29/1998 reguladora de la Jurisdiccion Contencioso-Administrativa.

The most effective grounds for challenge typically include: procedural defects (failure to notify within the one-year limit under LISTA Article 152.2), expiry of the six-year restoration period under Article 153, denial of the two-month legalisation window under Article 152.6, or substantive errors in the technical report. A successful challenge on the prescription ground alone voids the demolition order entirely.

Challenge groundLegal basisTypical outcome
Procedural caducidad (1-year resolution limit exceeded)LISTA Art 152.2Procedure voided, demolition order annulled
Restoration period expired (6 years from completion)LISTA Art 153.1Restoration action lost, AFO route opens
Denial of legalisation windowLISTA Art 152.6Procedure suspended, owner granted 2-month window
Technical report errorsLey 39/2015 Art 112Resolution reversed on review
Measures disproportionate to the violationConstitutional proportionalityCourt may modify or annul

What happens if the demolition order becomes final?

If the owner does not appeal, or if all appeals are exhausted and the order is confirmed, the town hall sets a voluntary compliance period within which the owner must carry out the demolition at their own cost. If the owner does not comply, the LISTA Article 154 governs forced execution. The town hall can impose successive coercive fines (multas coercitivas) of up to 12 instalments, each a minimum of one month apart, valued at 10 percent of the works value, capped at EUR 5,000 per fine with a minimum of EUR 600 (Article 152.6 for legalisation failures) or EUR 10,000 per fine with a minimum of EUR 1,000 (Article 154.3 for non-compliance with restoration).

If coercive fines prove ineffective, the town hall proceeds to subsidiary execution (ejecucion subsidiaria), carrying out the demolition itself and charging the full cost to the owner. The RGLISTA (Decreto 550/2022) Article 364.4 sets the time limit for this forced execution at five years from the end of the voluntary compliance period, interrupted by any act of the obligated party toward compliance, by notification of enforcement acts, or by administrative or judicial suspensions.

The measures of restoration have a real character under LISTA Article 150.3, meaning they bind third-party purchasers of the property. A buyer who acquires a property with an outstanding demolition order inherits the obligation, which is why checking for incoacion de expediente de disciplina urbanistica is a standard part of due diligence on Costa del Sol property.

Can an illegal build be legalised instead of demolished?

Yes, if the works are compatible with the current planning ordinance. The LISTA Article 152.6 grants the owner a two-month window to apply for the required licence (titulo habilitante), and the demolition procedure is suspended while the licence application is processed. If the licence is granted, the procedure is archived. The LISTA Article 152.8 also confirms that legalisation can be requested at any time, even after the six-year restoration period has expired, if the works are compatible with the current ordinance.

If legalisation is not possible but the six-year restoration period has expired, the alternative is AFO status. The LISTA Article 173 defines the situation of asimilado a fuera de ordenacion: it applies to completed irregular buildings where enforcement is no longer possible because the statutory period has elapsed. The town hall resolves the AFO application within six months (Article 173.2), and silence means rejection. The AFO declaration does not legalise the building (Article 174.1 states this expressly) but allows connection to basic services (water, electricity, sanitation) under Article 174.3, and permits conservation and reform works that do not increase the occupied area or volume under Article 174.7. It is recorded in the Property Registry by a nota marginal (Article 174.6).

This is the same AFO regime that our illegal builds due diligence guide covers from the buyer’s perspective. The demolition-order page covers the enforcement consequence: what happens when the town hall decides to act, and when the six-year clock protects the owner.

How does the prescription of the demolition execution work?

Once a demolition order becomes final (not appealed or confirmed by court), the administration has a limited period to execute it. The RGLISTA Article 364.4 sets this at five years from the end of the voluntary compliance period. This execution prescription is separate from the six-year restoration-of-legality period in Article 153: the former governs how long the town hall has to enforce a final order, the latter governs how long it has to initiate and resolve the procedure in the first place.

At the state level, the reduction of the personal-action prescription period from 15 to 5 years under the Civil Code Article 1964.2 (amended by Ley 42/2015, in force from 7 October 2015) also affects the execution of administrative demolition orders, as confirmed by the Tribunal Superior de Justicia de Madrid. For orders issued before 7 October 2015, the transitional provision (Disposicion Transitoria Quinta of Ley 42/2015) caps the remaining period at five years from that date, meaning all pre-2015 orders that had not been executed by 7 October 2020 are now prescribed.

This prescription of the execution does not retroactively legalise the building. The property remains in a situation of fuera de ordenacion or asimilado a fuera de ordenacion, and the AFO procedure under Article 173 is the route to formal recognition of that status.

What are the insurance and mortgage implications of a demolition order?

A property with an outstanding demolition order is effectively unmarketable. Spanish banks will not mortgage it, and most insurers will not cover it. The existence of an incoacion de expediente de disciplina urbanistica is recorded as an anotacion preventiva in the Land Registry, which the TRLSru Article 28.4 confirms is visible to any notary conducting a property transaction. Buyers are alerted through the nota simple.

If a demolition order is prescribed (the six-year restoration period or the five-year execution period has expired), the owner can apply for AFO status, which removes the anotacion preventiva and replaces it with a nota marginal recording the asimilado situation. This makes the property marketable, though at a discount reflecting its irregular status and the restrictions on extension and renovation. For guidance on the Marbella PGOU and how 16,500 homes were legalised, the planning framework that reclassified land is the mechanism that can resolve these situations at scale.

Properties in the coastal zone face additional risk because the LISTA Article 153.2(c) exempts the coastal influence zone from the six-year limit, meaning demolition can be ordered at any time under both urban planning and coastal law regimes. The plot purchase guide covers the urbanistic classification checks that prevent buying into this problem in the first place.

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

Can the town hall demolish a house built without a licence in Spain?
Yes. Under LISTA Article 152 the town hall can order demolition of works carried out without a planning licence, but only within six years of complete termination under Article 153. After that period the restoration action expires and the building can instead apply for AFO status under Article 173, which tolerates it without legalising it.
How long does the town hall have to execute a demolition order in Andalusia?
The RGLISTA (Decreto 550/2022) Article 364.4 sets a five-year period to execute the demolition resolution, starting from the end of the voluntary compliance period stated in the resolution. This period is interrupted by any action by the obligated party toward compliance, by notification of enforcement acts, or by administrative or judicial suspensions.
What is the difference between a demolition order and a ruin declaration?
A demolition order under the LISTA is an urban-planning enforcement measure against an illegal build, aimed at restoring the physical reality to what the planning law permits. A ruin declaration (declaracion de ruina) is a building-safety measure under the LOE Article 16 and local ordinances, triggered when a structure becomes dangerous, and can result in compulsory repair or demolition regardless of whether the build was legal.
Can I appeal a demolition order in Spain?
Yes. Under Ley 39/2015 Article 123 you can file a potestative reposicion appeal with the same town hall within one month of notification (Article 124), or go directly to the contencioso-administrativo court. The reposicion route is optional; you are not required to exhaust it before going to court.
Does AFO status prevent demolition?
AFO (asimilado a fuera de ordenacion) under LISTA Article 173 applies only after the six-year enforcement period has expired, meaning the town hall can no longer order demolition. AFO does not legalise the building; it tolerates it and allows connection to basic services under Article 174, but the owner cannot extend or substantially renovate it.
Are there properties where demolition can be ordered at any time regardless of age?
Yes. LISTA Article 153.2 exempts certain categories from the six-year limit: buildings on public domain or coastal protection easements, those on protected rustic land with natural hazard risks, those in the coastal influence zone, and those affecting listed heritage assets. For these, restoration can be ordered at any time.

Sources and data