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

Spain’s Right to Housing Act: purpose, definitions and the duties of owners

Law 12/2023 of 24 May on the right to housing: the preliminary title (articles 1 to 6) and Title I (articles 7 to 11). These provisions set out the purpose of the Act and the aims of public housing policy, the definitions used throughout the Act (among them dwelling, substandard housing, protected housing, incentivised affordable housing, habitual residence and large holder), services of general interest, public action before the courts and the principle of equality and non-discrimination in housing, and the basic rights and duties of citizens and the content of the right of ownership of a dwelling.

Unofficial English translation from the Spanish by Voixa Consultors S.L. Alexander Baranov is responsible for the translation. Source: Ley 12/2023, de 24 de mayo, por el derecho a la vivienda, consolidated text, last modification 7 October 2026, BOE-A-2023-12203 ↗. Check wording, figures, dates and legal effect against the Spanish original before relying on this reading. Source snapshot: 10 November 2026. This page: preliminary title, articles 1 to 6, and Title I, articles 7 to 11. The whole Act is translated across 5 pages; see the contents of the Act.

Preliminary title. General provisions

Article 1. Purpose of the Act

1. The purpose of this Act is to regulate, within the sphere of competence of the State, the basic conditions that guarantee equality in the exercise of the rights and in the fulfilment of the constitutional duties relating to housing and, in particular, the right to have access to decent and adequate housing and to enjoy it on affordable terms, having regard to compliance with the provisions of the international instruments ratified by Spain and respecting in all cases the competences of the autonomous communities and, specifically, those conferred on them in the field of housing.

2. In order to ensure the exercise of the right to housing, this Act shall also regulate the basic content of the right of ownership of a dwelling in relation to its social function, which includes the duty to allocate the dwelling to the residential use provided for by the legal order, within the framework of the territorial and urban planning instruments, and to maintain, conserve and rehabilitate the dwelling, conferring on the public authorities the function of ensuring proper compliance, within their respective spheres of competence, through the application of the measures that are legally appropriate.

3. The Act also aims to strengthen the protection of access to complete, objective, truthful, clear, understandable and accessible information in transactions for the purchase and lease of housing.

Article 2. Aims of public housing policies

The following are common aims of the action of the public authorities in the field of housing, within their respective spheres of competence:

a) The effectiveness of the rights of access, on affordable terms, to decent and adequate housing in accordance with the Spanish Constitution and the recommendations of the international instruments ratified by Spain.

b) To promote the effective use and enjoyment of housing, by virtue of the legal tenure regime, as well as its maintenance, conservation and, where appropriate, rehabilitation and improvement.

c) To ensure the habitability of dwellings, understood as the set of minimum requirements of quality, functionality and universal accessibility which, in accordance with the applicable rules, dwellings must meet in order to guarantee the dignity and health of persons and to satisfy their accommodation needs at the different stages of their lives, with special attention to the needs of minors, for whom the dwelling is moreover a fundamental space for development, security and shelter, and as a basis for the effective exercise of rights and freedoms.

d) To encourage inter-administrative collaboration, fostering coherence and transparency in public housing policy action, as well as coordination with the other sectoral policies, and to guarantee the participation of citizens and of the bodies representing civil society in the field of housing.

e) To protect stability and legal certainty in the ownership, use and enjoyment of housing, with special attention to persons and households in a situation of vulnerability or at risk of it, and specifically to families, households and cohabitation units with dependent minors, through effective housing measures and ensuring due coordination with complementary measures of social care, training, employment and other support actions.

f) To foster the development, management and maintenance of public housing stocks so as to ensure a significant and stable supply of decent and adequate housing for the social groups with the greatest difficulty in gaining access to housing on the market, through the necessary investment in each budget year and having regard to the characteristics and needs of all territorial areas, which are affected by different dynamics of population growth or loss.

g) To promote the rehabilitation and improvement of existing dwellings, both in the private stock and in the public stocks, through programmes and measures on sustainability, energy efficiency and the use of renewable energy, habitability, universal accessibility, conservation, improvement of safety in use and digitalisation, favouring integrated approaches and specifically taking into account the characteristics of housing in rural areas.

h) To promote and encourage a sufficient and adequate supply of rental housing at affordable prices, with special attention to young people and households in a situation of vulnerability or at risk of it, enabling effective mechanisms for the regulation and use of land, and developing programming and planning measures and instruments that make it possible to meet the real needs of those seeking housing and that favour social and territorial cohesion.

