What happens if your landlord sells the property you rent?

When your landlord informs you of their intention to sell the property, it is common for doubts and concerns to arise. The situation you face when they sell the flat you rent creates uncertainty about staying in the home, the notice period you have, and your legal rights. In Spain, the Urban Tenancies Act (Ley de Arrendamientos Urbanos - LAU) provides clear protection to safeguard tenant stability, although the exact conditions vary depending on the date the tenancy agreement was signed.
Can you be evicted if the property you rent is sold?
The general answer is no. The regulations protect the tenant by preventing the sale of the property from causing the automatic termination of the agreement, except in specific scenarios expressly laid down by law.
Tenancy agreements signed from March 2019 onwards
For primary residence tenancy agreements executed after the legislative reform of 6 March 2019, the law provides a guaranteed protection period of five years if the landlord is an individual, or seven years if the landlord is a legal entity.
If the new buyer acquires the property during this legal minimum period, they automatically step into the shoes of the original landlord by law (subrogation). This means the new owner must assume all rights and obligations under the existing tenancy agreement, maintaining the rent amount, agreed duration, and all other previously agreed terms without altering their conditions.
Entry in the Property Register
Under pre-2019 regulations, protection against third-party buyers required the tenancy agreement to be registered in the Land Registry (Registro de la Propiedad). Today, for current agreements concluded under existing legislation, tenant protection during the first five or seven years applies automatically by operation of law, regardless of whether the tenancy is registered.
Tenant rights when a property is being sold
When you face a situation where they sell the flat you rent, the law grants you a series of protective mechanisms and rights regarding the property.
Right of first refusal and right of redemption (tanteo y retracto)
Unless otherwise agreed in the contract, the tenant holds a right of pre-emption over the property. This right comprises two distinct stages:
- Right of first refusal (derecho de tanteo): The owner is obliged to formally notify the tenant of their intention to sell the flat, specifying the agreed price and key terms of the transaction. The tenant has a period of thirty calendar days from notification to exercise their option to purchase under those identical conditions.
- Right of redemption (derecho de retracto): If the landlord sells the property without giving prior notice, or if the sale takes place at a lower price or under different terms from those communicated, the tenant can exercise the right of redemption to purchase the property, stepping into the buyer's place under the same deed terms.
It is important to review the tenancy agreement, as the law permits the tenant to explicitly waive their right of pre-emption. If such a waiver was signed, the landlord is not required to offer the property to the tenant first, although the obligation to notify them of the sale with adequate advance notice remains.
Inviolability of the home and scheduling viewings
A common source of friction arises when the owner or estate agents ask to access the property to conduct viewings with prospective buyers. Under Article 18.2 of the Spanish Constitution, the home is inviolable.
While the tenancy agreement is in force, the property constitutes the tenant's lawful residence. The landlord has no legal right to enter the property or impose viewings without the explicit prior consent of the tenant. Any arrangements to view the property must be made by mutual agreement between both parties, respecting personal and family privacy.
Comparison between the right of first refusal and the right of redemption
Differences regulated under Article 25 of the Urban Tenancies Act regarding tenant pre-emption rights.
| Mechanism | Timing of exercise | Legal timeframe | Statutory prerequisite |
|---|---|---|---|
| Right of first refusal (tanteo) | Prior to the sale | 30 calendar days | Prior formal notification by the landlord detailing the price and terms of sale. |
| Right of redemption (retracto) | After the sale | 30 calendar days | Lack of prior notice, sale at a lower price, or alteration of communicated terms. |
Mechanism
Right of first refusal (tanteo)
Timing of exercise
Prior to the sale
Legal timeframe
30 calendar days
Statutory prerequisite
Prior formal notification by the landlord detailing the price and terms of sale.
Mechanism
Right of redemption (retracto)
Timing of exercise
After the sale
Legal timeframe
30 calendar days
Statutory prerequisite
Lack of prior notice, sale at a lower price, or alteration of communicated terms.
Regulated under Law 29/1994 of 24 November on Urban Tenancies (LAU).
Fuente: BOE: art. 25 LAU
Legal exceptions allowing early termination of the tenancy
There are specific scenarios where the duration of the lease may be affected prior to its scheduled expiry.
Landlord's personal need clause
The regulations provide that, after the first year of the contract, an individual landlord may refuse the mandatory extension if they require the property as a permanent residence for themselves, for first-degree relatives by blood or adoption, or for their spouse following a final ruling of judicial separation, divorce, or marriage annulment.
To rely on this exception, the possibility must have been explicitly set out in the original tenancy agreement. Furthermore, formal notification must be served on the tenant at least two months before the date the property is required, detailing the grounds invoked. A new buyer can only use this route if they strictly fulfill these statutory requirements and demonstrate genuine unforeseen need.
Mortgage foreclosure proceedings or auctions
Where the sale of the property results from mortgage foreclosure proceedings or court-ordered seizure, the continuation of the tenancy agreement depends on the date the lease was signed and the specific details of the proceedings, strictly adhering to legal criteria established to protect good-faith tenants.
Sale of social housing (VPO)
In the region of Comunidad de Madrid, the sale of properties subject to public housing protection regimes (VPO or VPP) requires compliance with specific regulations, such as maximum sale price caps and regional rights of pre-emption and redemption. If the flat occupied by the tenant holds protected status in Comunidad de Madrid or is undergoing the descalificación process, the transfer of ownership must be managed in accordance with the prior administrative authorisations required by regional regulations.
The investor buyer alternative
In many cases, sale transactions do not aim to vacate the property, but rather to acquire a real estate asset with an immediate return. When they sell the flat you rent to an investor, the transaction often benefits both parties.
For the buyer, keeping a tenant who is up to date with payments eliminates the need to find a new occupant and ensures rental income from the day the deed is signed. For the tenant, the process causes no disruption to daily life, requiring only an update of bank details for monthly rent payments while keeping all contractual terms fully intact.
Professional advice on real estate transactions involving rented properties
Structuring property sales involving tenanted homes from both a legal and commercial standpoint requires strict compliance with consumer protection, tenancy, and civil property laws.
At Sky Real Estate, we conduct our professional practice by offering property services aligned with current legislation. Our work in the sector has been recognised internationally through distinctions awarded at the Sky Law European Legal Awards in 2023, 2024, and 2025. Furthermore, we are officially registered with Banco de España under ICI code D-286, ensuring compliance with required standards in credit intermediation.
If you are a landlord looking to sell a property while maintaining stability for the occupants, structured solutions are available to complete the transaction with full legal security. You can learn more about this service in our section on sale with guaranteed rental.
Frequently asked questions
Does the tenancy agreement remain valid if the property is sold?
Fuente: BOE, art. 14 LAU
What is the tenant's right of first refusal and what is the deadline to exercise it?
Fuente: BOE, art. 25.2 LAU
When does the right of redemption apply in the sale of a rented property?
Fuente: BOE, art. 25.3 LAU
Can the landlord enter the property to show it to buyers without permission?
Fuente: BOE, art. 18.2 CE
What requirements are needed to refuse the contract extension due to the landlord's personal need?
Fuente: BOE, art. 9.3 LAU