You have settled in, the lease is running, and then a message arrives: the owner is selling. It happens often in Barcelona and along the Maresme, where flats and villas that have been held for years change hands. Spanish law is unusually kind to the sitting tenant here. The sale does not throw you out, and in most cases you get first shot at buying the place yourself. What actually matters is the notice, the timing and a couple of documents. Here is how it works.
The starting point is in the Ley de Arrendamientos Urbanos. Article 14 says a sale does not extinguish an existing lease. The buyer simply steps into the seller's shoes and becomes your landlord, with the same contract, the same rent and the same end date. Nobody can hand you two weeks' notice to leave just because the title changed hands. If you hold a five-year lease under the current rules, the new owner inherits it whole. This one paragraph kills most of the fear that a sale stirs up.
Article 25 of the LAU gives a sitting tenant in a home a preference right to buy, known as tanteo y retracto. Tanteo means the owner must tell you the price and conditions before selling to anyone else, so you can match the offer. Retracto means that if the sale goes through without proper notice, you can step in afterwards and buy on the same terms. It applies to housing, not to premises leased for other uses. If you are not interested, the owner is free to sell, but the duty to inform you first still stands.
The owner has to notify you in writing, usually by burofax or through a notary, stating the price and the rest of the deal. In the standard case you have 30 calendar days to decide whether to exercise tanteo. If the sale completes without the notice, your retracto window is generally 30 days, counted from when you learn the details or from the sale being recorded at the Registro de la Propiedad. Miss the window and the right lapses. That is why a legal letter about the flat deserves to be read the week it arrives, not the month after.
Most tenants do nothing, and that is fine. The sale goes ahead, a new name appears on the contract, and life carries on. The rent does not jump because of the sale; any increase still follows the same limits as before. Your fianza stays tied to the contract, though it is good practice to get written confirmation of who now holds it. Access for the buyer's visits, the notary or a valuation has to be arranged with you, not imposed on you. If a valuer or a photographer needs to come in, you agree a time.
A new owner cannot simply cancel a housing lease because they want the flat for themselves. The exceptions are narrow and specific, such as the recovery rules for an owner who needs the home as a permanent residence, and even those have to be invoked correctly and in time. Outside those cases you stay until the contract ends. If the fixed term has run out and you are in the yearly extension phase, the notice an owner must give is tighter than most people assume, so check your dates before you accept any deadline you are handed.
Three things protect you. Keep proof of what you pay each month, because a clean paper trail is what a court looks at. Put questions to the seller and the agency in writing, including the asking price if you may want to use tanteo. And check the registered title with a Nota Simple, so you know who actually owns the property today. If the numbers are large, an hour with a lawyer costs far less than a mistake. We help tenants and owners in Barcelona and the Maresme work through exactly this and can point you to the right questions before a signature.