i) To support the existence of social housing stocks of third-sector entities, complementary to the public housing stocks, which broaden the supply of accommodation and housing intended for vulnerable groups and households, with special attention to families, households and cohabitation units with dependent minors.

j) To achieve maximum efficiency in the management of the available resources in order to favour access to decent and adequate housing, encouraging, where appropriate, forms of public-private collaboration.

k) To protect basic rights and legitimate interests in transactions for the purchase and lease of housing, delimiting responsibilities and ensuring access to sufficient and adequate information.

l) To eliminate any type of discrimination, on any ground, in access to housing and the enjoyment of it, ensuring integration, inclusion and social and territorial cohesion in housing policy actions and measures.

m) To promote universal accessibility in the housing stock, ensuring its effectiveness in new dwellings and adopting measures to address needs that arise later in the pre-existing housing stock.

n) To adopt measures to identify and prevent speculative retention, residential segregation, processes of overcrowding, severe residential exclusion such as shanty dwelling or homelessness, and the degradation of the conditions of the existing housing stock and its surroundings, so as to allow its residential function to develop and quality of life to improve.

ñ) To guarantee equality, from the perspective of gender, age, ability and territory, in all housing policies and actions, at all levels and in all their phases of planning, implementation and evaluation.

o) To monitor and guarantee the responsible use of sufficient public resources so that the competent Administrations meet the objectives of housing policy, and to apply, in the management of the public stock, criteria of co-responsibility of its occupants.

p) To give priority in attention and information to families, households and cohabitation units with dependent minors who, because they are in a situation of poverty, social exclusion or other forms of vulnerability, must be the object of special protection.

q) To contribute, in the application of housing policies, to correcting territorial imbalances, both in urban and metropolitan areas and in rural settings, which may be more affected by depopulation.

r) To encourage transparency and to guarantee the participation, in the development of public housing policies, of the actors in the real estate market, particularly social housing developers, citizens’ associations defending the right to housing, associations of tenants and of owners, property administrators and real estate agents.

s) To strengthen the social economy, promoting the participation of social and welfare entities in the field of housing.

Article 3. Definitions

For the purposes of this Act, and in so far as they do not conflict with those laid down by the administrations competent in housing matters, in which case, and for the purposes of their own regulation, the latter shall prevail, the following definitions are established:

a) Dwelling: a building or part of a building of a private nature, intended for the residence and habitation of persons, which meets the minimum habitability conditions required by law and which may have access to common spaces and services of the building in which it is located, all in accordance with the applicable legislation and with urban and territorial planning.

b) Substandard housing: a building, or part of one, used as a dwelling which does not meet the minimum conditions required in accordance with the applicable legislation. In any event, dwellings shall be deemed not to meet those conditions where they fail to comply with the requirements of floor area, number, dimensions and characteristics of the habitable rooms, where they have serious deficiencies in their basic fittings and installations, and where they do not meet the minimum requirements of safety, universal accessibility and habitability applicable to buildings.

c) Decent and adequate housing: a dwelling which, by reason of its size, location, habitability conditions, universal accessibility, energy efficiency and use of renewable energy and its other characteristics, and with access to the basic supply networks, meets the residential needs of the person or cohabitation unit on terms that are affordable in relation to financial effort, constituting their domicile, abode or home in which they can live with dignity, with their privacy safeguarded, and enjoy family or social relations, favouring the full development and social inclusion of persons.

d) Affordable terms in relation to financial effort: terms of sale or rental price that avoid an excessive financial effort for households, taking into account their net income and their particular characteristics, and considering both the mortgage instalment or the rent and the basic expenses and supplies payable by the mortgaged owner or by the tenant, which as a general rule should not exceed 30 per cent of the income of the cohabitation unit.

e) Basic expenses and supplies: the amount of the cost of energy supplies (electricity, gas and heating oil, among others), running water and telecommunication services, and any contributions to the owners’ association (comunidad de propietarios), all of them relating to the habitual dwelling.

f) Protected housing: housing subject to a special regime so as to be allocated as the habitual residence of persons who have difficulty in gaining access to the housing market, both in urban and metropolitan areas and in rural areas. For the purposes of this Act, the following types are established: social housing, or limited-price housing.

1st Social housing: publicly owned housing intended for rent, assignment or any other form of temporary tenure subject to limits on rent or sale price and intended for persons or households who have difficulty in gaining access to housing on the market. Housing built on publicly owned land over which a surface right (derecho de superficie), an administrative concession or an equivalent legal transaction has been created shall also be considered social housing.

