Hidden Defects in Home Purchase: From the Civil Code to “Lack of Conformity” in Catalonia

23 de March de 2026

The purchase of a home can be overshadowed by the appearance of unexpected problems: dampness that emerges after the first rains, faults in the installations, or even structural deficiencies that were not visible during previous visits. These are known as “hidden defects,” material flaws that can turn an exciting investment into a complex legal and economic problem.

In this situation, it is essential for the buyer to understand their rights and the legal tools available to them. Specialized advice in real estate law allows identifying the applicable regulations and determining the most effective strategy to protect the affected buyer’s interests.

At Boltas Boyé Abogados, our experience in hidden defect claims has shown us that buyer protection varies significantly depending on whether the sale is governed by the Spanish Civil Code or by the specific regulations of the Civil Code of Catalonia. This guide analyzes both systems and explains how to act when defects appear in a recently acquired home.

The Spanish Civil Code regime: warranty for hidden defects

Traditionally, the Spanish Civil Code protects the buyer through the concept of “warranty for hidden defects,” regulated in articles 1484 and following. This centuries-old system establishes the seller’s liability for material defects affecting the transferred property.

Requirements to claim for hidden defects

For a defect to be claimed under the protection of the warranty for hidden defects, it must meet three key requirements established by Supreme Court jurisprudence:

Be hidden: The defect must not be obvious or visible at the time of purchase. It cannot be an evident problem that the buyer could have detected through an ordinary inspection of the property. Jurisprudence considers that the buyer has a duty to examine the property with the normal diligence of a prudent person, without needing to perform exhaustive technical inspections except in special circumstances.

Be serious: The defect must render the property unfit for its intended use or reduce its value to such an extent that, had the buyer known about it, they reasonably would not have acquired it or would have paid a significantly lower price. Not every minor defect constitutes a claimable hidden defect. Courts assess the magnitude of the defect in relation to the type of property, its age, and the price paid.

Be pre-existing: The defect must exist at the time of sale, even if it manifests later. Claims do not proceed for damage or deterioration occurring after transfer of ownership due to causes unrelated to the original state of the property. The burden of proving the pre-existence of the defect falls on the buyer, frequently through expert reports.

Actions available to the buyer

If these three cumulative requirements are met, the Civil Code grants the buyer two alternative actions:

Redhibitory action (article 1486 CC): Allows the buyer to withdraw from the contract, returning the property to the seller and recovering the price paid plus expenses incurred. This action implies total resolution of the sale, returning the parties to their previous situation. The seller must return the full price plus legal interest from the moment of payment.

Quanti minoris action (article 1486 CC): Empowers the buyer to request a proportional price reduction based on the decrease in value caused by the defect to the property. This action is preferable when the buyer wishes to retain the property but considers they paid an excessive price due to the hidden defect. The reduction is determined through expert assessment, comparing the value of the property without defects with its actual value affected by them.

The timing problem: six-month limitation period

The main drawback of the hidden defects warranty system lies in the extremely short period to exercise these actions. Article 1490 of the Civil Code establishes a six-month limitation period from delivery of the property.

This extremely short period has been criticized by legal doctrine and generates significant practical problems. Many serious defects do not manifest until a more prolonged period has passed: dampness appearing with the first autumn rains if the purchase was made in spring, climate control problems only detected with prolonged use, or foundation deficiencies requiring time to become evident.

After this six-month period expires, the buyer definitively loses the possibility of claiming through these specific actions, although they might attempt other legal avenues if exceptional circumstances exist.

The jurisprudential solution: the aliud pro alio doctrine

Aware of the rigidity of the six-month period and the injustices it can generate, Spanish courts have developed a jurisprudential doctrine known as aliud pro alio (“one thing for another”). This judicial construction significantly expands buyer protection in certain situations.

Foundation of the doctrine

The aliud pro alio doctrine applies in cases of defects so serious that it is considered the seller has not delivered the agreed property, but something substantially different and unfit for its essential purpose. In these exceptional situations, this is not technically referred to as a hidden defect, but as total breach of contract or delivery of a different thing.

The difference is crucial: while a hidden defect is subject to the six-month limitation period, breach of contract is governed by general prescription periods, which are much longer (five years according to article 1964 of the Civil Code).

Application scenarios

A paradigmatic example would be a property with serious structural problems compromising its safety and habitability: major cracks in the structure, foundation problems affecting building stability, or construction deficiencies making the property dangerous for its occupants.

Jurisprudence has also applied this doctrine to cases of properties with widespread dampness preventing normal use, completely defective electrical or plumbing installations requiring total replacement, or when multiple serious defects occur together making the property unsuitable for habitation.

Advantages for the buyer

When the aliud pro alio doctrine applies, the buyer can:

  • Exercise the action within the general five-year prescription period, instead of the six-month limitation period.
  • Claim breach of the sales contract, requesting its resolution based on article 1124 of the Civil Code.
  • Obtain compensation for all damages derived from the breach, not only restitution of the price.

