Renting & housing

My Landlord Is Selling My Rented Flat: What Happens to My Contract?

By the AbogadoAI editorial team · Updated 18 July 2026 · 12 min read

🇪🇸 Read the original in Spanish

The sale of a rented property is one of the situations that generates the most uncertainty in the Spanish real estate market. Many tenants, upon receiving the news that their landlord wants to sell the property, fear finding themselves on the street overnight or suffering a drastic change in their living conditions. However, Spanish legislation, structured mainly around the Ley de Arrendamientos Urbanos (LAU) (Urban Leasing Act), offers a robust protection framework for the tenant, although the final outcome will depend on key factors such as the date the contract was signed and its registration in the Registro de la Propiedad (Property Registry). Below, we analyze in depth what happens to your rental contract if they sell your flat, what your rights are, and how you should act step-by-step.

To understand what happens when a rented home is sold, we must look to the Ley 29/1994, de 24 de noviembre, de Arrendamientos Urbanos (LAU). This law has undergone various reforms over the years, the most recent and significant being the one introduced by the Ley 12/2023, de 24 de mayo, por el derecho a la vivienda (Right to Housing Act).

The general principle governing the Spanish legal system is that the buyer of a rented home must respect the current rental contract, subrogating themselves to the rights and obligations of the seller (the former landlord). However, the application of this principle varies depending on the date the contract was formalized.

1. Contracts Signed From March 6, 2019 (Current Regime)

If your rental contract was signed on or after March 6, 2019, you are under the umbrella of the current regulation. Article 14 of the LAU clearly establishes that the buyer of a rented home is subrogated to the rights and obligations of the landlord during the first 5 years of the contract's validity (or 7 years if the previous landlord was a legal entity/company).

This means that, *even if the rental contract is not registered in the Registro de la Propiedad**, the new buyer is obliged by law to respect it and keep you as a tenant under the same conditions (rent, fianza* [security deposit], duration) until the minimum term of 5 or 7 years is met.

If the contract was agreed for a duration exceeding those 5 or 7 years, and the new buyer meets the requirements of *Article 34 of the Ley Hipotecaria (Mortgage Act) (a good-faith buyer who registers their title), the buyer is only obliged to tolerate the lease until that minimum term is met. For the remaining contract time, the seller must compensate the tenant with an amount equivalent to one month's rent for each year of the contract left to be fulfilled* (provided that such compensation was agreed upon in the contract).

2. Contracts Signed Between June 6, 2013 and March 5, 2019

During this period, the reform of the LAU promoted in 2013 was in force, which was much less protective of the tenant. In these cases, if the rental contract *was not registered in the Registro de la Propiedad** before the home was sold, the new buyer (provided they acted in good faith) had the right to terminate the rental contract (applying the Civil Code principle of "venta quita renta"* [sale defeats lease] from Article 1571).

If the buyer decides to terminate the contract, the tenant has a period of 3 months from the time they are notified of the sale to vacate the property, and can demand compensation from the seller for the damages caused.

The Tenant's Preferential Rights: Right of First Refusal (Tanteo) and Redemption (Retracto)

When the owner decides to put the property up for sale, the tenant is not a mere spectator. Article 25 of the LAU grants them the right of preferential acquisition, which is divided into two distinct phases or rights: the right of tanteo (first refusal) and the right of retracto (redemption).

The Right of Tanteo

This is the tenant's right to buy the home before anyone else, matching the conditions and price that the owner has agreed with a third party.

The Right of Retracto

If the owner sells the property to a third party without giving prior notification to the tenant, or if they do so by misrepresenting the actual price or conditions of the sale, the tenant can exercise the right of retracto.

> Important Exception: The right of tanteo and retracto can be waived by the tenant in the rental contract itself (which is a very common clause). However, even if this right has been waived, the landlord is still obliged to communicate their intention to sell the property to the tenant at least 30 days prior to the date the sale is formalized.

Step-by-Step Practical Steps: What Should You Do If Your Landlord Sells the Flat?

If you find yourself in this situation, it is essential to remain calm and act with legal rigor. Follow these chronological steps to protect your rights:

  1. Review the date of your rental contract: Locate your physical or digital contract and check the exact date of signing to determine which version of the LAU applies to you (before or after March 6, 2019).
  2. *Check the Registro de la Propiedad: Request a Nota Simple* (property registry extract) of the property from the Property Registry to verify if your rental contract is registered (something uncommon in standard residential leases, but crucial if your contract is prior to 2019).
  3. Analyze the sale notification: When the landlord communicates their intention to sell, check if the document includes the sale price and the conditions of the transaction. Verify if you expressly waived the right of tanteo and retracto in your contract.
  4. *Decide if you want to buy (exercise the tanteo): If you have the financial capacity and are interested in the property, you have 30 calendar days to respond by burofax* (certified registered mail) stating your desire to acquire the home under the offered conditions.
  5. Demand the identification of the new owner: Once the sale is completed, the new owner must reliably notify you of the acquisition. You have the right to demand a simple copy of the purchase deed to know the identity of the new landlord and the bank account number where you must pay the rent from that moment on.
  6. Do not sign a new contract if it does not suit you: The new owner cannot force you to sign a new contract with different conditions (such as a rent increase). Your original contract remains valid, and the name of the landlord simply changes.

Concrete Examples with Real Figures

To illustrate how these rules apply in practice, we analyze two very common scenarios:

Example 1: Contract Signed in 2021 (Full Protection)

Example 2: Contract Without Mandatory Extension and Compensation

Mistakes You Must Avoid

Making mistakes during the property sale process can weaken your legal position or cause you to lose money. Avoid the following mistakes at all costs:

Frequently Asked Questions (FAQ)

Can the new owner raise my rent after the purchase?

No. The new owner is subrogated to exactly the same position as the previous landlord. This means they must respect the conditions agreed in your original contract, including the monthly rent. They can only apply the annual rent updates that were provided for in the contract and always respecting the current legal limits (such as the cap on rent updates of 3% for the year 2024 established by the Right to Housing Act).

What happens if the new owner needs the flat to live in it themselves?

Article 9.3 of the LAU allows the landlord to deny the mandatory extension of the contract if they need the home for themselves or for their first-degree relatives by blood or adoption, or for their spouse in the event of separation or divorce. However, for the new owner to exercise this right, three strict requirements must be met:

  1. At least the first year of the contract's duration must have elapsed.
  2. This possibility of recovering the home due to necessity must have been expressly included in the rental contract.
  3. The new owner must give the tenant at least 2 months' prior notice.

Do I have to show the flat to potential buyers while I am renting?

You are not obliged by law. The rented home enjoys the protection of the inviolability of the home established in the Spanish Constitution. The owner cannot enter the property without your consent, nor can they force you to open the door to visits from real estate agencies or potential buyers. However, it is usually recommended to reach an amicable agreement and set a reasonable visiting schedule in exchange for a good relationship with the landlord.

What happens if my rental contract is "old rent" (renta antigua)?

Contracts entered into before May 9, 1985 are governed by the LAU of 1964 and enjoy a lifetime forced extension regime for the tenant. In the event of the sale of the home, the new buyer is fully subrogated to this old rent contract, being obliged to respect it under exactly the same conditions, with a very strong right of tanteo and retracto in favor of the tenant.

In Summary

General legal information, not personalised legal advice. For your specific situation, ask your question for free at AbogadoAI — answers grounded in Spanish law (BOE), in English.

Have a specific legal question?

Ask AbogadoAI and get an answer based on Spanish law (BOE), with sources — in English.

Ask for free

This is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.