For fences located on the property line, a notarial agreement between neighbours is necessary and advisable. Otherwise, the neighbour who builds the fence can be sued for trespassing on land that they do not own. Legally, the fencing will be considered a shared partition and the construction costs can be shared between the beneficiaries. A simple and hassle-free option is to build the fence only on one's own land, on the side of the property line where there is sufficient land, of course. It is important to always check and comply with the local laws and regulations regarding property boundaries and fencing.