Voixa Consultors · corporate services in Spain
Catalonia · Right to Housing Act 02

Empty dwellings, unlawful occupation and public pre-emption in Catalonia

Law 18/2007 on the right to housing, selected provisions: the definitions of empty, overcrowded and substandard dwellings; when a dwelling fails its social function; how the administration detects anomalous use and what it can require; the duty of a large holder to act against unlawful occupation that disturbs the building, and the town hall’s power to do it at the owner’s cost; and areas in which the administration has a right of first refusal over whole buildings, individual flats and shares in property companies.

Unofficial English translation by Voixa Consultors S.L. from the Spanish version published in the Official State Gazette. Alexander Baranov is responsible for the translation. Source: Ley 18/2007, de 28 de diciembre, del derecho a la vivienda, consolidated text, last modified 25 March 2026, BOE-A-2008-3657 ↗. The Catalan text published in the DOGC and the Spanish text are both official. Several provisions of this Act have been annulled by the Constitutional Court; those marked “annulled” are noted as such. Check wording, figures, dates and legal effect against the official texts before relying on this reading. Source snapshot: 6 November 2026. Translated: article 3 (selected letters), and articles 5, 15 and 41 to 44 bis.

What an investor in Catalan property should take from this

Three provisions bite on owners. Under article 5.2.b), a dwelling empty for more than two years without justified cause fails its social function, and selling it to a company does not change that. Under article 15, a municipality can declare areas in which it, or the Generalitat in a stressed zone, has a right of first refusal over the sale of a whole building, of particular flats, and even of shares in a company owning them. And under article 44 bis, a large holder whose property is unlawfully occupied, with trouble for the neighbours, must sue for eviction within a month of being required to; if it does not, the town hall can do it and recover the costs.

Preliminary title (selected)

Article 3. Definitions (selected letters)

For the purposes of this Act:

a) Dwelling: any fixed building intended for natural persons to reside in or used for that purpose, including the common spaces and services of the property in which it is located and the annexes attached to it, if it shows compliance with the habitability conditions set by this Act and its implementing rules and fulfils the social function of providing the persons residing in it with the space, installations and material means necessary to meet their ordinary personal housing needs.

b) Principal dwelling: the dwelling registered as the address on the municipal register of inhabitants.

c) Secondary or second-residence dwelling: the dwelling used intermittently or for temporary stays.

d) Empty dwelling: the dwelling that remains permanently unoccupied, without justified cause, for a period of more than two years. For this purpose, justified causes are moving for work reasons, a change of address because of a situation of dependency, and the ownership of the dwelling being the subject of pending litigation. Occupation without legitimate title does not prevent a dwelling from being considered empty.

e) Overcrowded dwelling: the dwelling in which an excessive number of persons is housed, in view of the dwelling’s services and the floor-area standards per person set in Catalonia as habitability conditions. Households linked by family ties are excepted, if the excess occupation does not entail manifest breaches of the required health and hygiene conditions or create serious problems of coexistence with the surroundings.

f) Substandard dwelling: the property which, although lacking a habitability certificate and not meeting the conditions for obtaining one, is used as a dwelling.

g) Rehabilitation: the set of general works which, without altering the overall architectural configuration of a residential building or a dwelling, improve its quality as regards safety, functionality, accessibility and energy efficiency.

h) Major rehabilitation: the set of works consisting of demolishing a building saving only its facades, or constituting a comprehensive intervention affecting the structure or the general use of the rehabilitated building or dwelling.

l) Dwelling with economic activities: the dwelling that is not the habitual and permanent home and is used to obtain income from economic activities regulated by the applicable sectoral rules.

A holiday home is not an empty home. Letter c) defines a second residence used intermittently, distinct from an empty dwelling under letter d). A foreign owner who uses a flat in Catalonia for holidays is using it; the empty-dwelling rules on this page are aimed at dwellings left with no use at all for more than two years.