Social housing may be developed on land zoned for public facilities (dotacionales públicos) or may be located in buildings or premises intended for publicly owned facilities and assigned to a public service.

Social housing may be managed directly by the public administrations or their dependent entities, by non-profit entities with social aims linked to housing, or through forms of public-private collaboration compatible with its nature.

Social housing intended to deal with emergency situations, offering a short-term and temporary housing solution, on a universal basis and until permanent alternative housing is provided, to persons and families who have lost, or are unable to gain access to, adequate housing, regardless of the documentary and administrative status of the persons concerned, may be considered emergency social housing.

2nd Limited-price protected housing: publicly or privately owned housing, excluding social housing and public facility housing, subject to limits on rental prices and to all the other requirements laid down by law or by regulation, and intended to meet the permanent housing needs of persons or households who have difficulty in gaining access to housing on the market. Limited-price housing shall be classified as such under the procedure established by the competent Public Administration.

g) Incentivised affordable housing: for the purposes of this Act, this shall be considered to be privately owned housing, including that of third-sector and social economy entities, to whose owner the competent Administration grants planning, tax or any other kind of benefits in exchange for allocating it as the habitual residence, under a rental arrangement or any other form of temporary tenure, of persons whose income level does not allow them to gain access to housing at market price. The public benefits assigned to these dwellings shall be linked to the limitations on use, duration and maximum prices determined in each case by the competent Administration.

h) Third-sector housing and accommodation stock: the set of properties owned or managed by non-profit entities with social aims linked to housing, intended to meet the housing or accommodation needs of persons or households in a situation of vulnerability or at risk of social exclusion, or to provide affordable housing to broad sections of society.

i) Habitual residence: the dwelling that constitutes the permanent domicile of the person occupying it, which may be evidenced by the data in the municipal register of inhabitants (padrón municipal) or by other means valid in law.

j) Secondary residence: any dwelling used by its owner for temporary or intermittent stays and which does not constitute the owner’s habitual residence.

k) Large holder: for the purposes of this Act, the natural or legal person who owns more than ten urban properties for residential use or a built area of more than 1,500 m² for residential use, excluding in all cases garages and storage rooms. This definition may be narrowed, in the declaration of stressed residential market areas, to owners of five or more properties for residential use located in that area, where the autonomous community so justifies in the corresponding explanatory report.

That status must be evidenced by a certificate from the Land Registry showing the list of properties in the person’s name.

Where a registered property (finca registral) comprises a building made up of several units capable of residential use, each of those units shall be deemed to constitute a separate property for counting purposes, even if no horizontal property division has been registered.

Wording introduced by Royal Decree-law 29/2026 of 6 October, in force since 8 October 2026; the decree-law is pending validation by the Congress of Deputies.

l) Homelessness: a life circumstance affecting a person, family or cohabitation unit who cannot gain sustained access to decent and adequate housing in a community setting and which leaves the persons, families or cohabitation units suffering it to live on the public highway or in other unsuitable public spaces, or to use alternative collective institutional accommodation of the various public administrations or of non-profit entities, or to live in inadequate housing, whether temporary or not, unsuitable or overcrowded housing, insecure housing, without legal title, or with a notice to leave it, or living under threat of violence.

It may be classified as chronic homelessness where the situation of homelessness continues or occurs over a period of one year or more.

Large holder thresholds. Under article 3 k), a large holder owns more than ten urban residential properties or more than 1,500 m² of residential built area, garages and storage rooms excluded; in a declared stressed area the autonomous community may lower the threshold to five or more residential properties located there, giving reasons in its report.

Article 4. Services of general interest

1. For the purposes of guiding public funding, the services considered services of general interest, as key elements of economic, social and territorial cohesion, are those determined by the administrations competent in the matter and, within the sphere of competence of the State or of collaboration between the State and the other administrations, the following:

a) The carrying out of the actions necessary for the creation, enlargement, conservation and improvement of the public housing stock by the competent Public Administrations and their instrumental or dependent bodies, as well as its management so as to ensure its effective use on affordable terms, as defined in the preceding article or in the corresponding regional rules.

b) Public or private activities whose purpose is the construction or rehabilitation of dwellings subject to a public protection regime that sets a maximum sale and rental price, intended for persons or households meeting pre-established requirements based on objective criteria defining their economic and social situation.

