The Urban Leasing Law, modified by Royal Decree Law 7/2019 of March 1, establishes some general conditions regarding the duration of the contract, such as the following:
The duration of the lease will be freely agreed by the parties. If this is less than five years, or less than seven years if the lessor is a legal person, when the contract expires, it will be obligatorily extended for annual installments until the lease reaches a minimum duration of five years, or seven years. years if the lessor is a legal entity, unless the lessee informs the lessor, at least thirty days prior to the date of termination of the contract or any of the extensions, his desire not to renew it.
The term will begin to count from the date of the contract or from the placing of the property at the disposal of the lessee if this is later. Proof of the date of availability will correspond to the lessee.
Leases for which no term of duration has been stipulated or this is indeterminate, without prejudice to the right of annual extension for the lessee, in the terms resulting from the previous section, will be understood as concluded for one year.
Once the first year of the contract has elapsed and provided that the lessor is a natural person, the mandatory extension of the contract will not proceed when, at the time of its execution, the need for the lessor to occupy the leased dwelling before five years have elapsed in order to use it as a permanent dwelling for himself or his relatives in the first degree of consanguinity or by adoption or for his spouse in the event of a final judgment of separation, divorce or marriage annulment.
To exercise this power to recover the dwelling, the lessor must notify the tenant that he needs the rented dwelling, specifying the cause or causes among those provided for in the previous paragraph, at least two months before the date on which the housing is going to be needed and the tenant will be obliged to deliver the leased property within said period if the parties do not reach a different agreement.
If after three months from the termination of the contract or, as the case may be, from the effective eviction from the dwelling, the landlord or his relatives in the first degree of consanguinity or by adoption or his spouse had not proceeded in the event of a final judgment of separation, divorce or marriage annulment to occupy this by itself, depending on the case, the tenant may choose, within a period of thirty days, between being reinstated in the use and enjoyment of the leased dwelling for a new period of up to five years, respecting , in the rest, the existing contractual conditions at the time of termination, with compensation for the expenses that the eviction of the dwelling would have entailed up to the time of reoccupation, or be compensated for an amount equivalent to one month for each year that remain to be fulfilled until completing five years, unless the occupation had not taken place due to force majeure, understood as such, the impediment caused by those suc those expressly mentioned in regulations of the rank of Law to which the character of force majeure is attributed, or others that could not have been foreseen, or that, foreseen, were unavoidable.
If the expiration date of the contract, or any of its extensions, after at least five years have elapsed, or seven years if the lessor is a legal entity, neither party has notified the other, at least four months in advance of that date in the case of the lessor and at least two months in advance in the case of the lessee, their wish not to renew it, the contract will be obligatorily extended for annual terms up to a maximum of three more years, except that the lessee informs the lessor one month prior to the termination date of any of the annuities, his desire not to renew the contract.