Buyer Risk · Due Diligence · Checked 28 November 2026
Buying a Property With Tenants, Occupants or Debts in Spain
What happens to a lease when the property is sold, the tenant’s right to buy first and the October 2026 changes to it, the legal routes against squatters, and the debts that stay attached to the property after completion.
Can you buy a property that has a sitting tenant?
Yes, but you step into the landlord’s shoes. Under article 14 of the Urban Leases Law (Law 29/1994), the buyer of a let home takes over the landlord’s rights and obligations for the first five years of the lease, or seven if the previous landlord was a legal entity, even if the buyer is protected as a registered purchaser in good faith.
What that means in practice:
- Short leases still run to five or seven years. Under article 9, if the agreed term is shorter, the tenant can extend year by year until the minimum is reached. Buying the property does not end those extensions.
- Longer leases can bind you for the full term. If the agreed term is longer than five or seven years, you are bound for all of it, unless you meet the registry protection of article 34 of the Mortgage Law. In that case you only have to respect the lease until the five or seven years are up, and the seller must compensate the tenant with one month’s rent for each remaining year.
- A clause saying the lease ends on sale does not get you out early. Even then, you must tolerate the tenancy until the five or seven years have passed.
- You inherit the deposit obligation. The legal deposit is one month’s rent for a home and two for other uses (article 36). As the new landlord you will have to return it, so make sure it is accounted for at completion.
Shops, offices and seasonal lets are leases “for a use other than housing”. For these, article 29 says the buyer takes over the lease unless they meet the article 34 registry protection, which usually depends on whether the lease was registered. Royal Decree-law 29/2026, published in the BOE in October 2026, also tightens the rules on seasonal lets of homes, so a lease labelled “seasonal” can turn out to be a protected residential one. Ask your lawyer to review the real purpose and dates of any seasonal lease before you buy.
| Who is in the property | Are you bound after buying? | Main rule |
|---|---|---|
| Tenant with a residential lease | Yes, at least for the first 5 years (7 if the landlord was a company) | Urban Leases Law, articles 9 and 14 |
| Tenant of a shop, office or seasonal let | Yes, unless you are a protected registered buyer and the lease was not registered | Urban Leases Law, article 29 |
| Occupant with no title (squatter) | No right to stay, but removing them takes a court process | Criminal Code, articles 202 and 245; Civil Procedure Law, article 250.1.4 |
| Seller still living there | No, if the contract sets a handover date | Your contract; insist on vacant possession at completion |
Does the tenant have the right to buy first?
Yes. Article 25 of the Urban Leases Law gives a residential tenant a preferential right to buy: first refusal before the sale (tanteo) and, if that is not respected, a right to take over the sale afterwards (retracto).
The seller must formally notify the tenant of the decision to sell, the price and the essential conditions. The tenant has 30 calendar days from the day after notification to match the offer. The notice loses its effect 180 calendar days after it is given.
If the tenant was not notified, or the real price or conditions were better than notified, the tenant can step into the sale on the same terms. The 30 days run from the day after the buyer formally delivers a copy of the deed to the tenant.
The registry will not register the sale of a let home without proof that the notices were given. If the home is not let, the seller must declare that in the deed, and a false declaration is a criminal offence.
What changed in October 2026. Royal Decree-law 29/2026, published in the BOE in October 2026, amended the law so that the tenant’s preferential right can no longer be waived by agreement, and is not lost when the home is sold together with other homes or a whole building, as long as it can be legally separated. If you are buying a let home whose lease includes an older waiver, ask your lawyer how the decree’s transitional rules apply before you rely on it.
A business premises tenant has a similar right under article 31. Either way, a retracto claim can unwind your purchase months after completion, so build the tanteo period into your timetable and make the deposit contract (arras) conditional on it expiring.
What if the property is occupied by squatters?
You become the owner of the problem. The occupants have no right to stay, but you must use a criminal or civil court route to remove them, and buying the property does not speed that up.
- Criminal route. Occupying someone’s home is the offence of breaking into a dwelling (allanamiento de morada, article 202 of the Criminal Code). Occupying a property that is not a dwelling is usurpation (article 245). Since April 2025, Organic Law 1/2025 sends both offences through the fast-track criminal procedure.
- Civil route. Article 250.1.4 of the Civil Procedure Law gives owners who are individuals, non-profit entities and public bodies with social housing a summary claim to recover possession. If they ask for immediate handover, the occupants have five days to show a title; if they cannot, the court orders eviction.
- Vulnerable occupants. The court notifies social services, and if they confirm vulnerability the process can be suspended for up to two months for an individual owner or four for a company. Royal Decree-law 29/2026 extends the protection for vulnerable households in some cases, so ask your lawyer how it applies to the property.
Two points follow for buyers. A company buyer cannot use the faster civil claim for individuals, which matters if you are thinking of buying through a company. And a discounted occupied property carries real time and cost risk that no lawyer can remove in advance. Read our explainer on what ocupación ilegal means in Spain before you make an offer.
Which debts stay with the property after you buy?
Registered charges, unpaid IBI property tax and unpaid community fees can all be enforced against the property, whoever owns it.
- IBI property tax. Under article 64 of the Local Finance Law, when a property changes hands it remains bound to pay the full IBI tax debt, as a subsidiary liability under the General Tax Law. Notaries must request information on outstanding IBI and warn the parties in the deed. Tax debts are generally time-barred after four years under article 66 of the General Tax Law, so that is the realistic exposure.
- Community fees. Article 9.1.e of the Horizontal Property Law makes the property answer for the previous owners’ unpaid fees for the part of the current year already due plus the three previous calendar years. Insist on the community’s debt certificate at completion.
- Mortgages and embargoes. Registered mortgages and court or tax embargoes follow the property. They should be paid off from the price and cancelled at completion, with the cancellation registered.
For a step-by-step method, see how to verify property debts in Spain.
What does the nota simple show, and what does it miss?
The Nota Simple (land registry extract) shows the registered owner and registered charges, such as mortgages, embargo notes, usufructs, easements and registered leases. It does not show unregistered leases, occupants, IBI arrears or community debts.
That gap is the point of this guide: residential leases are often not registered, and squatters never are. Ask for an updated extract just before signing, and pair it with the lease, the debt certificate, IBI receipts and a physical visit. See our guide to reading a Spanish land registry search.
How can you protect yourself before you sign?
- Get the lease, any extensions and proof of rent paid, and confirm the start date, term and deposit.
- Confirm the tanteo notice was sent and its 30 days have run, or make completion conditional on it.
- Visit the property and check who is actually living there, whatever the paperwork says.
- Obtain the community debt certificate and the latest IBI receipts.
- Retain amounts at the notary for any debt found, and make vacant possession a condition if you are not buying an investment with a tenant.
Common mistakes
It does not. A residential tenant is protected for at least five years, or seven with a company landlord.
Without proof of notice the deed cannot be registered, and the tenant can claim the sale afterwards.
The discount buys you a court case with no fixed end date.
It will not show the tenant, the squatter or the unpaid community fees.
Frequently asked questions
Can you evict a tenant after buying a property in Spain?
Not simply because you bought it. The buyer of a let home must respect the lease for at least the first five years, or seven if the previous landlord was a company, and for longer if the agreed term is longer and the buyer lacks registry protection.
What is a sitting tenant in Spain?
A tenant who stays in the property when it is sold. The buyer takes over the landlord’s rights and obligations under the existing lease, including returning the deposit at the end.
Does a tenant have the right to buy first in Spain?
Yes. A residential tenant must be notified of the price and conditions and has 30 calendar days to match them. Since Royal Decree-law 29/2026 (October 2026), that right can no longer be waived by agreement.
Can I buy a property with squatters in Spain?
Yes, but you take on the occupation. You will need a criminal or civil court process to recover possession, and courts can suspend evictions of vulnerable occupants in some cases.
Do unpaid IBI and community fees pass to the buyer?
They stay attached to the property. The property remains bound to pay outstanding IBI, and it answers for unpaid community fees for the part of the current year already due and the three previous calendar years.
Does the nota simple show tenants and debts?
Only registered ones. It shows mortgages, embargoes and registered leases, but not most tenancies, occupants, IBI arrears or community debts.
Sources and methodology
Checked on 28 November 2026 against the official sources below. Lease law changed by decree-law in October 2026, and the transitional rules for existing leases depend on each contract’s dates. Regional housing law can add obligations. Confirm the position for your case with a lawyer before relying on it.
- Law 29/1994 on Urban Leases (BOE, consolidated), articles 9, 14, 25, 29, 31 and 36
- Royal Decree-law 29/2026 on the social function of housing (BOE)
- Mortgage Law (BOE), article 34
- Law 1/2000 on Civil Procedure (BOE), articles 250.1.4 and 441
- Criminal Code (BOE), articles 202 and 245
- Organic Law 1/2025, fast-track trials for occupation offences (BOE)
- Local Finance Law, consolidated text (BOE), article 64
- General Tax Law 58/2003 (BOE), article 66
- Law 49/1960 on Horizontal Property (BOE), article 9
Buying a let or occupied property?
An independent, English-speaking lawyer can review the lease, check the tenant’s notice and the debts, and set the conditions that protect your deposit.
Sophie Gutenberg is a legal content specialist focused on Spanish property law, real estate transactions, conveyancing, due diligence and tax issues affecting international property buyers in Spain. She works alongside qualified Spanish property lawyers .