Spain remains one of the most active real estate markets in Europe, attracting foreign buyers, developers and investors across residential, commercial and industrial segments. Yet the legal framework governing property acquisition and construction in Spain is layered across national, regional and municipal levels, creating genuine complexity for anyone unfamiliar with the system. Errors at the due diligence stage, missed permit conditions or misunderstood contractual obligations routinely cost buyers and developers significant sums - and some mistakes cannot be corrected after completion. This article addresses the most frequently asked legal questions about real estate and construction in Spain, covering the acquisition process, planning and building permits, off-plan purchases, construction disputes and enforcement of rights.
The acquisition of real estate in Spain is governed primarily by the Civil Code (Código Civil), the Mortgage Law (Ley Hipotecaria) and the Land Registry Law (Ley del Registro de la Propiedad). Title to immovable property transfers upon the combination of a valid purchase agreement and delivery (traditio), but practical and legal protection depends on registration at the Land Registry (Registro de la Propiedad).
Foreign buyers frequently underestimate the significance of registration. Under the Mortgage Law, Article 32, unregistered rights are not enforceable against third parties who acquire in good faith and register their own title. This means that a buyer who delays registration after notarisation risks losing priority to a subsequent creditor or buyer who registers first. The window between signing before a notary and completing registration can run from a few days to several weeks depending on the registry';s workload, and during that period the property remains technically exposed.
Before any purchase, a buyer must obtain a Número de Identificación de Extranjero (NIE - Foreign Identification Number), which is a tax identification number mandatory for all property-related transactions in Spain. Without an NIE, it is impossible to sign before a notary, open a Spanish bank account for the transaction or pay the applicable taxes. Processing times at Spanish consulates abroad vary considerably, and delays of four to eight weeks are common. Buyers who underestimate this requirement often find themselves unable to meet contractual deadlines, triggering penalty clauses.
The standard acquisition sequence involves a private purchase contract (contrato de compraventa or contrato de arras), a notarial deed (escritura pública de compraventa) and subsequent registration. The contrato de arras is particularly important: under Article 1454 of the Civil Code, if the buyer withdraws, the deposit is forfeited; if the seller withdraws, the seller must return double the deposit. The amount of the deposit and the conditions for withdrawal must be negotiated carefully, as courts interpret these clauses strictly.
A common mistake among international buyers is treating the private contract as a formality and focusing attention only on the notarial deed. In practice, the private contract defines the timeline, the penalty structure and the conditions precedent - including the results of due diligence. Poorly drafted private contracts have led to disputes where buyers discovered planning irregularities after signing but could not exit without forfeiting their deposit.
Thorough due diligence on a Spanish property covers legal, urban planning and physical dimensions. Each dimension carries distinct risks, and each requires specific searches at different registries and authorities.
Legal due diligence centres on the Land Registry extract (nota simple informativa), which discloses the registered owner, the description of the property, any mortgages, charges, easements, annotations of pending litigation and other encumbrances. A nota simple is not a guarantee of the property';s physical condition or planning status, but it is the starting point for any transaction. Buyers should also request a full copy of the registered title deeds (escrituras) to verify the chain of title and identify any conditions or restrictions attached to the property.
Urban planning due diligence requires a search at the relevant municipality (Ayuntamiento). The urban planning certificate (certificado urbanístico) confirms the property';s classification under the local urban plan (Plan General de Ordenación Urbana - PGOU), whether it is subject to any expropriation proceedings, whether there are outstanding planning violations and whether any building licences or completion certificates are registered. Spain';s planning law is largely regional: the Ley del Suelo y Rehabilitación Urbana (Law 7/2015) sets national principles, but each Autonomous Community has its own planning legislation. In Catalonia, the Llei d';Urbanisme applies; in Andalusia, the Ley de Ordenación Urbanística de Andalucía governs; in Madrid, the Ley del Suelo de la Comunidad de Madrid controls. Buyers must identify which regional regime applies and verify compliance accordingly.
A non-obvious risk is the existence of urban planning violations that have not yet been detected or sanctioned by the municipality. Spanish planning law provides for a limitation period after which certain violations become immune from demolition orders - but this period varies by region and by the type of violation. In some Autonomous Communities, violations on protected land (suelo no urbanizable protegido) are never time-barred. Buying a property with an undisclosed violation can result in the buyer inheriting an obligation to demolish or restore at their own cost.
Physical due diligence should include a technical survey by a qualified architect or technical architect (arquitecto técnico). Spanish sellers are not legally required to provide a structural survey, and the principle of caveat emptor applies with some limitations. The Civil Code, Article 1484, provides a remedy for hidden defects (vicios ocultos) that render the property unfit for use or that would have caused the buyer to reduce the price, but the limitation period for this action is only six months from delivery. Many buyers discover defects after this period has expired.
To receive a checklist for real estate due diligence in Spain, send a request to info@vlolawfirm.com.
Construction activity in Spain requires a building licence (licencia de obras) issued by the relevant municipality. The legal basis is the Ley del Suelo y Rehabilitación Urbana and the applicable regional planning legislation. Major works - new construction, extensions, structural alterations - require a major works licence (licencia de obras mayores), while minor works such as internal refurbishments may qualify for a minor works licence (licencia de obras menores) or, in some municipalities, a prior communication (comunicación previa).
The process for obtaining a major works licence involves submitting a technical project prepared by a licensed architect, paying the applicable municipal fees and awaiting administrative approval. Timelines vary significantly: in major cities such as Madrid or Barcelona, processing can take six to eighteen months depending on the complexity of the project and the municipality';s administrative capacity. Silence from the administration does not automatically constitute approval - under the Ley de Procedimiento Administrativo Común (Law 39/2015), administrative silence in planning matters is generally negative, meaning that if the municipality does not respond within the statutory period, the application is deemed refused.
Once construction is complete, the developer must obtain a certificate of end of works (certificado final de obra) signed by the project architect and a first occupation licence (licencia de primera ocupación) or, in some regions, a declaration of responsible occupation (declaración responsable de primera ocupación). Without these documents, the property cannot be legally occupied, connected to utilities or registered as a completed building. Buyers of newly built properties must insist on receiving these documents before completion.
The Ten-Year Structural Guarantee (seguro decenal) is mandatory for residential buildings under the Ley de Ordenación de la Edificación (Law 38/1999), Article 19. This insurance covers structural defects for ten years from the date of the certificate of end of works. Developers must take out this insurance before construction begins, and buyers of new residential properties should verify that the policy is in place. Failure to have a valid seguro decenal exposes the developer to direct liability and can complicate resale of the property.
A practical scenario: a foreign developer acquires land classified as urban (suelo urbano) and begins construction based on a favourable verbal indication from a municipal official, without waiting for the formal licence. The municipality subsequently issues a stop-work order (orden de paralización de obras) and initiates a planning infraction procedure. The developer faces fines, potential demolition of the unauthorised works and delay costs. Under the Ley del Suelo y Rehabilitación Urbana, Article 56, municipalities have the power to order demolition of unauthorised construction, and the developer bears the cost. Avoiding this scenario requires formal written confirmation of all planning conditions before any works begin.
Purchasing off-plan property (compra sobre plano) in Spain offers potential price advantages but carries specific legal risks that differ materially from purchasing an existing property. The legal framework has evolved significantly following the financial crisis, and buyers now benefit from stronger protections than existed previously.
The key protection for off-plan buyers is the obligation on developers to guarantee the return of advance payments if the development is not completed or the occupation licence is not obtained by the agreed date. This obligation derives from Law 57/1968, which was subsequently integrated into the Ley de Ordenación de la Edificación and the Ley 20/2015 de Ordenación, Supervisión y Solvencia de Entidades Aseguradoras. The developer must either obtain a bank guarantee (aval bancario) or an insurance policy covering all advance payments made by buyers. These guarantees must be individual, covering each buyer';s specific payments, and must be held by a bank or insurer authorised in Spain.
A common mistake is for buyers to make advance payments without receiving individual guarantee documents. Some developers provide a collective guarantee covering the entire development rather than individual guarantees per buyer. Courts have held that collective guarantees do not satisfy the statutory requirement, and buyers who accepted them have faced difficulties recovering their payments when developers became insolvent. Each payment made before completion should be covered by a separate, individually issued guarantee document.
The purchase contract for an off-plan property must specify the completion date, the penalty for delay, the technical specifications of the property and the conditions under which the buyer may withdraw. Under the Civil Code and the consumer protection framework, terms that are unfair or that disproportionately favour the developer may be declared void. Buyers should pay particular attention to clauses that allow the developer to modify the specifications unilaterally or to extend the completion date without penalty.
A second practical scenario: a buyer purchases an off-plan apartment in a coastal development, makes stage payments totalling a substantial sum and receives individual bank guarantees for each payment. The developer becomes insolvent before completion. The buyer activates the bank guarantees and recovers the advance payments in full, but must then pursue a separate claim against the developer';s insolvency estate for any consequential losses such as rental costs incurred during the delay. The guarantee mechanism works as intended, but recovery of consequential losses through insolvency proceedings is slow and uncertain.
Buyers should also verify that the developer holds the building licence before signing the purchase contract and making any payment. Signing before the licence is granted creates a risk that the licence is subsequently refused or granted with conditions that alter the project materially.
To receive a checklist for off-plan property purchases in Spain, send a request to info@vlolawfirm.com.
Construction disputes in Spain arise most frequently from defective works, delays, cost overruns and disagreements over the scope of works. The legal framework allocates liability among the developer (promotor), the architect (arquitecto), the technical architect (arquitecto técnico) and the contractor (constructor), with different liability periods and standards applying to each.
The Ley de Ordenación de la Edificación (LOE), Law 38/1999, is the primary statute governing construction liability. Article 17 of the LOE establishes three categories of defect, each with a distinct guarantee period:
These periods run from the date of the certificate of end of works, not from the date of purchase or occupation. A buyer who purchases a property several years after construction may find that the shorter guarantee periods have already expired. Buyers of second-hand properties should factor this into their due diligence and negotiate accordingly.
Liability under the LOE is joint and several among all agents of the building process where it is not possible to individualise responsibility. This means that a buyer with a valid claim can pursue the developer, the architect and the contractor simultaneously without having to prove which party caused the specific defect. In practice, defendants frequently seek to shift responsibility to each other, and litigation involving multiple defendants can be protracted.
The competent courts for construction disputes are the civil courts (Juzgados de Primera Instancia) at first instance, with appeals to the Provincial Courts (Audiencias Provinciales) and, on points of law, to the Supreme Court (Tribunal Supremo). Spain does not have a specialist construction court. Litigation timelines in Spain are substantial: first-instance proceedings in major cities routinely take two to four years, and appeals add further time. Expert evidence (pericial) is central to construction disputes, and the cost and quality of expert reports significantly influence outcomes.
Alternative dispute resolution is available. Arbitration is possible if the parties have agreed to it in the construction contract, and the Spanish Arbitration Act (Ley de Arbitraje, Law 60/2003) provides a modern framework. Mediation is encouraged under Law 5/2012 on Mediation in Civil and Commercial Matters, and courts may refer parties to mediation at any stage. For disputes of lower value, the consumer arbitration system (Sistema Arbitral de Consumo) is available where the developer is a professional and the buyer is a consumer.
A third practical scenario: a property owner discovers significant waterproofing defects in a recently completed residential building. The defects fall within the three-year habitability guarantee period under the LOE. The owner notifies the developer in writing, preserving evidence of the defects with photographs and a technical report. The developer disputes liability and attributes the defects to the contractor. The owner initiates civil proceedings against both the developer and the contractor jointly. The court appoints a judicial expert who confirms the defects and their cause. The court holds both defendants jointly liable and orders repair works or, alternatively, compensation equivalent to the cost of repair.
A non-obvious risk in construction disputes is the limitation period for bringing claims. Under the LOE, Article 18, the limitation period for actions based on construction defects is two years from the date on which the defects become apparent. This period is distinct from the guarantee period during which defects must manifest. Missing the two-year limitation period extinguishes the claim entirely, regardless of the severity of the defects.
We can help build a strategy for construction defect claims in Spain. Contact info@vlolawfirm.com for an initial assessment.
Every property transaction in Spain involves a significant tax burden that buyers and sellers must plan for in advance. The applicable taxes depend on whether the property is new or second-hand, whether the buyer is an individual or a company and the Autonomous Community in which the property is located.
For new residential properties purchased directly from a developer, the buyer pays Value Added Tax (Impuesto sobre el Valor Añadido - IVA) at the rate of 10% of the purchase price, plus Stamp Duty (Impuesto sobre Actos Jurídicos Documentados - AJD) at rates that vary by Autonomous Community, generally between 0.5% and 1.5%. For commercial properties, IVA applies at 21%.
For second-hand properties, the buyer pays Transfer Tax (Impuesto sobre Transmisiones Patrimoniales - ITP) instead of IVA. ITP rates are set by each Autonomous Community and range from 6% to 11% of the declared purchase price. Some Autonomous Communities apply reduced rates for first-time buyers, young buyers or buyers of properties below a certain value. The declared price must reflect the actual market value: the tax authority may challenge declarations that appear below market value and issue a supplementary assessment (comprobación de valores), which can result in additional tax, interest and penalties.
Sellers pay Capital Gains Tax (Impuesto sobre la Renta de las Personas Físicas - IRPF for residents, or Impuesto sobre la Renta de No Residentes - IRNR for non-residents) on the gain realised on the sale. Non-resident sellers are subject to a withholding mechanism: the buyer is required to retain 3% of the purchase price and pay it directly to the Spanish Tax Agency (Agencia Tributaria) on account of the seller';s potential tax liability. The seller may then file a return to recover any excess withholding or pay any additional tax due.
Sellers must also pay the municipal capital gains tax (Impuesto sobre el Incremento de Valor de los Terrenos de Naturaleza Urbana - IIVTNU, commonly known as the plusvalía municipal). This tax is levied by the municipality on the increase in the cadastral value of the land over the period of ownership. Following a Constitutional Court ruling that declared the previous calculation method unconstitutional in certain circumstances, the calculation rules were reformed by Royal Decree-Law 26/2021. Sellers should obtain a calculation of the expected plusvalía before agreeing the sale price, as the amount can be material for long-held properties in high-value areas.
Notarial fees, Land Registry fees and legal fees add further costs. Buyers should budget for total acquisition costs - taxes, notary, registry and legal fees - of between 10% and 15% of the purchase price, depending on the Autonomous Community and the type of property. Sellers should budget for their own legal fees, the plusvalía and any outstanding mortgage cancellation costs.
Many underappreciate the cost of holding Spanish property through a foreign company. Where a non-resident company holds Spanish real estate, it may be subject to the Special Tax on Non-Resident Entities (Gravamen Especial sobre Bienes Inmuebles de Entidades No Residentes) under the Non-Resident Income Tax Law (Ley del Impuesto sobre la Renta de No Residentes). This annual tax applies at 3% of the cadastral value of the property and applies to entities resident in jurisdictions that do not have an effective exchange of information agreement with Spain. Proper structuring of the holding vehicle before acquisition is essential to avoid this charge.
What happens if a seller fails to disclose a planning violation affecting the property?
If a seller knowingly conceals a planning violation that materially affects the property, the buyer may have grounds to rescind the contract and recover the purchase price under the Civil Code';s provisions on error and fraud (Articles 1265-1270). The buyer may also claim damages for losses caused by the concealment. However, the buyer must act promptly: the general limitation period for rescission based on fraud is four years from the date the fraud was discovered. In practice, establishing that the seller had actual knowledge of the violation requires evidence, and disputes of this kind are fact-intensive. Buyers who discover violations after completion should obtain a technical and legal assessment immediately to understand the nature of the violation, whether it is time-barred and what remedies are available.
How long does a property dispute typically take to resolve in Spain, and what are the approximate costs?
First-instance civil proceedings in Spain currently take between eighteen months and four years in major jurisdictions, depending on the court';s caseload and the complexity of the case. Appeals to the Provincial Court add a further one to two years. Legal fees for contentious property litigation typically start from the low thousands of euros for straightforward matters and rise substantially for complex multi-party disputes involving expert evidence. Court fees (tasas judiciales) apply to companies but not to individuals in most civil proceedings. Mediation, where feasible, can resolve disputes in a matter of months at a fraction of the litigation cost, but requires the cooperation of both parties. Arbitration under a pre-agreed clause can offer a faster and more confidential process, typically resolving within twelve to eighteen months.
Should a foreign buyer purchase Spanish property in their own name or through a company?
The answer depends on the buyer';s objectives, tax residence, the intended use of the property and the holding period. Purchasing in a personal name is simpler and avoids ongoing corporate compliance costs, but exposes the buyer to Spanish inheritance tax (Impuesto sobre Sucesiones y Donaciones) on the Spanish asset, which can be significant for non-residents depending on the Autonomous Community. Purchasing through a Spanish company (Sociedad Limitada or Sociedad Anónima) provides a degree of structural flexibility and may facilitate future sale of the asset through a share transfer rather than a property transfer, potentially reducing transfer taxes. Purchasing through a foreign company introduces the risk of the Special Tax on Non-Resident Entities if the jurisdiction does not have an adequate exchange of information agreement with Spain. Each structure carries distinct tax, liability and succession implications, and the optimal choice requires analysis of the buyer';s specific circumstances before the transaction is signed.
Spain';s real estate and construction legal framework rewards careful preparation and penalises shortcuts. The combination of national, regional and municipal layers of regulation, strict limitation periods and significant tax obligations means that errors made early in a transaction are often impossible to correct without cost. Buyers, sellers and developers who invest in proper legal and technical due diligence before committing to a transaction consistently achieve better outcomes than those who treat legal advice as an afterthought.
To receive a checklist for structuring a real estate or construction matter in Spain, send a request to info@vlolawfirm.com.
Our law firm VLO Law Firms has experience supporting clients in Spain on real estate and construction matters. We can assist with due diligence, contract negotiation, permit compliance, off-plan purchase protection, construction defect claims and property litigation before Spanish courts. To receive a consultation, contact: info@vlolawfirm.com.