Repairs, works, first refusal and termination
Law 29/1994, articles 21 to 28: the landlord’s duty to keep the flat habitable and the tenant’s new right to commission repairs and deduct them from the rent, improvement works and the tenant’s own works, adaptations for disability or age, the tenant’s right of first refusal when the flat is sold — now also in block sales — and the grounds on which either side can end the lease.
Two provisions a landlord should not ignore
Article 21.5 gives the tenant a self-help remedy: where damage affects habitability, safety or health, the tenant can send the landlord a written request with a reasonable quote, and if the landlord does not respond within fifteen calendar days, carry out the repair and deduct its cost from future rent. And article 25 gives the tenant a right of first refusal on any sale of the flat, which the landlord cannot exclude by contract and which now survives a sale of the flat as part of a larger portfolio. A sale that skips the notice can be undone by the tenant buying the flat at the price actually paid.
Chapter IV. Rights and obligations of the parties
Article 21. Upkeep of the dwelling
1. The landlord is obliged to carry out, without the right to increase the rent for doing so, all the repairs necessary to keep the dwelling in habitable condition to serve the agreed use, except where the deterioration whose repair is in question is attributable to the tenant under articles 1,563 and 1,564 of the Civil Code.
The obligation to repair is limited by the destruction of the dwelling for a cause not attributable to the landlord. For this purpose, the provisions of article 28 shall apply.
2. Where the execution of an upkeep work cannot reasonably be deferred until the end of the lease, the tenant shall be obliged to bear it, even if it is very inconvenient for them or they are deprived of part of the dwelling during it.
If the work lasts more than twenty days, the rent must be reduced in proportion to the part of the dwelling of which the tenant is deprived.
3. The tenant must inform the landlord as soon as possible of the need for the repairs contemplated in paragraph 1 of this article, for which sole purpose they must allow the landlord to verify directly, personally or through the technicians the landlord designates, the condition of the dwelling. At any time, and after informing the landlord, the tenant may carry out those that are urgent to avoid imminent damage or serious inconvenience, and demand their amount from the landlord immediately.
4. Minor repairs required by wear and tear from ordinary use of the dwelling shall be borne by the tenant.
RDL 29/2026. Wording introduced by Royal Decree-law 29/2026, in force since 8 October 2026 and pending validation.
5. Without prejudice to paragraph 3, where there is damage or deterioration in the dwelling affecting its habitability, safety or healthiness, or in general repairs of those provided for in paragraph 1 are necessary, the tenant may require the landlord, by written communication, to carry out the necessary repair, attaching a reasonable quote for its execution. The landlord shall have fifteen calendar days from receipt of the request to accept the quote, propose an alternative repair or carry out the repair directly.
Once that period has elapsed without a reply, or in the event of an unjustified refusal, the tenant may carry out the necessary works and deduct their amount from future rents. The cost of the repair must be reasonable and appropriate to the damage and deterioration affecting habitability and healthiness that are to be remedied, and must be documented.
Article 21 bis. Upkeep of the temporary dwelling
RDL 29/2026. Wording introduced by Royal Decree-law 29/2026, in force since 8 October 2026 and pending validation.
The obligation to keep the dwelling in habitable condition to serve the agreed use, as well as the minor repairs required by wear and tear from ordinary use of the dwelling, shall in all cases fall to the landlord. The tenant must inform the landlord as soon as possible after detecting or becoming aware of it, and the landlord shall be obliged to respond within a maximum of five working days, after which, without a reply, the tenant shall be understood to be entitled to carry out the necessary repairs, demanding their amount from the landlord immediately or, failing that, after providing justification to the landlord, deducting their amount from the following month’s rent.
Article 22. Improvement works
1. The tenant shall be obliged to bear the carrying out by the landlord of improvement works whose execution cannot reasonably be deferred until the end of the lease.
2. The landlord who intends to carry out such works must notify the tenant in writing, at least three months in advance, of their nature, start, duration and foreseeable cost. During the period of one month from that notification, the tenant may withdraw from the contract, unless the works do not affect, or affect only insignificantly, the leased dwelling. The lease shall terminate within two months of the withdrawal, during which the works may not begin.
3. The tenant who bears the works shall be entitled to a reduction of the rent in proportion to the part of the dwelling of which they are deprived by them, as well as to compensation for the expenses that the works oblige them to incur.
Article 23. Works by the tenant
1. The tenant may not, without the landlord’s consent expressed in writing, carry out works that modify the configuration of the dwelling or of the accessories referred to in paragraph 2 of article 2. In no case may the tenant carry out works that cause a reduction in the stability or safety of the dwelling.
2. Without prejudice to the power to terminate the contract, the landlord who has not authorised the works may require, at the end of the contract, that the tenant restore things to their previous state or keep the modification made, without the tenant being able to claim any compensation.
If, despite the provisions of paragraph 1 of this article, the tenant has carried out works that have caused a reduction in the stability of the building or the safety of the dwelling or its accessories, the landlord may require the tenant immediately to restore things to their previous state.
Article 24. Tenants with disabilities
1. The tenant, after written notice to the landlord, may carry out inside the dwelling the works or actions necessary for it to be used appropriately and in accordance with the disability or age over seventy, both of the tenant and of their spouse, of the person with whom they permanently live in an analogous emotional relationship, regardless of their sexual orientation, or of their relatives who permanently live with any of them, provided that they do not affect common elements or services of the building or cause a reduction in its stability or safety.
2. The tenant shall be obliged, at the end of the contract, to restore the dwelling to its previous state, if the landlord so requires.
Article 25. Right of first refusal
RDL 29/2026. Wording introduced by Royal Decree-law 29/2026, in force since 8 October 2026 and pending validation.
1. In the event of sale of the leased dwelling, the tenant shall have a right of first refusal over it, on the conditions provided for in the following paragraphs.
2. The tenant may exercise a right of pre-emption over the leased property within thirty calendar days, counted from the day following that on which they are reliably notified of the decision to sell the leased property, the price and the other essential conditions of the sale. Where the dwelling is sold together with other dwellings, premises, properties or assets, the notice must state the price attributed to the leased dwelling and the objective criteria used to determine it.
The effects of the notice provided for in the preceding paragraph shall lapse one hundred and eighty calendar days after it.
3. In the case referred to in the preceding paragraph, the tenant may exercise the right of redemption, subject to article 1,518 of the Civil Code, where the notice provided for has not been given to them or any of the requirements demanded has been omitted from it, including, where applicable, the price attributed to the leased dwelling and the criteria used to determine it, and also where the actual price of the sale attributable to the leased dwelling was lower, or its other essential conditions less onerous. The right of redemption shall lapse thirty calendar days, counted from the day following the notice that the acquirer must reliably give the tenant of the essential conditions on which the sale was made, by delivering a copy of the deed or document in which it was formalised.
4. The tenant’s right of pre-emption or redemption shall have preference over any other similar right, except the right of redemption recognised to the co-owner of the dwelling or the conventional right that was registered in the Land Registry at the time the lease was concluded.
5. To register in the Land Registry the instruments of sale of leased dwellings, it must be shown that the notices provided for in the preceding paragraphs have been given, in their respective cases, with the requirements demanded in them. Where the dwelling is transferred together with other dwellings, premises, properties or assets, the price attributed to the leased dwelling and the objective criteria used to determine it must be stated in the deed. Where the dwelling sold was not leased, for the acquisition to be registrable the seller must so declare in the deed, under penalty of falsification in a public document.
6. Where the sale covers, in addition to the leased dwelling, the other objects leased by the same landlord as accessories of the dwelling referred to in article 3, the tenant may not exercise the rights of first refusal over the dwelling alone.
7. The tenant’s rights of pre-emption and redemption shall not lapse because the leased dwelling is transferred together with other dwellings, premises, properties or assets, provided that the dwelling is legally capable of individualisation.
For these purposes, the price attributable to the leased dwelling shall be that resulting from the proportional distribution of the overall sale price according to objective and verifiable criteria, preferably by reference to the cadastral reference value or, failing that, to an independent valuation. Price allocations whose purpose is to prevent or obstruct the exercise of the right of first refusal shall be ineffective against the tenant.
In cases of joint sale, subsidiarily to the exercise by the tenant, housing legislation may establish the right of pre-emption and redemption, in respect of the whole property, in favour of the body designated by the Administration competent in housing matters, the provisions of the preceding paragraphs applying for the purposes of notice and the exercise of those rights.
If there is only one dwelling in the property, the tenant shall have the rights of pre-emption and redemption provided for in this article.
8. The parties may not agree that the tenant waives the right of first refusal.
Chapter V. Suspension, termination and extinction of the contract
Article 26. Habitability of the dwelling
Where the execution in the leased dwelling of upkeep works, or of works ordered by a competent authority, renders it uninhabitable, the tenant shall have the option of suspending the contract or withdrawing from it, without any compensation.
Suspension of the contract shall entail, until the end of the works, the stopping of the contract term and the suspension of the obligation to pay rent.
Article 27. Breach of obligations
1. Breach by either party of the obligations arising from the contract shall entitle the party that has fulfilled its own to demand performance of the obligation or to seek termination of the contract in accordance with article 1,124 of the Civil Code.
2. In addition, the landlord may terminate the contract by operation of law for the following causes:
a) Failure to pay the rent or, where applicable, any of the amounts whose payment the tenant has assumed or for which the tenant is responsible.
b) Failure to pay the amount of the deposit or its update.
c) Subletting or assignment without consent.
d) Damage wilfully caused to the property, or works not consented to by the landlord where the landlord’s consent is required.
e) Where nuisance, unhealthy, noxious, dangerous or unlawful activities take place in the dwelling.
RDL 29/2026. Wording introduced by Royal Decree-law 29/2026, in force since 8 October 2026 and pending validation.
f) Where the dwelling ceases to be used primarily to meet the housing need of the tenant, or of the person actually occupying it in accordance with article 7.
3. Likewise, the tenant may terminate the contract for the following causes:
a) The landlord’s failure to carry out the repairs referred to in article 21.
b) De facto or legal disturbance by the landlord in the use of the dwelling.
4. In the case of leases of urban property registered in the Land Registry, if it has been stipulated in the contract that the lease shall be terminated for failure to pay the rent and that the property must in that case be returned to the landlord immediately, termination shall take place by operation of law once the landlord has required the tenant, judicially or through a notary, at the address designated for that purpose in the registration, to pay or perform, and the tenant has not replied to the requirement within the following ten working days, or replies accepting termination by operation of law, all through the same judge or notary who made the requirement.
The instrument submitted to the registry procedure, together with the copy of the record of the requirement showing the notification and that it has not been answered by the person required to pay, or has been answered accepting termination by operation of law, shall be sufficient title for cancelling the lease in the Land Registry.
If there are later charges on the lease, it shall also be necessary for its cancellation to evidence reliable notice to their holders, at the address appearing in the Registry, and to evidence the deposit in their favour, before the same notary, of the deposit provided by the tenant.
Article 28. Extinction of the lease
The lease shall be extinguished, in addition to the other causes contemplated in this Title, for the following causes:
a) The loss of the leased property for a cause not attributable to the landlord.
b) A final declaration of ruin ordered by the competent authority.
Where this sits
The next page translates title III on leases for uses other than as a dwelling — offices, shops and other commercial premises — and title IV, on the deposit, the cap on additional guarantees, the end-of-lease inventory and putting the contract in writing.
Related on voixa.es: Spain’s 100% property tax for non-EU buyers: what happened; Modelo 210: the non-resident deadlines changed in 2026.
Nothing here is advice on your own position, and this reading is not the official text. Spain publishes no official English version of this Act; where the wording matters to a decision, read it against the Spanish original linked above.