Article 5. Fulfilment of the social function

1. The exercise of the right of ownership must fulfil its social function.

2. The social function of the ownership of a dwelling or a residential building is not fulfilled where:

a) The owners fail to fulfil the duty to conserve and rehabilitate the dwelling, provided that this entails a risk to the safety of persons and that they have been guaranteed, if they show they need it, sufficient public aid to meet the cost of conserving or rehabilitating the dwelling.

b) The dwelling or residential building is permanently and unjustifiably unoccupied for a period of more than two years. Neither the occupation of these dwellings without enabling title nor the transfer of their ownership to a legal person alters the situation of failure to fulfil the social function of property.

c) The dwelling is overcrowded.

d) It is not used as the habitual and permanent residence of persons, if it is an officially protected dwelling or a dwelling reserved by urban planning for that type of residence.

e) After settlement agreements or transfers in payment of mortgage loans or credits over the habitual home, or after the signing of sales of a dwelling whose cause is the borrower’s inability to repay the mortgage loan, no social-rent proposal is made on the terms established by article 5 of the Act on urgent measures to address the emergency in housing and energy poverty.

f) (Annulled.)

g) The owners, if they are large holders, do not initiate the eviction actions required by the competent administration, the dwelling is occupied without enabling title and this situation has caused a disturbance of coexistence or public order or endangers the safety or integrity of the property.

2 bis. The cases referred to in letters b and d of paragraph 2 constitute a breach of the duty of the owners of buildings to use them for uses compatible with territorial and urban planning.

3. To ensure fulfilment of the social function of the ownership of a dwelling or a residential building, the administrations responsible for housing must provide the positive means of promotion and agreement referred to in Title III, and may also establish other measures, including fiscal ones, that encourage fulfilment of that social function and penalise failure to fulfil it.

3 bis. The administrations responsible for housing may declare a failure to fulfil the social function of the ownership of dwellings where the owners have been required to adopt the measures necessary to fulfil the social function of property and have not complied with the requirement within the period established. The declaration of failure to fulfil the social function may entail the adoption of the enforcement measures determined by housing legislation and, in the cases of paragraph 2 bis, those established by land legislation, including compulsory expropriation in the cases established by law.

4. The department responsible for housing and the local administrations must act in coordination in delimiting and declaring the areas or isolated situations in which there is a failure to fulfil the social function of the ownership of a dwelling, and in determining and executing the legally established measures that must be adopted.

Title II, Chapter I (selected)

Article 15. Declaration of areas subject to rights of pre-emption and redemption in relation to the objectives of local housing plans

1. Municipalities, in order to meet the objectives of local housing plans and the requirement to increase the stock of dwellings linked to social policies established by article 73, to facilitate the conservation and rehabilitation of buildings and to prevent the expulsion of occupants or other speculative processes, may delimit areas in which rights of pre-emption and redemption may be exercised in favour of the public administration over whole multi-family buildings used mainly as dwellings, and areas in which rights of pre-emption and redemption may be exercised in favour of the public administration over specific dwellings. These rights of pre-emption and redemption extend to the transfer of shares or holdings in commercial companies whose object is directly or indirectly linked to real-estate activity and which own any of those buildings or dwellings.

2. The Territorial Sectoral Housing Plan, depending on the importance of the real-estate activity or special social needs, may propose a delimitation of pre-emption and redemption areas for the purposes referred to in paragraph 1, or may delimit them directly, in agreement with the municipalities concerned.

For the purposes of transfers of dwellings acquired in a mortgage enforcement process or by settlement or payment of a debt secured by mortgage, the pre-emption and redemption areas may coincide with the areas of strong and proven residential demand delimited in the local housing plans, in the Territorial Sectoral Housing Plan or, until these are delimited, with those provided for in the annex to the Plan for the right to housing.

In the transfer of dwellings in areas declared stressed residential markets, the Administration of the Generalitat may exercise the rights of pre-emption and redemption in those areas.

