Listyco
Photo by Arvydas Baltinas on Unsplash
Guides

Demolition Orders in Spain in 2026: When the Town Hall Can Demolish Your Property and How to Challenge It

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

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 Andalucía (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. In 2026 the Supreme Court has sharpened the rules significantly: STS 171/2026 confirms that demolition is the rule, not the exception, and that the administrative prescription clock does not protect an owner from a criminal court’s demolition order.

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. This is why checking for an incoacion de expediente de disciplina urbanistica is a standard part of due diligence on Costa del Sol property.

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.

The TSJA confirmed in April 2026 that the six-year clock only starts from complete termination of the works. In a case from Montemayor (Córdoba), the owners argued that nearly 20 years had passed since construction began in 2006 to 2007, far exceeding the six-year limit. The court rejected this: photographic evidence and inspections showed the building was paralysed but not finished, with unreinforced brick walls and no windows. Since the works were never completely terminated, the six-year period never started, and the demolition order stood. The owners were also ordered to pay costs of EUR 1,500 plus VAT.

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 Andalucía, 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 did the Supreme Court rule on demolition in criminal cases in 2026?

The most significant 2026 development in Spanish demolition law is STS 171/2026, issued by the Sala de lo Penal of the Tribunal Supremo on 26 February 2026 (ponente: Magistrate Angel Luis Hurtado Adrian). The ruling consolidates three principles that close the most common defence strategies in criminal demolition cases.

First, demolition under Article 319.3 of the Criminal Code is not a penalty. It does not appear in the penalty catalogue of the Criminal Code and cannot be classified as one. It is a civil responsibility (responsabilidad civil ex delicto) connected to Articles 109, 110 and 112, specifically the obligation to repair the damage. This means it is governed by the rules of civil responsibility, not by the administrative prescription periods of the restoration action.

Second, the criminal court is fully competent to order demolition. The formula of Article 319.3 CP, which states that judges and tribunals “may order” demolition, does not introduce an exceptional faculty but a rule with discretion limited by proportionality. Demolition is the ordinary response; what is exceptional is not to order it. The court cannot defer this decision to a possible future administrative action, as doing so would constitute an unjustified abdication of criminal jurisdiction.

Third, and most consequential for property owners: the prescription of the administrative restoration action does not block a criminal court from ordering demolition. The defence of “waiting for the administration to lose its power” does not work in criminal proceedings. Once a criminal demolition sentence is final, it is executed in its own terms, regardless of the state of the municipal urbanistic file. The question of administrative prescription is, at most, a matter for the execution phase of the sentence, not a cassation ground.

The ruling does not make demolition automatic. Article 319.3 CP requires motivation, and proportionality criteria (gravity of the act, nature of the construction, concurrent fundamental rights such as use as a habitual residence, nature of the land) must be weighed case by case. What STS 171/2026 confirms is that this weighing belongs to the criminal judge, is done at sentencing, and once resolved and final, cannot be reopened through the indirect route of invoking administrative prescription.

What happens if the area might be legalised in the future?

A common defence in demolition cases is to argue that the area where the illegal build sits is undergoing a planning regularisation process, and that future legalisation should prevent demolition. The courts have consistently rejected this argument in 2026.

The Audiencia Provincial de Córdoba confirmed on 28 June 2026 the demolition of a 40 square metre house and a 15 square metre prefab shed built without a licence on protected rustic land in the Vega del Guadalquivir. The defence argued that the urbanisation was immersed in a process to elaborate a Plan Especial de Adecuacion Ambiental y Territorial under the LISTA, which could eventually legalise existing buildings. The court rejected this: the authorisable character of the land must be analysed at the moment the construction was executed, not based on possible future planning changes. A future modification of the planning framework “does not remedy the illegality already committed”, as accepting the contrary would empty the crime against territorial planning of content. The owner was sentenced to one year and eight months in prison, a fine, two years of disqualification from acting as a developer or builder, and the obligation to demolish and restore the plot to its original state.

The Tribunal Supremo applied the same principle in a Mallorca case decided on 22 July 2026. A woman had built a 178 square metre house, a barbecue with six columns, a 100 square metre chicken coop and a 65 square metre stable on rustic land in Son Oliver, Palma, without any licence. The trial court and the Audiencia Provincial had refused to order demolition, citing the use as a habitual residence and the existence of other similar illegal buildings in the area. The Supremo overturned this: “the right to housing cannot prevail over the restoration of the legal order when the construction is radically illegal and not legalisable, as this would admit the profitability of the crime”. On the argument that other illegal buildings existed nearby, the court held that “equality in illegality is not a constitutionally protectable value” and that accepting this criterion would create a “call effect” favouring the expansion of illegal conduct. A possible future legalisation of the area was dismissed as a “hypothesis” incompatible with the restorative function of the criminal judge.

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. The building control process is the first checkpoint where unlicensed works are detected.

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. The full planning licence appeal process covers both routes in detail.

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 Junta de Andalucía reported in February 2026 that its enforcement strategy under the LISTA is producing measurable results. Since the law entered into force at the end of 2021, the regional government has applied 1,590 precintos (seals on illegal constructions), with 351 in 2025 alone. In 2025 the Junta initiated 155 sanctioning proceedings and imposed 178 coercive fines totalling EUR 4,245,636. Crucially, 54 owners carried out self-demolitions in 2025, a figure the Junta attributes to the shift toward progressive coercive fines that make compliance cheaper than continued resistance. The regional government also issued a record 160 expert reports for criminal cases related to territorial planning offences. Separately, the initiation of protection-of-legality proceedings against 484 edificaciones in 2025 was 12 times higher than in 2018, reflecting the shift in enforcement capacity.

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.

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. The declaracion de obra nueva process governs how a legalised build is subsequently registered.

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).

It is important to note that AFO is only available once the six-year enforcement period has expired and the building is completely finished. The TSJA Montemayor ruling of April 2026 confirms this: a building that was never completed cannot access AFO, because the restoration clock never started and the town hall’s power to demolish remains live.

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.

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.
What did the Supreme Court rule on demolition in criminal cases in 2026?
STS 171/2026 (26 February 2026) confirms that demolition under Article 319.3 of the Criminal Code is the ordinary consequence of a building crime, not an exceptional measure. The court held that administrative prescription of the restoration action does not block a criminal court from ordering demolition, because demolition is a civil responsibility (reparacion del dano), not an administrative act. The 'wait for the administration to lose its power' defence does not work in criminal proceedings.
Can a future legalisation of the area prevent demolition of my illegal build?
No. The Audiencia Provincial de Córdoba confirmed on 28 June 2026 that the legality of a construction is assessed at the time it was built, not based on possible future planning changes. Even if the area is undergoing a LISTA Plan Especial de Adecuacion Ambiental y Territorial that might eventually legalise existing buildings, this does not prevent demolition of an individual illegal build convicted in criminal proceedings.

Sources and data