The annulment of a building permit in Mallorca can have particularly relevant legal consequences when the works carried out under its protection are contrary to the planning regulations and there is no possibility of legalization.
The established case law of the Third Chamber of the Supreme Court has traditionally linked the nullity of the license with the restoration of the altered physical reality and, in cases where the building cannot be legalized, with the demolition of what has been built.
The issue has acquired renewed legal relevance following two appeals admitted by the Supreme Court on July 20, 2026, in which it must be determined whether a judgment that annuls a building permit contrary to the planning can be executed through a judicially approved agreement that avoids demolition.
From its specialized practice in real estate and urban planning law in Mallorca and the Balearic Islands, Resitax analyzes this issue due to its impact on the legal security of owners, communities of owners, purchasers and investors, particularly in real estate operations affected by urban planning contingencies or by administrative and judicial procedures relating to the validity of licenses.
Legal summary
Current legal doctrine generally establishes that the judicial annulment of a non-legalizable building permit requires the restoration of legality and may result in the demolition of the construction. Appeals 7117/2025 and 2036/2026, admitted by the Supreme Court on July 20, 2026, will have to clarify whether the execution of these judgments can be carried out through court-approved agreements that allow for avoiding demolition without altering the essential content of the ruling. This issue is particularly relevant for property owners and bona fide purchasers in Mallorca and the Balearic Islands.
Effects of the annulment of a building permit
The established doctrine of the Third Chamber of the Supreme Court is based on the fact that the judicial annulment of an urban planning license does not only imply the disappearance of the administrative title that allowed the works to be carried out.
The declaration of nullity projects its effects on the material reality created under the protection of the annulled administrative act.
When the works are incompatible with the planning and there is no possibility of legalization, the consequence derived from compliance with the sentence is, in general, the restoration of the altered physical reality.
This is evident, among others, from the Supreme Court rulings of:
- May 13, 2005, appeal 5290/2002.
- October 4, 2006, appeal 2100/2004.
- November 9, 2006, appeal 7354/2006.
- February 4, 2009, appeal 1745/2007.
- February 18, 2009, appeal 2690/2007.
- April 16, 2009, appeal 2826/2007.
- April 29, 2009, appeal 4089/2007.
The firm pronouncement of nullity is not exhausted, therefore, in the disappearance of the enabling title.
When the building cannot be legalized, the execution of the sentence leads, in principle, to the demolition of what has been built and the restoration of urban planning legality.
Legal basis for demolition after the cancellation of the license
This doctrine finds support primarily in two provisions.
On the one hand, Article 105.1 of Law 29/1998, regulating the Contentious-Administrative Jurisdiction, according to which it is not possible to suspend compliance with a judgment or declare its total or partial non-execution outside of the legally provided cases.
On the other hand, Article 4.1 of the consolidated text of the Land and Urban Rehabilitation Law, approved by Royal Legislative Decree 7/2015, establishes territorial and urban planning as public functions not subject to negotiation.
On this basis, the Supreme Court ruling of May 16, 2014, appeal 1621/2013, stated that compliance with urban planning law is not subject to the free availability of the parties.
This principle constitutes one of the main legal limits to any agreement intended to modify or modulate the way in which a final judicial decision is executed.
The issue admitted to appeal by the Supreme Court
The orders issued on July 20, 2026, corresponding to appeals 7117/2025 and 2036/2026, come from executions of the High Court of Justice of Andalusia relating to real estate developments located in Marbella.
The first of the proceedings analyzes a residential complex consisting of forty-eight homes built under a license granted in 1998 and subsequently annulled by a final judgment of March 3, 2006.
The action affected land intended for a general road system and public open spaces.
The second procedure refers to sixty-one homes built under licenses granted in 2003 and subsequently annulled by a judgment of February 19, 2012 for being contrary to the planning.
In both incidents, the Court of First Instance ruled out the existence of causes of material or legal impossibility of execution, rejected the submission of the controversy to intrajudicial mediation and ordered the City Council to proceed with the demolition.
However, the execution was conditional upon the prior provision of sufficient guarantees to cover any compensation that might be due to third-party purchasers in good faith.
The court-approved agreement as a form of sentence enforcement
The question that the Supreme Court will have to resolve is whether the judgments that annul building permits that are contrary to the planning regulations, when there is also no possibility of legalization, can be executed through an agreement between the parties subsequently approved by the courts that avoids demolition.
The appellants argue that Articles 77, 103, 105 and 106 of the Law regulating the Contentious-Administrative Jurisdiction, interpreted together with Articles 24 and 118 of the Spanish Constitution, would allow certain aspects of the execution to be agreed upon, provided that the agreement is not contrary to the general interest.
The debate requires distinguishing between two legally different issues:
- the consensual determination of how to execute a sentence;
- and the modification of the material result established by a final judicial resolution.
The distinction between the two scenarios is one of the central elements of the appeals admitted.
The Supreme Court precedent on agreements in execution of judgment
The appellants invoke judgment 1053/2025, of July 17, appeal 4028/2023.
In that ruling, the Supreme Court admitted that a final judicial decision could be executed through an agreement between the parties that was subject to judicial approval.
However, the scope of this precedent requires important clarification.
The Supreme Court distinguished between a judicial transaction in the proper sense and a collaboration agreement aimed at facilitating the correct fulfillment of a final decision, placing the case analyzed within this second category.
Case law therefore allows the parties to raise certain issues relating to the form of execution, but does not recognize a general power to modify the essential content of a final judgment.
Limits of the approved judicial agreement
Two particularly relevant consequences derive from this precedent.
First, the act subject to challenge is the court order that proceeds to the approval of the agreement, in the same terms as any other resolution adopted during the execution phase.
Secondly, the homologation can be challenged when the agreement deviates from what was actually decided in the judicial resolution that is intended to be executed.
The inviolability of final judicial decisions is part of the content of the right to effective judicial protection.
In the case resolved by judgment 1053/2025, the approved agreement had deviated precisely from the limits established in the execution, a circumstance that determined the annulment of the approval.
The precedent therefore allows for a certain margin to agree on the way to carry out the execution.
The question that the Supreme Court must now resolve is whether replacing a demolition with an alternative formula still falls within the scope of the form of execution or whether it involves modifying the material content of the ruling.
Protection of the third-party purchaser in good faith
The position of someone who acquired a home relying on a municipal license that was subsequently cancelled is one of the most practically relevant aspects in these proceedings.
Article 108.3 of the Law regulating the Contentious-Administrative Jurisdiction, introduced by Organic Law 7/2015, establishes specific protection for third-party purchasers in good faith affected by a demolition.
Unless there is an imminent danger, demolition requires the prior provision of sufficient guarantees to cover the payment of any compensation that may be due.
This protection has an essentially precautionary and patrimonial function.
However, it does not constitute a mechanism intended in itself to guarantee the preservation of the building.
Its purpose is to prevent a third party acting in good faith from bearing the economic consequences of a demolition without adequate prior asset protection.
Material or legal impossibility of execution
Article 105.2 of the Law regulating the Contentious-Administrative Jurisdiction also contemplates certain cases of material or legal impossibility of execution.
When a genuine impossibility exists, the judicial body may adopt the necessary measures to ensure the greatest possible effectiveness of the execution and determine, where appropriate, the appropriate compensation with respect to that part of the resolution that cannot be fully complied with.
However, the assessment of this circumstance is restrictive.
The impossibility cannot be identified simply with the high economic cost of the demolition nor with the damage it may cause to the finances of the responsible Administration.
In the two proceedings currently admitted to cassation, the existence of a material or legal impossibility had been ruled out by the lower courts.
Impact of the cancellation of building permits in Mallorca and the Balearic Islands
The issue is particularly relevant in Mallorca and the Balearic Islands as a whole, where the autonomous regime incorporates specific mechanisms for controlling urban planning legality.
The Balearic regime therefore reinforces the importance of thoroughly analyzing the legal and urban planning situation of the property within real estate transactions.
Article 62 of the consolidated text of the Land Law establishes the public action to demand before the Administration and before the courts the observance of territorial and urban planning.
Therefore, challenging a license is not necessarily conditioned on the existence of a direct and personal interest.
For its part, Article 185 of Law 12/2017, on urban planning of the Balearic Islands, allows the suspension of the effectiveness of a license to be agreed ex officio or at the request of any person when the act manifestly legitimizes a serious or very serious infringement.
The regulations also grant island councils certain powers to request an ex officio review or to file an administrative appeal when the action is located on protected rural land subject to their direct disciplinary jurisdiction.
The existence of a municipal license and the urban planning risk
The formal existence of a municipal license does not constitute an absolute guarantee against future urban planning contingencies.
An administrative license can be challenged and subsequently annulled in court.
For this reason, the legal analysis of a real estate transaction must consider not only the existence of the enabling title, but also:
- their legal status;
- the planning that constitutes its foundation;
- the administrative history of the property;
- the possible urban planning disciplinary procedures;
- the existence of contentious-administrative procedures;
- and the registration status of the property.
This analysis is especially important in real estate operations developed in Mallorca and the Balearic Islands when there are complex urban planning precedents or investments of special economic relevance.
Urban planning due diligence in real estate transactions in Mallorca
due diligence allows for the identification of potential contingencies before formalizing a real estate acquisition.
The analysis should cover, at a minimum, the following elements.
Urban planning certification of the property
The urban planning certification allows one to know certain aspects of the regime applicable to the property and must be compared with its physical, documentary and registry reality.
Urban planning disciplinary files
The existence of administrative files that may affect the works carried out, the building or the authorized use of the property must be verified.
Appeals against the license or planning
It is equally relevant to check for the existence of pending contentious-administrative proceedings against the building permit or against the planning instrument that constitutes its basis.
Property registration status
Registry analysis allows the identification of possible preventive annotations, precautionary measures or other circumstances related to administrative or judicial proceedings.
Contractual guarantees
When urban planning contingencies exist, the contractual documentation may incorporate mechanisms designed to adequately distribute the risk between the parties.
These may include retentions, guarantees and other contractual remedies against the seller and, where applicable, against the developer.
The temporal dimension of urban planning procedures
The proceedings currently being examined by the Supreme Court also show that disputes related to the enforcement of urban planning judgments can last for extraordinarily long periods.
In one of the cases admitted to cassation, the license was granted in 1998 and the sentence declaring its nullity was issued in 2006.
The execution incident remained open in 2026.
The existence of almost three decades of uncertainty about an inhabited building reflects the dimension of the risk associated with certain urban planning contingencies.
This circumstance reinforces the importance of preventive analysis, particularly in high-value real estate transactions and investments made by national and international buyers.
Consequences for owners, purchasers and investors in Mallorca
The future Supreme Court ruling will have to determine the extent to which the autonomy of the parties can extend within the execution of an urban planning judgment.
The issue does not concern the validity of the originally annulled license or the court ruling that declared it illegal.
The debate focuses specifically on how to execute a firm resolution when its literal compliance leads to the demolition of homes occupied by people who did not participate in the original urban planning irregularity.
The ruling will be of particular relevance to:
- owners;
- third-party purchasers in good faith;
- homeowners' associations;
- real estate developers;
- national and international investors;
- Public Administrations;
- and professionals involved in real estate transactions subject to urban planning contingencies.
Legal situation until the final ruling of the Supreme Court
Until the Supreme Court resolves the appeals admitted on July 20, 2026, the currently applicable doctrine remains in force.
When a building permit is annulled by court order, the construction is contrary to the planning regulations and there is no possibility of legalization, the general rule continues to be the execution of the sentence and the corresponding restoration of urban planning legality.
The economic protection granted to the third-party purchaser in good faith does not equate to an automatic right to preserve the building.
The future ruling must determine whether there is additional scope to formulate judicially approved agreements that allow for alternative forms of execution without violating the inviolability of final judgments or the general interest associated with compliance with urban planning law.
Frequently asked questions about the cancellation of building permits and demolitions
Does the cancellation of a building permit necessarily imply demolition?
When the building cannot be legalized and the final judgment requires the restoration of urban planning legality, the current doctrine links the execution with the restoration of the altered physical reality.
The existence of certain exceptional circumstances may affect the form of execution, but the presence of third-party purchasers in good faith does not automatically determine the preservation of the building.
Can a planning ruling be enforced through a court-approved agreement?
Case law allows that certain aspects relating to the execution of a judgment may be implemented through agreements subsequently submitted to judicial approval.
The question before the Supreme Court is whether this mechanism can replace demolition with an alternative solution when the building is not eligible for legalization.
What protection is due to a third-party purchaser in good faith?
Article 108.3 of the Law regulating the Contentious-Administrative Jurisdiction requires, in general and except in cases of imminent danger, that before proceeding with the demolition there are sufficient guarantees to cover the corresponding compensation to third parties acting in good faith.
This protection is of a patrimonial nature and does not necessarily imply a right to preserve the property.
Can a demolition order be declared impossible to execute?
The legislation contemplates cases of material or legal impossibility of execution.
Its assessment is restrictive and requires circumstances that allow compliance with the sentence to be considered truly impossible.
The high economic cost of a demolition or its impact on public accounts does not, in itself, constitute sufficient cause.
What factors should be considered before buying a property in Mallorca?
The legal review should include, among other aspects, the urban planning certification, possible urban planning disciplinary proceedings, the existence of appeals against the license or planning, the registration status, any precautionary measures and the applicable contractual guarantees.
Does the existence of a municipal license definitively guarantee the urban planning legality of the property?
Not necessarily.
An administrative license can be challenged and subsequently annulled in court.
The legal analysis must therefore assess both the existence of the title and its legal status, the applicable planning and the possible urban planning contingencies associated with the property.
What role does urban planning due diligence play in a real estate transaction?
Urban planning due diligence allows for the analysis, prior to an acquisition, of the legal status of the property, existing licenses, administrative and judicial records, planning regulations, registration status, and possible contingencies that may affect the legal or economic security of the transaction.
Conclusion
The appeals admitted by the Supreme Court on July 20, 2026 raise a question of considerable importance for urban planning law: to determine whether a final judgment that annuls a non-legalizable building permit can be executed through a judicially approved agreement capable of avoiding demolition.
The future ruling must define the boundary between the possibility of agreeing on the form of compliance with a sentence and the impossibility of materially altering the content of a final judicial decision.
Until that decision is made, the general rule continues to link the annulment of a license that is not susceptible to legalization with the restoration of urban planning legality.
In Mallorca and the Balearic Islands, this scenario reinforces the relevance of preventive legal analysis of real estate operations that have a history related to licenses, planning, urban discipline or administrative and judicial procedures.
Resixa's real estate and urban planning law practice
Resitax has a specialized practice in real estate and urban planning law in Mallorca and the Balearic Islands, from which it advises national and international owners, purchasers and investors in real estate transactions and in situations of special urban planning complexity.
The advice includes, among other matters, the prior legal and urban planning analysis of properties, real estate and urban planning due diligence, urban planning discipline, challenge of licenses, protection of the good faith purchaser and enforcement incidents before the bodies of the contentious-administrative jurisdiction.
The coordinated review of the urban planning, administrative, registry and contractual situation allows the determination of the scope of existing contingencies and the legal assessment of their effects before a real estate transaction consolidates its consequences.
Resitax — Real estate and urban planning law in Mallorca and the Balearic Islands.