It is one of the quiet nightmares of renting abroad. You have settled into your apartment in Spain, you have your routines, your neighborhood, your home and your life there, and then one day the news arrives: the landlord has sold the building. A new owner, a company you have never heard of, perhaps an investment fund with no face and no phone number, now holds the deed to the place you call home. The immediate fear is obvious and sharp: are you about to be thrown out of the home you have built your life around? Can the new owner double your rent, or simply tell you to go? For a foreigner renting in an unfamiliar legal system, where you are not quite sure what rights you have or how to assert them, it can feel as though the ground has shifted under your feet.
The reassuring truth, under Spanish law, is that you are far more protected than you might fear. So here is what actually happens to your lease when your Spanish landlord sells, how long your protection lasts, why registering your contract matters, the surprising right you may have to buy the place yourself, and what to do if it happens to you. By the end, the news that the building changed hands should feel like a formality rather than a threat.
What follows is the short answer, the five-or-seven-year protection, why registration still matters, your right to buy first, and the practical steps to take.
The Short Answer: The Lease Goes With the Building

Here is the single most important thing to know, and it should lower your blood pressure considerably: under current Spanish law, a sale does not break your lease. When the property changes hands, the new owner does not get a fresh start free of you; instead, they step into the shoes of the old landlord, inheriting the existing rental contract along with the building. In the language of Spanish law, the buyer is subrogated into the landlord’s position, which means they take on all the rights and obligations of your lease exactly as they stood, and they must respect it.
In plain terms, the new owner cannot ask you to leave, raise your rent, or change the conditions of your tenancy. Your lease continues, on the same terms, with a new name on the landlord’s side. You keep paying the same rent, now to the new owner once you are properly notified of the change, and life goes on much as before. The envelope goes to a different name, and that, for a protected tenant, is very nearly the whole of it.
This is a genuinely strong protection, and it is the heart of the whole matter: in Spain, when you rent a home as your primary residence, that home comes with a set of rights that travel with the property and bind whoever owns it, so a change of owner is, for a protected tenant, far less dramatic than instinct suggests. The sale is the landlord’s business; your tenancy is yours, and the law keeps the two separate. The building may have a new owner, but you still have your home, on the same terms, for the rest of your protected term.
Five Years, or Seven

That protection is not open-ended, and understanding its limits is where the detail matters. Spanish law guarantees a residential tenant a minimum protected term, and it is during this term that the new owner is absolutely bound to respect your lease. Five years if your original landlord was an individual, seven years if a company. Within that window, the sale of the property simply cannot dislodge you; the buyer must honor your tenancy until the minimum term is complete. It does not matter whether the buyer wants the flat for themselves, or paid a fortune for it, or never intended to take on a tenant; they bought the building with you in it, and the law holds them to that.
The arithmetic is worth spelling out, because it is reassuring. The protected period runs from the start of your tenancy, so if you have been renting for two years from an individual when the property is sold, the new owner must respect your lease for at least three more years, to complete the five. If you have just moved in, you have nearly the whole five or seven years of protection ahead of you, which is as secure as a Spanish tenancy gets. The newer your tenancy, the more runway of protection you hold.
This is the result of a significant reform to Spanish rental law in 2019, which strengthened tenant protection precisely on this point, establishing that the buyer must respect the lease regardless of whether the contract is registered anywhere, closing a loophole that had previously left some tenants exposed. So within your five or seven years, you can treat a change of ownership as largely a paperwork event, a new landlord to pay but no threat to your right to stay. The clock that matters is the one that started when you moved in, and until it runs out, the law is firmly on your side. A new deed on the building does not reset that clock or shorten it by a single day.
Why You Should Still Register Your Lease

There is an important nuance beyond the mandatory minimum, and it is the one place where a tenant can still be caught out, so it is worth understanding even though it will not affect most renters. The strong protection just described, binding the buyer regardless of registration, applies within the five or seven year minimum. If your contract runs longer than that minimum, say you signed a ten-year lease, the protection for those extra years is not automatic against a new buyer, and here an old principle can resurface: a buyer who purchases in good faith, genuinely unaware of your tenancy, may not be bound by the portion of your lease beyond the mandatory minimum unless your contract is registered.
The solution is simple and cheap: register your lease at the Property Registry, the Registro de la Propiedad.
A registered lease is a matter of public record, which means no buyer can claim to have been unaware of it, and it binds any new owner fully, including for any term beyond the five or seven year minimum. Registration costs only a modest sum, in the region of a few tens of euros, and gives you the strongest possible protection, yet the large majority of Spanish rental contracts are never registered, because within the mandatory minimum most tenants are protected anyway and few think to do it. It is one of those small, cheap safeguards that almost no one uses until they wish they had. For a typical renter on a standard contract, staying within the five or seven years, registration is not essential, which is why so few bother. But knowing the option exists, and what it buys, lets you make the choice deliberately rather than by default. But if your lease is long, or you simply want the maximum security that your right to stay cannot be challenged by a future buyer, registering it is one of the smartest and cheapest pieces of protection available to a tenant in Spain, and well worth the small effort.
The Right to Buy It First

