The Party Wall (Pared Medianera) in Spain in 2026: CC Articles 571-579, Co-Ownership Rights and Building Against a Shared Wall
The pared medianera in Spain is a co-owned wall under Codigo Civil Articles 571-579. How the presumption works, who pays for repairs and what you can build.
A pared medianera is a wall shared in co-ownership by the owners of two adjoining properties. The Spanish Codigo Civil regulates it as a servidumbre in Articles 571 to 579, and the core rule is simple: a wall separating neighbouring buildings, gardens or rural plots is presumed to be co-owned unless evidence shows it belongs to just one side. This presumption, set out in Article 572, determines who can build against the wall, who pays for repairs, and who bears liability if the wall suffers damage during construction.
What is the servidumbre de medianeria?
The servidumbre de medianeria is a legal regime governing shared walls, fences and hedges between adjoining properties. Article 571 directs that it is governed by the Codigo Civil provisions and by local ordinances and customs where they do not conflict. The DGSJFP confirmed in its Resolution of 23 April 2026 (BOE-A-2026-16134) that medianeria implies a form of copropiedad, citing doctrine and jurisprudencia on Articles 574 and 575, which treat shared ditches, walls and fences as co-owned structures with proportionate cost obligations.
The medianeria is classified within the Codigo Civil as a servidumbre, but in practice it functions as a co-ownership regime. Each owner holds rights in the wall in proportion to their interest, and the law prescribes how those rights intersect with building, repair and demolition. This makes it one of the most common sources of neighbour disputes in Spanish property, particularly in older urban areas and rural fincas where walls may have been built decades or centuries ago without clear title records. The property boundary disputes guide covers the deslinde procedure for resolving where one property ends and another begins, which is often the first step before medianeria questions arise.
How does the presumption of medianeria work?
Article 572 establishes a rebuttable presumption: walls, fences and hedges dividing adjoining properties are presumed medianera unless there is a title, a visible sign or other proof to the contrary. The presumption applies in three situations. First, walls dividing contiguous buildings up to their common height. Second, walls dividing gardens or courtyards in town or countryside. Third, fences, enclosures and live hedges dividing rural plots. The presumption shifts the burden of proof: if neither owner can produce a title or point to a physical sign showing exclusive ownership, the wall is co-owned.
The practical significance for a buyer is that the nota simple from the Property Registry may not always state whether a dividing wall is medianera. Article 5 of the Ley Hipotecaria provides that titles referring to mere possession are not inscribable, so a medianeria that exists by presumption rather than by formal deed may not appear on the registry folio. This means a surveyor’s inspection of the physical signs listed in Article 573 is often more informative than the registry entry for determining whether a wall is shared.
What signs rebut the presumption under Article 573?
Article 573 enumerates seven visible signs that rebut the presumption of medianeria, each indicating that the wall belongs exclusively to the owner on whose side the sign appears:
| Sign | Meaning | Effect |
|---|---|---|
| Windows or openings on one side only | Only one owner has pierced the wall | Exclusive ownership for that owner |
| Wall straight on one face, recessed below on the other | One side bears the structural offset (relex or retallos) | Exclusive ownership for the straight side |
| Wall built entirely on one owner’s land | Not straddling the boundary | Exclusive ownership for that owner |
| Structural loads from one building only | Floors, beams and roof bear on one side | Exclusive ownership for the loaded side |
| Albardilla (capping) draining toward one property | The cap slopes to one side | Exclusive ownership for the non-draining side |
| Pasaderas (projecting stones) on one face only | Masonry projections on a single side | Exclusive ownership for the non-projecting side |
| One plot unfenced next to a fenced neighbour | No shared enclosure exists | No medianeria for the unfenced side |
The seventh sign works differently from the first six: it negates medianeria entirely rather than assigning exclusive ownership to a specific owner. A property that has no fence where a neighbour does is not party to any shared enclosure. The other six signs each point to a single owner as the exclusive proprietor of the wall, and Article 573’s closing paragraph confirms that in all these cases ownership belongs exclusively to the owner who benefits from the sign.
Who pays for repairing and maintaining a party wall?
Article 575 requires all co-owners to share the cost of repairing and constructing party walls, and maintaining shared fences, hedges, ditches and irrigation channels, in proportion to their respective rights. An owner may renounce the medianeria to avoid contributing, but with one critical exception: if the party wall supports the owner’s own building, renunciation is not available. The wall’s structural function for that owner’s property makes contribution obligatory, because withdrawing would leave the other co-owner bearing the full cost of a wall that still serves both buildings.
Article 576 addresses demolition. If an owner whose building rests on a party wall wants to demolish that building, they may renounce the medianeria, but they must pay for all repairs and works needed to prevent damage to the party wall caused by the demolition, though only for that occasion. This provision protects the remaining co-owner from bearing the cost of stabilising a wall left exposed by a neighbour’s demolition work.
Can an owner raise the height of a party wall?
Article 577 grants every owner the right to raise a party wall, but at their own expense and with indemnification for any damage caused, even if temporary. The owner who raises the wall bears all maintenance costs for the raised portion and for any deepening of the foundations. If the existing wall cannot support the greater height, the owner must rebuild it at their own cost. Where the rebuild requires greater thickness, the extra thickness must be built on the raising owner’s own land, not the neighbour’s, preventing encroachment under the guise of improvement.
Article 578 provides a reciprocal mechanism: co-owners who did not contribute to the raising, deepening or thickening may later acquire medianeria rights in the enlarged portion by paying their proportional share of the work plus half the value of any land used for the extra thickness. This lets a neighbour buy into the raised section after the fact, converting a unilateral improvement into shared ownership when both parties agree.
What can you build against a party wall?
Article 579 permits each co-owner to use the party wall in proportion to their share. An owner may build against it, resting their construction on the wall, or insert beams up to half the wall’s depth, provided this does not impede the common use of the other co-owners. The article imposes a procedural safeguard: before exercising this right, the owner must obtain the prior consent of the other co-owners. If consent is not obtained, peritos (technical experts) determine the conditions necessary to ensure the new work does not prejudice the rights of the others.
This consent requirement distinguishes medianeria from ordinary property ownership. A co-owner cannot simply attach a structure to a shared wall and argue afterwards that no harm was done. The law front-loads the negotiation, and where negotiation fails, an expert determination replaces it. Where construction against a party wall causes damage to the neighbouring property, the neighbour construction damage guide explains the liability framework and remedies available under the Codigo Civil.
Can windows be opened in a party wall?
Article 580 prohibits any medianero from opening a window or any opening in a party wall without the consent of the other medianero. This is an absolute prohibition, not a matter of distance or size. It connects the medianeria regime to the servidumbre de luces y vista rules in Articles 580 to 590, which govern openings in walls overlooking neighbouring property more broadly. The easement of light and views guide covers the distance requirements for windows in non-party walls, which range from 2 metres for direct views to 60 centimetres for oblique views.
The Supreme Court reinforced the broader principle in STS 502/2025 of 27 March 2025 (ECLI:ES:TS:2025:354). The case involved an owner who installed a reed screen on a shared fence without authorisation from the community of owners. The court held that the wall was a common element and that installing the screen altered its appearance and functionality, rejecting the argument that the work was an intrascendente (trivial) alteration. While that case arose under the Ley de Propiedad Horizontal rather than the Codigo Civil medianeria provisions, the principle is consistent: unilateral modifications to a shared wall require the other party’s consent, regardless of whether the shared regime is statutory medianeria or horizontal property co-ownership.
Does medianeria extend to fences and ditches?
Yes. Article 572 extends the presumption to cercas, vallados and setos vivos dividing rural plots, and Article 574 adds ditches and irrigation channels. For ditches, the rebutting sign under Article 574 is the presence of excavated earth or debris on only one side, which indicates the ditch was dug by and belongs to the owner on whose side the earth was deposited. This is particularly relevant for rural properties on the Costa del Sol, where irrigation channels and drainage ditches may have been maintained informally for generations without any title documentation.
How does a buyer check for medianeria?
A buyer’s lawyer should review the nota simple for any recorded servidumbre de medianeria, but given Article 5 of the Ley Hipotecaria, the absence of a registry entry does not confirm absence of the servidumbre. A physical survey is the more reliable check. The surveyor inspects the signs listed in Article 573: whether the wall sits on the boundary or entirely on one plot, whether structural loads bear from one or both sides, whether the capping drains one way, and whether windows or openings exist on only one face. The property servitudes guide explains how servidumbres appear on the registry and how the Catastro-Registry coordination under Ley 13/2015 can reveal apparent easements through georeferenced plans.
Where a dispute over medianeria escalates to possession challenges, the interdicts guide covers the summary possession protection available under Article 250 of the Ley de Enjuiciamiento Civil, including the interdicto de retener and interdicto de recobrar, which can restore the status quo pending full litigation.
Frequently asked questions
- What is a pared medianera in Spanish law?
- A pared medianera is a wall shared in co-ownership by the owners of two adjoining properties. The Codigo Civil treats medianeria as a servidumbre regulated by Articles 571 to 579. Article 572 presumes that walls dividing contiguous buildings, gardens, courtyards or rural plots are medianera unless a title, a visible sign or other proof shows the wall belongs exclusively to one owner. The consequence is shared rights and shared obligations over the wall.
- How do you rebut the presumption of medianeria?
- Article 573 lists seven visible signs that rebut the presumption. These include windows or openings on only one side, a wall built entirely on one owner's land rather than straddling the boundary, structural loads from only one building, an albardilla (capping stone) draining toward only one property, and pasaderas (projecting stones) on only one face. Any of these signs means the wall belongs exclusively to the owner on whose side the sign appears.
- Who pays for repairing a party wall in Spain?
- Article 575 of the Codigo Civil requires all co-owners to share repair and maintenance costs in proportion to their respective rights. An owner may renounce the medianeria to avoid contributing, but only if the wall does not support their own building. If the wall holds up an owner's structure, that owner cannot escape liability by renouncing, because the wall's structural function for their property makes contribution obligatory.
- Can I raise a party wall without my neighbour's permission?
- Yes, under Article 577 any owner may raise a party wall at their own expense, indemnifying any temporary or permanent damage caused by the works. If the existing wall cannot support the greater height, the owner must rebuild it at their own cost, and any extra thickness must be built on their own land, not the neighbour's. Under Article 578, the other co-owners may later acquire rights in the raised portion by paying their proportional share.
- Can I open a window in a party wall?
- No, not without the other co-owner's consent. Article 580 of the Codigo Civil states that no medianero may open a window or any opening in a party wall without the consent of the other medianero. This rule connects the medianeria framework to the servidumbre de luces y vista rules in Articles 580 to 590, which also impose minimum distances and conditions on windows overlooking neighbouring property.
- Does the presumption of medianeria apply to fences and hedges?
- Yes. Article 572 extends the presumption to cercas, vallados and setos vivos (fences and live hedges) dividing rural plots, and to walls dividing gardens or courtyards in town or country. Article 574 adds that ditches and irrigation channels between properties are also presumed medianera unless there is a title or a visible sign to the contrary, such as excavated earth piled on only one side.
Sources and data
- Codigo Civil, Seccion Cuarta. De la servidumbre de medianeria (arts. 571-579, consolidated text) — BOE - Agencia Estatal Boletin Oficial del Estado
- Ley Hipotecaria, articulo 5 (consolidado, ultima actualizacion 03/01/2025) — BOE - Agencia Estatal Boletin Oficial del Estado
- STS 502/2025, 27 de marzo de 2025, Sala de lo Civil, Rec. (ECLI:ES:TS:2025:354) — Poder Judicial - Tribunal Supremo
- Resolucion de 23 de abril de 2026, de la DGSJFP, sobre servidumbre de medianeria horizontal (BOE-A-2026-16134) — BOE - Agencia Estatal Boletin Oficial del Estado
- Codigo Civil, Seccion Quinta. De la servidumbre de luces y vistas (arts. 580-585, consolidated text) — BOE - Agencia Estatal Boletin Oficial del Estado