3. To define the possible areas subject to rights of pre-emption and redemption, the municipality, or the Territorial Sectoral Housing Plan, must properly justify the reasons. Local housing plans may contain the definition of those areas.

4. The rights of pre-emption and redemption may be exercised by the public administration either on its own account, or in favour of the developers referred to in article 51, or in favour of the persons referred to in article 87.3.

5. The Administration, if it exercises the right of pre-emption in favour of third parties, may set conditions on the use and purpose of the property ensuring that its use is linked to the municipality’s social housing policies. These conditions may consist of requiring part of the property to be used for officially protected dwellings or dwellings linked to social policies, beyond the maximum reserve percentages established by article 17 and by Legislative Decree 1/2005 of 26 July approving the consolidated text of the Urban Planning Act.

6. In areas subject to rights of pre-emption and redemption, no transfers may be made under any title if the property to be transferred is used as a dwelling or, in the case of whole buildings, mainly as dwellings, and does not meet and cannot meet, with the relevant rehabilitation works, the legally required habitability conditions.

7. If the local authorities concerned do not act, the department responsible for housing must take over the municipal tasks referred to in this article, without prejudice to other departments and bodies of the Generalitat responsible for planning and land policy, according to the corresponding plans and action programmes, also assuming, in whole or in part, the actions undertaken. The properties obtained through the exercise of the rights of pre-emption and redemption must be placed at the service of local housing policies.

8. Planning legislation applies to the procedure for delimiting the areas subject to the rights of pre-emption and redemption referred to in this article, and to the exercise of those rights.

9. If the delimitation of the area subject to the rights of pre-emption and redemption coincides with the entire municipal territory, the file need not contain the list of the properties affected and their owners or indicate the streets, polygons, sectors and places affected.

Buying a whole building, or the company that owns it. In a declared area, the sale of a residential building — and, under paragraph 1, the sale of shares in a property company owning one — must first be notified so the administration can buy at the same price. Under paragraph 2, in a stressed zone the Generalitat may also exercise these rights over individual dwellings. A share deal does not avoid the right. Under article 135, a deed that ignores it cannot be registered.

Title III, Chapter III. Anomalous use of dwellings

Article 41. Detection of anomalous uses and situations of dwellings

1. The following are anomalous uses of a dwelling or a residential building:

a) The permanent and unjustified non-occupation referred to in article 5.2.b. Treated as equivalent to this anomalous use is that of unfinished buildings intended for housing with more than 80 per cent of the construction works executed, after more than two years have passed since the end of the period for completing them.

b) Overcrowding, defined in article 3.e.

c) Occupation without enabling title in cases that disturb coexistence or public order or endanger the safety or integrity of the property.

d) A substandard dwelling, defined in article 3.f, is an anomalous situation.

2. The department responsible for housing and the municipalities are competent to:

a) Conduct the procedures to check whether a dwelling or a residential building is used anomalously or is in an anomalous situation and, after hearing the interested parties, declare the anomalous use or situation and require the person responsible to adopt the measures necessary to correct that use or situation within the period established. The requirement must warn the person responsible of the possible measures to be adopted in the event of non-compliance, among them the imposition of the coercive fines provided for in this Act.

b) Order the forced execution of the measures necessary to correct the anomalous use or situation and determine the means of execution.

c) Penalise the person responsible where the anomalous use or situation constitutes a housing infringement under this Act.

The procedures referred to lapse once the maximum period of six months for issuing the decision has passed, if it has not been issued and notified. This period is interrupted in the cases referred to in the common administrative procedure legislation, and for all the time necessary to make notifications by edict, where appropriate. Unless a municipality expresses its wish to exercise those powers generally and preferentially, their exercise by the administrations referred to is specified and coordinated by agreement.

3. In detecting anomalous uses and situations of dwellings, the following may be taken into account:

a) The data of the municipal register of inhabitants and other public registers of residents or occupants.