Here is a right that often surprises foreign renters entirely: when your landlord decides to sell, you, the tenant, generally have the first right to buy the property yourself. Under the Spanish Urban Leases Act, a residential tenant enjoys what is called the derecho de tanteo, the derecho de tanteo, a right of first refusal of their intention to sell and of the price and conditions on offer, and you then have a window, thirty days, to match that offer and buy the home yourself before it is sold to anyone else. The place you are renting cannot simply be sold out from under you to a stranger without you first being given the chance to become its owner.
There is a companion right for when this is not respected. If the landlord sells without notifying you, or sells on different terms to dodge your right, you may have the derecho de retracto, the right of withdrawal, which allows you, within a period after you learn of the sale, to step into the buyer’s place at the same price and acquire the property yourself. Together these rights are a real protection, giving the sitting tenant a genuine shot at ownership rather than leaving them a bystander to the sale of their own home. In a hot market, being first in line to buy the place you already live in can be worth a great deal.
There is, however, a crucial catch that you must check: this right can be waived in the contract, and such a waiver is legal and extremely common, so many Spanish leases include a clause in which the tenant gives it up in advance. Before counting on your right to buy, read your contract, because if you waived it when you signed, the landlord is free to sell to whomever they like without ever offering it to you. If you did not waive it, though, it is a powerful card to hold, one that can turn the sale of your home from a worry into an opportunity to own it.
When You Are Not Protected

Honesty requires naming the situations where this strong protection does not fully apply, because the reassurance above is real but not unlimited, and knowing the edges is part of knowing your position. The clearest limit is time: once your mandatory five or seven year term has run out, you are in weaker territory, and a new owner has more scope to decline to renew, particularly for their own use, so the protection is strongest in your early years and thins as the term nears its end. A tenant deep into a long tenancy is not as untouchable as one who moved in last year.
A few other cases carry less protection. An owner, under specific conditions, can reclaim the property for themselves or close family, but only if that right was stated in the contract, only after the first year, and with proper notice, so it is a narrow door, not a free pass. Contracts dressed up as seasonal or tourist lets, to dodge the residential rules, are a trap the courts often see through, reclassifying a genuine primary residence as a protected long-term lease, but they muddy the water and are worth avoiding. The very old protected tenancies, the renta antigua contracts signed decades ago, are a special world of their own, more protected in some ways yet, as recent high-profile evictions have shown, increasingly squeezed when a building is bought by an investor determined to end them. And contracts signed under earlier versions of the law, before the 2019 reform, can follow different and sometimes weaker rules about sales. None of this undoes the central protection for a normal tenant within their term, but it is the honest fine print: the law is a strong shield, not an impenetrable one, and the time to understand its limits is before you need to.
What to Do If It Happens

If you get the news that your Spanish landlord has sold, the first and most important step is not to panic, because as we have seen, your position is likely far stronger than your instinct fears. Take a breath, then go and find your lease. Check when your tenancy began, which tells you how much of your five or seven year protected term remains, and check who your original landlord was, an individual or a company, which tells you whether that protected term is five years or seven. Within that window, the new owner must respect your contract in full, so your right to stay, at your existing rent and conditions, is secure, and you can say so plainly if the new owner suggests otherwise. Keep paying your rent, redirecting it to the new owner once you are told who they are and how to pay them, and keep the records.
Beyond that, a few sensible moves. Read your contract for any waiver of your right of first refusal, so you know whether you had, and lost, the chance to buy.
Confirm your deposit, the fianza, has been properly transferred to the new owner, as it should be, since you will want it back at the end. If your lease is a long one running beyond the minimum, or you want maximum certainty, consider registering it.
And remember that any clause that tries to reduce the rights Spanish law gives you is simply void, so a new owner waving a document that purports to strip your protections cannot override the law, no matter how official it looks or how firmly it is presented. If in doubt about such a document, that is exactly the moment to get advice rather than to sign or to leave. It is worth adding a note of realism alongside the reassurance: Spain’s housing market is under intense pressure, investment funds are buying up buildings, and while the law protects sitting tenants well within their term, the end of that term, or the special case of the very old protected tenancies, is where tenants can become vulnerable, as recent high-profile evictions have shown. But for the ordinary renter within their protected years, a change of owner is a manageable event, not a catastrophe.
About the Author: Ruben, co-founder of Gamintraveler.com since 2014, is a seasoned traveler from Spain who has explored over 100 countries since 2009. Known for his extensive travel adventures across South America, Europe, the US, Australia, New Zealand, Asia, and Africa, Ruben combines his passion for adventurous yet sustainable living with his love for cycling, highlighted by his remarkable 5-month bicycle journey from Spain to Norway. He currently resides in Spain, where he continues sharing his travel experiences with his partner, Rachel, and their son, Han.
