It is common for property owners to decide to sell a home even if it is rented. This situation raises many questions, especially regarding the tenant’s rights. Can the landlord show the property to potential buyers? Can the contract be terminated early? Below, we answer these and other key questions.
Can a property be sold with a rental contract in effect?
Yes. The Urban Leases Act (LAU) allows the sale of a home even if there is an active lease contract. The owner can start the sales process at any time but is required to inform the tenant in advance and through legal means (e.g., via burofax).
In addition, the contract must remain under the same conditions after the sale, unless the new buyer and the tenant agree otherwise.
Is the tenant obligated to allow visits?
No. Although it is common for buyers to want to visit the property before purchasing, the tenant may refuse. The owner has no right to enter the property without authorization or to impose visits.
According to the Spanish Constitution, the home is inviolable. Access is only possible with the resident’s consent or by court order.
Therefore, to show the property, both parties must reach an agreement.
Is the contract maintained after the sale?
Yes. If the property is sold, the new owner assumes the current rental contract until its expiration. This is regulated by the LAU and protects the tenant.
There is only one exception: if the contract is not registered in the Land Registry and the new owner needs the property for personal use. In this case, the tenant must vacate the property within three months of notification, although they may be entitled to compensation.
Can the owner terminate the contract early?
No. The owner cannot unilaterally terminate the contract before the agreed date, unless certain special conditions are met:
- That an early termination clause is included in the contract.
- That the owner needs to reclaim the property for personal use (and can legally justify it).
- That both parties reach a voluntary agreement, which may include compensation for the tenant.
Does the tenant have priority to buy the property?
Yes. The LAU grants the tenant the right of first refusal, which allows them to match a third party’s offer to purchase the property before anyone else.
Furthermore, if the owner does not respect this right and sells the property to another person at a lower price, the tenant can exercise the right of withdrawal and purchase it themselves under the new conditions.


