Planting
Tree and shrub distance from the fence
Spain
Civil Code: 2 m from the dividing line for tall trees and 0.5 m for low trees/shrubs (in absence of a local ordinance or custom).
Distances and rules
Tall trees are planted farthest from the boundary, shrubs closest, so crown and roots do not shade or damage the neighbour’s plot or utilities.
Tall tree
At least 2 m
Spain — Civil Code, Art. 591 (planting distances)
Low tree / shrub
At least 0.5 m
Spain — Civil Code, Art. 591 (planting distances)
Important limitation
This is a planning aid, not a legal opinion. Before construction, check the local land-use rules, easements, the network/utility operator’s requirements and neighbour buildings.