b) The data of the database of lease deposits.

c) The data of dwellings assigned to the administration for letting.

d) Abnormal consumption of water, gas or electricity.

e) The statements or own acts of the holder of the dwelling or property.

f) The statements and checks of the staff of the public administrations with inspection functions in this field and of the agents of authority in general.

g) The unjustified refusal of the holder of the dwelling or property to allow the Administration’s checks, if there is no plausible cause justifying it and if, in addition, there are other indications of lack of occupation.

h) Advertisements.

4. For the purpose referred to in paragraph 4, those responsible for the public registers and the supply companies must provide the data required.

How emptiness is detected. Paragraph 3 lists the evidence: nobody on the municipal register, no deposit lodged with INCASÒL, near-zero water or electricity use. An owner who keeps a dwelling available but rarely uses it should keep evidence of use — or, if it is genuinely unused, of the justified cause.

Article 42. Actions to prevent the permanent non-occupation of dwellings

1. The Generalitat, in coordination, where appropriate, with the local administrations, must promote policies to encourage the incorporation into the market, preferably the rental market, of empty or permanently unoccupied dwellings. For this purpose, they must ensure that situations of permanent non-occupation of dwellings are avoided and approve the corresponding inspection programmes.

2. Owners of empty or permanently unoccupied dwellings must be given guarantees on the collection of rents and the repair of damage.

3. Policies to promote the rehabilitation of dwellings in poor condition so that they can be let must be promoted, through direct subsidies to owners, offers for the Administration to take over the execution of the works and public support for urban masoveria contracts.

4. Empty or permanently unoccupied dwellings may be assigned to the public administration for it to manage them under a rental regime. In return, an agreement on collection and other conditions of the assignment must be signed, within programmes specifically intended for that purpose in the housing plans.

5. The Administration may adopt measures other than those established in paragraphs 1 to 4, including fiscal ones, with the same objectives of encouraging the occupation of dwellings and penalising their unjustified non-occupation.

6. In the case of dwellings owned by private legal persons, if the Administration requires the person responsible to adopt the measures necessary to occupy one or more dwellings lawfully and effectively so that they constitute the residence of persons, it must warn them in the same decision that, if the dwelling is not lawfully and effectively occupied within the period it establishes, forced execution of the required measures may be demanded through the imposition of a coercive fine. In the equivalent situation of unfinished residential buildings, that requirement must include the measures necessary to complete the building works first.

7. In the cases established by law, the warning referred to in paragraph 6 must include the possibility of declaring the failure to fulfil the social function of property for the purposes of initiating the procedure for its compulsory expropriation.

8. (Annulled.)

Article 43. Actions to prevent the overcrowding of dwellings

1. The Generalitat and the local authorities must promote policies aimed at eradicating situations of overcrowding of dwellings and must act on those directly responsible for and the causes of these situations. For this purpose, they must approve inspection programmes and ensure that dwellings are not overcrowded.

2. In the case of zones with a high concentration of overcrowded dwellings, the competent administrations may delimit them and declare pre-emption and redemption areas, in accordance with article 15, and may declare them conservation and rehabilitation areas, in accordance with articles 36 and 37.

3. A finding of overcrowding may entail the imposition on those responsible of the penalties established by this Act. In any event, the owner must first be heard if it is shown that they expressly consented to the overcrowding. Without prejudice to all this, the administrations may temporarily expropriate the usufruct of overcrowded dwellings for subsequent letting in appropriate conditions.

4. For the purposes referred to in paragraphs 1 to 3, in order to take corrective action, owners of presumably overcrowded dwellings may request the help of the competent administration, which, in the corresponding verification process, in accordance with article 41.5, may obtain from the municipal register of inhabitants the relevant information on the persons registered.

5. For better control of situations of overcrowding, collaboration agreements may be established with the associations and professional bodies active in the real-estate market.

