In Spain, a shared roof is generally a common element, so a resident cannot install solar panels there unilaterally; approval, cost-sharing and administrative requirements depend on the project.
Spain’s Horizontal Property Law treats a building’s roof as a common element in many cases. A resident who wants to install solar panels must therefore review the building’s community agreements and obtain any approvals required before beginning work.
Article 17.1 allows a common or private renewable-energy installation to be approved with the support of one-third of the community’s members, also representing one-third of the ownership shares. That approval does not make the roof private or permit unilateral construction.
The community cannot automatically charge installation, conservation or maintenance costs to owners who did not expressly vote in favor. How expenses are divided depends on the way the project was proposed and approved.
An unauthorized installation can lead the community to demand that the work stop and, if necessary, seek a court order for cessation, repairs or removal. In serious cases, Article 7.2 allows a judge to order loss of use of the dwelling or premises for up to three years, although that is an exceptional measure rather than an automatic penalty.
Licenses and penalties for unauthorized works vary according to municipal and regional planning rules. Owners should consult the community, confirm the required majority and agreements, and check technical and municipal permits before investing.