However, it must be noted that application of this doctrine is reserved for truly exceptional cases. Courts require defects to be of extraordinary seriousness and to convert the property into something radically different from what was agreed. Important defects are not enough: they must be of such magnitude as to make the property unserviceable for its purpose.

The Civil Code of Catalonia: “lack of conformity”

Book Six of the Civil Code of Catalonia, which entered into force on January 1, 2018, introduces a substantially different and more protective system for the buyer, inspired by European consumer protection directives. This new regime abandons the traditional terminology of “hidden defects” to adopt the more modern concept of “lack of conformity”.

The concept of conformity with the contract

Article 621-20 of the Catalan Civil Code establishes that the seller has the obligation to deliver goods that conform to the contract. Goods conform when they:

  • Have the qualities and characteristics expressly agreed between the parties.
  • Are suitable for the special use that the buyer expressed to the seller and that the seller accepted.
  • Are suitable for the normal use of goods of the same type.
  • Present the quality and performance usual for goods of the same type that the buyer can reasonably expect.

This approach is broader and more flexible than the Spanish Civil Code’s hidden defects system. It does not focus exclusively on material defects, but on whether the delivered good responds to what could reasonably be expected according to what was agreed and the circumstances.

Buyer’s remedies system

When the delivered property does not conform to the contract, article 621-37 of the Catalan Civil Code offers the buyer a graduated system of remedies, which must be exercised in the following order:

  1. Specific performance (repair or replacement):

The buyer may first require the seller to repair the defects or, when possible, replace the non-conforming good with one that does conform. This is the priority option, which must be exercised before the others unless it proves impossible or disproportionately costly for the seller.

Repair must be carried out within a reasonable time and without causing significant inconvenience to the buyer. If the seller fails to comply, refuses to repair, or the lack of conformity persists after repair attempts, the buyer may resort to the following remedies.

  1. Price reduction:

If repair is not possible, the seller refuses to carry it out, or the lack of conformity persists after repair attempts, the buyer may request a proportional price reduction. This reduction is calculated by comparing the value the good would have if it conformed with its actual value in the state it is in.

  1. Contract termination:

When the breach is serious or essential, the buyer may terminate the contract, returning the property and recovering the price paid. The Catalan Civil Code considers breach to be essential when:

  • It frustrates the purpose of the contract, causing the buyer to lose the interest they had in the acquisition.
  • The buyer would not have entered into the contract if they had foreseen the lack of conformity.
  • The lack of conformity is so serious that it affects fundamental elements of the good.
  1. Compensation for damages:

The buyer may claim, in addition to any of the previous remedies, compensation for all damages deriving from the lack of conformity. This additional compensation covers expert assessment costs, alternative accommodation costs if the property is uninhabitable, proven economic losses, or any other demonstrated harm.

Liability period: three years

The most notable advantage of the Catalan system compared to the Spanish Civil Code is the seller’s liability period, which is three years from delivery of the good (article 621-41 of the Civil Code of Catalonia).

This substantially longer period than the six months of the Spanish Civil Code allows the buyer sufficient time to detect defects that only manifest with prolonged use of the property or with the passage of seasons.

Additionally, the Catalan Civil Code establishes a presumption favorable to the buyer: if the lack of conformity manifests within the first six months from delivery, it is presumed that the defect already existed at that time, with the seller having to prove otherwise. After those six months, it is the buyer who must prove that the defect was pre-existing.

Specificities in second-hand properties

It is important to note that, both under the Spanish Civil Code regime and the Catalan one, the purchase of second-hand properties presents specific particularities that courts consider when resolving defect claims.

Expected quality standard

Courts understand that certain minor defects may be expected due to use and age of the property. A reasonably informed buyer cannot expect a used property, especially if it is several decades old, to be in the same condition as a new property.

Only defects that exceed normal and foreseeable wear according to the property’s age will be considered hidden defects (in the Spanish Civil Code system) or lack of conformity (in the Catalan system).

Factors assessed by courts

In determining whether a defect is claimable in a second-hand property, courts consider:

  • Property age: The older, the greater the tolerance margin for certain defects.
  • Price paid: A price notably below market value may indicate the buyer assumed the existence of defects.
  • Apparent condition: If the property showed visible signs of age or deterioration, less perfection is required.
  • Information provided: Whether the seller warned about the need for renovations or the state of conservation.
  • Nature of defect: Some problems are more expected in old properties (obsolete installations) than others (serious structural problems).

Buyer’s inspection duty

In used properties, the buyer is required to have a minimum inspection duty consistent with a reasonably diligent person. They cannot claim for defects that were evident through normal observation during visits prior to purchase.

However, the buyer is not required to perform exhaustive technical inspections with specialized professionals, except when special circumstances advise it (signs of problems, very old building, exceptionally low price).