6. In actions to correct situations of overcrowding, the public administrations must provide the appropriate measures to accommodate the persons affected by that circumstance in so far as they can and the available resources allow. For this purpose, they must establish the relevant programmes and cooperation and collaboration agreements with the competent social care services and the mediation services referred to in article 69.

7. If it is necessary to restore the required habitability of overcrowded dwellings, the local administration, directly or with the support of the Generalitat, may carry out the necessary repair works in default.

Article 44. Actions to prevent situations of substandard housing

1. The competent administrations must promote policies aimed at eradicating situations of substandard housing. For this purpose, they must approve inspection programmes and must ensure that properties in a substandard situation are not sold, let or assigned as dwellings.

2. In the case of zones with a high concentration of substandard dwellings, the competent administrations may delimit them and declare conservation and rehabilitation areas, in accordance with articles 36 and 37.

3. The declaration of substandard housing must be agreed after an adversarial procedure, in accordance with the procedure established by administrative procedure legislation. That declaration may be registered in the Land Registry. If it entails a prohibition on disposing of the dwelling on the terms of paragraph 1, it has the same legal regime as those established by article 26.1 of the State Mortgage Act and must be recorded in the Land Registry in accordance with the applicable sectoral rule.

4. For better control of situations of substandard housing, collaboration agreements may be established with the associations and professional bodies active in the real-estate market.

5. In actions to correct situations of substandard housing, the public administrations must provide the appropriate measures to accommodate the persons occupying these properties under leases or assignments of use. For this purpose, they must establish the relevant programmes and cooperation and collaboration agreements with the competent social care services.

Article 44 bis. Actions against occupation without enabling title in cases of disturbance of coexistence or public order or that endanger the safety or integrity of the property

1. In cases of occupation of a property without enabling title, the owner, if a large holder, must take the necessary action to evict the occupants if this situation has caused a disturbance of coexistence or public order or endangers the safety or integrity of the property.

2. If the case referred to in paragraph 1 arises and the owner does not take the necessary action for eviction, the municipal council of the municipality where the property is located, as the competent administration and without prejudice to the competence of other public entities, may urge the owner, ex officio or at the request of the owners’ meeting of the building where the property is located or at the request of the residents of the adjoining residential space, to fulfil their obligation.

3. The municipal council must require the owner and the occupant, within five working days, to show by documents the existence of an enabling title for the occupation, if any, and in the same requirement must require the owner, within one month, to show by documents that the obligation to bring the corresponding eviction action has been fulfilled.

4. If, within one month from receipt of the requirement, or if notification has been unsuccessful, always in accordance with administrative procedure legislation, the owner has not shown by documents that the occupant of the property has an enabling title to occupy it, has not shown by documents that the eviction has been carried out or has not shown by documents that the corresponding judicial eviction actions have been brought, the municipal council, as the competent administration and without prejudice to the competence of other public entities, has standing to initiate the eviction procedure and carry out the eviction from the occupied property.

5. The municipal council acting in place of the owner is entitled to full reimbursement of the costs of the procedure, without prejudice to the imposition of the appropriate penalties.

6. The exercise of the eviction action by the municipal council corresponds to the mayor.

The neighbours can set it in motion. Under paragraph 2 the owners’ meeting of the building can ask the town hall to act against a large holder whose flat is unlawfully occupied with trouble for the building. The community also has its own action under the Catalan Civil Code against activities that disturb coexistence, including against unknown occupants — see article 553-40.

Where this sits

The previous page translates the habitability certificate and the rules on adverts, sales and leases, including temporary and room lets. The tax on empty dwellings is translated separately, as is the large holders’ social-rent duty under Law 24/2015.

Related on voixa.es: Personal tax in Catalonia: both halves of the bill; Spain’s 100% property tax for non-EU buyers: what happened.

Nothing here is advice on your own position, and this reading is not the official text. Where the wording matters to a decision, read it against the Catalan or Spanish original linked above.