c) The carrying out by the competent Public Administrations and their instrumental or dependent bodies of the actions necessary to promote the improvement of the habitability, accessibility or energy efficiency conditions of residential buildings, whether publicly or privately owned.

2. The services of general interest referred to in the preceding paragraph may be performed directly by the Public Administrations or their instrumental or dependent bodies, or may be carried out through agreements with owners, with legally constituted third-sector and social economy entities, or through various forms of public-private collaboration, in compliance with the legal framework in force having regard to the nature of the collaboration.

Article 5. Public action

1. Acts and provisions adopted in application of Title II, Title III and Chapter II of Title IV of this Act may be challenged, in addition to by those who have standing to do so under Law 39/2015 of 1 October on the Common Administrative Procedure of the Public Administrations and Law 29/1998 of 13 July regulating the Contentious-Administrative Jurisdiction, by non-profit legal persons which, by bringing this action, defend general interests linked to the protection of housing. The bringing of this action may not be contrary to good faith or constitute an abuse of rights.

2. For the purposes of article 31 of Law 29/1998 of 13 July regulating the Contentious-Administrative Jurisdiction, this action may in no case include a claim for the recognition and restoration of an individual legal situation, unless the person bringing the action is the person who has standing by virtue of holding an affected right or legitimate interest. The waiver or withdrawal of the action, whether in administrative proceedings or in contentious-administrative proceedings, may not involve any economic consideration.

Article 6. Principle of equality and non-discrimination in housing

1. By virtue of the principle of equality and non-discrimination in housing, all persons have the right to the use and enjoyment of decent and adequate housing, complying with the legal and contractual requirements laid down in the legislation and rules in force, without suffering discrimination, exclusion, harassment or violence of any kind.

2. The competent Administrations shall guarantee compliance with paragraph 1, adopting the protective measures necessary to prevent and to deal specifically with the following situations affecting the use and enjoyment of housing:

a) Direct discrimination, which occurs where a person or group of persons receives, in any respect relating to housing, treatment different from that received by another person in a comparable situation, provided that the difference in treatment has no legitimate cause that objectively and reasonably justifies it and the means used are proportionate, appropriate and necessary.

b) Indirect discrimination, which occurs where an apparently neutral legislative provision, plan, collective or contractual clause, individual agreement, unilateral decision, criterion or practice puts a person or group of persons at a particular disadvantage compared with others in the exercise of the right to housing. There is no indirect discrimination if the action has a legitimate aim that objectively and reasonably justifies it and the means used to achieve that aim are proportionate, appropriate and necessary.

c) Property harassment (acoso inmobiliario), understood as any action or omission involving an abuse of rights with the aim of disturbing any person in the peaceful use of their dwelling and creating a hostile environment for them, whether in material, personal or social terms, with the ultimate purpose of forcing them to take an unwanted decision regarding the right of use and enjoyment of the dwelling that protects them.

d) Transactions for the sale, lease or assignment under any title, in whole or in part, for residential purposes, of substandard housing, an overcrowded dwelling or any form of illegal accommodation, or of property over which the person does not hold a legitimate right empowering them to do so or the representation of the holder of such a right.

Title I. Social function and legal regime of housing

Article 7. Guiding principles for guaranteeing the social function of housing

1. Having regard to the delimitation of the right to decent and adequate housing made by article 47 of the Spanish Constitution, and considering that housing fulfils a social function since it is an asset intended to meet the basic accommodation needs of persons, families and cohabitation units, it is for the competent public administrations to see to the promotion of the conditions necessary to guarantee the effective exercise of that right on affordable terms and with special attention to families, households and cohabitation units with dependent minors, through the statute of rights and duties associated with housing, on the terms laid down in this Act.

2. In order to comply with the preceding paragraph, the public authorities, within their respective spheres of competence, must put in place effective mechanisms to ensure the due protection, conservation, rehabilitation and improvement of housing, on the terms laid down in this Act and in accordance with the housing legislation and rules in force.

Chapter I. Basic statute of the citizen

Article 8. Rights of citizens in relation to housing

All citizens have the right to:

a) Enjoy decent and adequate housing, on the terms laid down in this Act, whether under ownership, lease, assignment of use or any other legal tenure regime.

b) Have access to the information held by the Public Administrations on public housing programmes and the conditions of access to them, in formats accessible to persons with disabilities, as well as on the benefits, aid and public resources available to guarantee access to housing for persons and families in a situation of vulnerability.