Recommended action when defects appear

When defects appear in a recently acquired property, it is crucial to act quickly and follow an appropriate strategy to preserve the buyer’s rights.

Exhaustive documentation of defects

The first step is to thoroughly document all detected problems:

  • Photographs and videos: Capture dated images of all defects from different angles.
  • Written description: Prepare a detailed list of each problem, indicating its exact location and characteristics.
  • Appearance dates: Note when each defect was detected and whether it has evolved since then.
  • Witnesses: If other people have witnessed the problems, obtain their testimony.

This documentation will be fundamental to prove the existence, seriousness, and pre-existence of defects in a potential judicial proceeding.

Formal notification to the seller

It is essential to formally communicate the defects to the seller as soon as possible. This communication must be made in a verifiable manner:

  • Certified mail with acknowledgment of receipt: Detailing all detected defects and requiring their repair.
  • Notarial notification: In especially serious cases, for greater legal security.
  • Certified email: Through platforms that provide proof of sending and receipt.

Jurisprudence requires that the buyer report defects to the seller within a reasonable time from their discovery. Failure to comply with this communication duty can significantly harm the chances of success of a subsequent claim.

Obtaining expert reports

To determine the nature, seriousness, and cause of defects, it is essential to obtain technical reports from qualified professionals:

  • Technical architect or building surveyor: For structural problems, dampness, construction deficiencies.
  • Certified installers: For defects in electrical installations, plumbing, climate control.
  • Specialized companies: For specific problems such as dampness from capillarity, condensation, leaks.

These reports not only prove the existence and seriousness of defects, but are essential to demonstrate that they pre-existed the purchase, a fundamental requirement for the claim to succeed.

Specialized legal advice

Determining which regulations apply to the specific case (Spanish or Catalan Civil Code), assessing the probabilities of success of the claim, calculating action deadlines, and designing the most appropriate procedural strategy requires specialized legal advice in real estate law.

A lawyer expert in hidden defect claims can:

  • Analyze whether legal requirements to claim according to applicable regulations are met.
  • Assess whether it is more convenient to request repair, price reduction, or contract termination.
  • Manage extrajudicial negotiation with the seller to attempt an amicable solution.
  • Prepare and file the lawsuit if no agreement is reached.
  • Direct the judicial proceeding, coordinating expert evidence and witness statements.

Conclusion: the importance of acting quickly

Hidden defects in a property can turn an exciting acquisition into a legal and economic ordeal. Spanish and Catalan legislation offer protection mechanisms for the affected buyer, but their effectiveness depends on quick, documented, and strategically planned action.

Deadlines for claiming are strict, especially under the Spanish Civil Code regime (six months). Even in Catalonia, where the deadline is more generous (three years), delay in acting can make proving pre-existence of defects difficult or allow the seller to argue they were caused by the buyer’s subsequent use.

Detection of defects, their immediate documentation, formal notification to the seller, and obtaining specialized legal advice constitute the fundamental pillars for effectively defending the buyer’s rights.

Frequently asked questions

What is the main difference between the Spanish and Catalan Civil Codes regarding hidden defects?

The fundamental difference lies in the claim period and remedies system. The Spanish Civil Code establishes a six-month limitation period and offers two actions (termination or price reduction). The Catalan Civil Code grants three years and a more flexible graduated system: first repair, then price reduction or termination, plus compensation in all cases.

Can I claim for minor defects in a second-hand property?

It depends on the magnitude of the defects and circumstances. Courts are more tolerant with used properties, considering that certain minor defects are expected due to use and age. Claims only proceed for defects that exceed normal wear or are especially serious.

What happens if defects appear after six months in a purchase governed by the Spanish Civil Code?

If the defects are of extraordinary seriousness, one might attempt to apply the aliud pro alio jurisprudential doctrine, which allows claiming for breach of contract with a five-year prescription period. However, this doctrine is reserved for exceptional cases where defects make the property radically different from what was agreed.

Can the seller be exempted from liability for hidden defects in the contract?

In sales between private parties, clauses exempting from hidden defects are valid if agreed expressly and specifically, although courts interpret them restrictively. In sales with consumers (individual buyer acquiring for non-professional use), these clauses are null as abusive according to Consumer Law.

Have you detected defects in your recently acquired property?

At Boltas Boyé Abogados, we have over twenty years of experience in hidden defect and construction defect claims. Our team specialized in real estate and construction law offers you:

 

  • Assessment of claim viability
  • Coordination of technical expert reports
  • Extrajudicial negotiation with the seller
  • Specialized judicial representation
  • Advice on applicable regulations (Spanish or Catalan Civil Code)

Contact us at +34 93 212 01 51 or visit our offices at Paseo de Gracia 8-10, Barcelona. Time is crucial in these claims: act now to protect your rights.