Skip to content
Compare lawyers

Home›Buying Property in Spain›Buying With Tenants, Occupants or Debts

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.

⚠️

Short answer. You can buy a property with tenants in Spain, but you take over the lease. For a home, you must respect it for at least the first five years, or seven if the landlord is a company, even as a registered buyer. The tenant must be offered the right to buy first. Squatters remain your problem after completion, and unpaid IBI and community fees stay attached to the property.

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).

Tanteo: 30 calendar days

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.

Retracto: 30 calendar days after the sale

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.

Proof at the Land Registry

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

Assuming a sale ends the lease

It does not. A residential tenant is protected for at least five years, or seven with a company landlord.

Skipping the tenant’s notice

Without proof of notice the deed cannot be registered, and the tenant can claim the sale afterwards.

Trusting a cheap occupied property

The discount buys you a court case with no fixed end date.

Relying on the nota simple alone

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.

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.

Find a Lawyer →

Legal disclaimer: General information only, not legal advice. Property Lawyers is a directory, not a law firm. Lease and eviction rules changed in 2025 and 2026 and depend on the dates and terms of each contract. Get advice for your own situation.

admin – property lawyers logo
Written by: Sophie Gutenberg

Related Posts

Buying an Older Flat in Barcelona: ITE, Cèdula and the Asbestos Certificate (2026)

What to check before buying a flat in an older Barcelona building: the ITE and...

Renting in Palma Before You Buy: Rental Laws in Mallorca (2026)

Renting in Palma before buying a home in Mallorca: the 2026 rental rules for expats,...

Empadronamiento: How to Register on the Padrón at Your Spanish Town Hall

Register on the padrón at your Spanish town hall: who must register, documents, volante vs...

Join property lawyers

Become a partner

Are you a professional Lawyer in Spain and want to promote your firm?
Submit your firm today