c) Apply for entry in the registers of applicants for protected housing set up for that purpose by the Public Administrations competent in the matter, and in the various programmes, benefits, aid and public resources for access to housing, according to their social and economic situation and their personal and family circumstances.

d) Take part in public housing programmes and have access to public housing benefits, aid and resources on the terms and conditions laid down in the rules governing them.

Article 9. Duties of citizens in relation to housing

All citizens have the duty to:

a) Respect and contribute to preserving the housing stock, avoiding any nuisance or unhealthy activity that disturbs the exercise of the right of use and enjoyment referred to in the preceding article.

b) In relation to the dwelling they live in, carry out the conservation, repair or improvement works that are incumbent on them under the legal tenure regime by virtue of which they have the dwelling.

c) In relation to another person’s dwelling, at the disposal of other persons, households or public and private entities, respect its peaceful possession and refrain from carrying out any kind of activity that prevents or hinders it.

d) In relation to transactions for the purchase or rental of housing, comply with the duties laid down by law for the transferor or intermediary defined in Title IV and other rules applicable to those transactions.

e) In relation to the public housing stock, have regard to its special importance as an instrument of action in favour of the right to housing and see to its proper maintenance and conservation, so that it can serve the households with the greatest difficulties.

Chapter II. Basic legal regime of the right of ownership of a dwelling

Article 10. Content of the right of ownership of a dwelling: powers

1. In addition to the rights recognised in the State land legislation according to the basic situation of the land on which the dwelling is located, in accordance with the applicable territorial and urban planning legislation, the right of ownership of a dwelling comprises:

a) The powers to use, enjoy and dispose of it in accordance with its classification, condition and objective characteristics, in accordance with the housing legislation and other applicable legislation.

b) The right to consult the competent Administrations on the planning status of the dwelling and of the building in which it is located.

c) The carrying out of conservation, rehabilitation, universal accessibility, extension or improvement works, in accordance with the conditions laid down by the competent Administration and, where applicable, the permit for such works, where one is legally required.

2. It is for the Administrations competent in housing matters to see to the full exercise of the rights of ownership of housing, acting in a concerted and coordinated manner in promoting the actions provided for in the legislation and in the applicable plans and programmes to favour access to housing. To that end, any measures provided for in the legislation on the matter may be adopted and implemented and, in particular, the following:

a) Public aid and subsidies.

b) Tax incentives.

c) Direct management of the public housing stocks by the Public Administrations or their instrumental bodies, or in collaboration with third parties.

d) Collaboration with third-sector entities whose social aims are linked to housing, to facilitate the management of dwellings belonging to the public stocks, as well as the management of their own social housing stock.

e) Encouragement of private initiative through agreements with owners of dwellings for their assignment to the competent Public Administrations, or other formulas to favour an increase in the supply of social or affordable-price rental housing.

f) Actions to encourage intermediation in the residential lettings market so as to bring about the effective occupation of dwellings.

Article 11. Content of the right of ownership of a dwelling: duties and burdens

1. In addition to the duties laid down in the State land legislation according to the basic situation of the land on which the dwelling is located, in accordance with the applicable territorial and urban planning legislation, the right of ownership of a dwelling is delimited by its social function and comprises the following duties:

a) The owner’s own effective use and enjoyment of the dwelling in accordance with its classification, condition and objective characteristics, in accordance with the housing legislation and other applicable legislation, guaranteeing in all cases the social function of property.

b) Maintenance, conservation and, where appropriate, rehabilitation of the dwelling on the terms of this Act, of the territorial, urban planning and housing legislation, and of the instruments approved under it.

c) Avoiding overcrowding or letting for uses and activities that fail to comply with the legally required habitability requirements and conditions.

d) In transactions for the sale or lease of the dwelling, complying with the information obligations laid down in the applicable rules and in Title IV of this Act.

e) Where the dwelling is located in a stressed residential market area, complying with the obligations of collaboration with the competent Administration and supply of information on the terms laid down in Title II of this Act.

2. It is for the Administrations competent in housing matters to declare a failure to comply with the duties associated with the ownership of a dwelling, which empowers them to adopt, of their own motion or at the request of a party and, in all cases, after hearing the person bound, any measures provided for in the territorial and urban planning legislation and in the housing legislation.

Where this sits

Next: Public action, protected housing and stressed areas. All parts: contents of the Act.

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. Where the wording matters to a decision, read it against the Spanish original published in the BOE.