Key points
A neighbour dispute starts with a question of fact: have the land measured and compared with the title plan before arguing about the law.
On titled land, the title and its land plan are authoritative and the passage of time gives nothing against the registered owner; on unregistered land (melkia), long possession can have legal effects.
The Real Rights Code (Law No. 39-08) governs party walls, access for landlocked plots, views onto a neighbour, water run-off and abnormal neighbourhood nuisances.
A neighbour who built in good faith on a strip no wider than 50 cm is not necessarily ordered to demolish: the court may instead require the owner of the strip to sell it for fair compensation (Article 238).
The surveyor measures and documents, the judicial officer records findings, the lawyer advises and acts, the judge decides, the land registry records, the municipality enforces planning rules.
Never move a boundary marker and never demolish anything yourself: you would lose your advantage and could incur liability.
Establish the facts before arguing
Most disputes between neighbours concern a line that each of them "sees" in a different place. As long as nobody has measured, everyone is right. So start with an objective record:
Gather the documents: a recent property certificate and the land plan if the land is titled; the deed of sale, melkia or inheritance deed if it is not; the building permit and approved plans if a building is involved; earlier letters and agreements.
Photograph and date: markers, wall, fence, building site, cracks, water flowing after rain. Keep the original files.
Have the site surveyed by a surveying engineer registered with the Order (ONIGT): they tie their measurements to the official coordinate system, locate the title boundary and quantify the difference (footprint, length, area).
Compare the survey with the title plan, the subdivision plan or the approved plans. To check yourself that your documents are consistent with one another, the tool Check the consistency of my land file helps spot differences in numbers, areas or names.
Invite the neighbour to attend the measurements: their presence does not change the boundary, but it makes the result harder to dispute.
This quantified plan is then used for everything: negotiating, contacting the municipality, supporting an expert assessment or a lawsuit. Boundary marker reinstatement is explained in our boundary guide, and reading plans in How to read a survey plan.
Titled land or melkia land: what changes
Titled land (land title, الرسم العقاري). The land title is final and cannot be challenged (Article 62 of the Dahir of 12 August 1913 on land registration) and its plan is the reference. Prescription cannot give anyone a real right over registered property against the registered owner (Article 63 of the dahir), and the Real Rights Code excludes such property from acquisition by possession (Article 261). A wall built in the wrong place twenty years ago does not move the boundary.
Unregistered land (held under a melkia or an adoul deed). The boundary is often described by the neighbours' names or by natural landmarks, and proof rests on deeds and possession (الحيازة). Possession that meets the legal conditions establishes ownership of unregistered property unless proven otherwise (Article 3 of the Code). It requires in particular holding the land as an owner, without dispute and without interruption (Articles 240 and 245); Article 250 sets its length at ten full years where the owner, present and aware, stays silent without impediment, and Article 251 at forty years between relatives who are not in conflict. A lawsuit interrupts this period (Article 257).
Land being registered. If a neighbour's registration application covers part of your land, object by filing an opposition: during the boundary survey, with the engineer (Article 25 of the dahir), and at the latest within two months of the publication in the Official Bulletin of the notice closing the boundary survey (Article 24). See Melkia or land title.
Watch out
On unregistered land, letting an occupation continue without reacting can be costly. Have the situation recorded and consult a lawyer without delay.
Your neighbour has built on your land
An owner may claim back property that a third party has wrongfully taken, and ask for any source of nuisance to be removed (Article 22 of the Real Rights Code). What follows depends on whether the builder acted in good or bad faith:
Builder in bad faith, without the owner's knowledge: the owner may keep the structure by paying the value of the materials, or require the builder to remove it at their own cost and restore the land (Article 237).
Good-faith encroachment of no more than 50 centimetres
if an owner builds across their boundary in good faith, on a strip no wider than 50 cm, the court, after weighing both parties' interests, may order removal of the part built on the neighbour's land at the builder's expense, or require the owner of the occupied strip to transfer it to the builder for fair compensation (Article 238).
Beyond that, or if good faith is disputed, it is for the court to assess on the evidence.
Measurement is therefore decisive: a few centimetres more or less, and a different rule applies. The plan must state the maximum width of the encroachment and its area.
If the boundary itself is uncertain, Article 70 allows any owner to compel the neighbour to fix the limits of their adjoining properties, the cost being shared. And if the two neighbours agree to transfer or exchange a strip of titled land, the agreement must be set out in a deed, with a technical file, and then registered: under Article 67 of the dahir, an agreement that modifies a real right only takes effect, even between the parties, from its registration on the title.
The party wall (الحائط المشترك)
Under Article 28 of the Code, a wall separating two properties is presumed to be a party wall, up to the end of the common line, unless the contrary is proven. Proof to the contrary may come from deeds, the title plan or a survey showing that the wall lies entirely on one side of the boundary. What the Code says:
Use
each co-owner may use it for its intended purpose, for example resting beams on it, without encroaching on the neighbour's rights or overloading it (Article 29).
Costs
repairs and renovation are shared, each according to their share (Article 29).
Building against it or attaching new installations requires the other co-owner's consent (Article 30).
Raising it
allowed for a serious reason, entirely at the expense of the person raising it, who must also keep the wall sound; if the wall cannot bear it, they rebuild it at their own cost, taking the extra thickness on their side (Article 30). The neighbour may later acquire joint ownership of the added part by paying their share (Article 31).
Windows
no window or opening in a party wall without the neighbour's consent (Article 66).
Demolition
an owner may not demolish an existing wall at will, without a valid reason, if this harms the neighbour whose property the wall screens (Article 76).
A shared private lane (a derb or private alley serving several houses) follows similar logic: no co-owner may alter it without the others' agreement, nor close access to it while the others still need it (Articles 32 and 33).
Right of way, views, rainwater and nuisances
An easement (servitude, حق الارتفاق) is a charge on one property for the benefit of a property belonging to another owner (Article 37); it arises from the natural situation of the land, from the law or from an agreement (Article 38). The owner of the burdened land may do nothing that reduces its use, but may offer another equally convenient location (Article 47). The most common cases:
Right of way (حق المرور)
the owner of a landlocked plot, with no access or insufficient access to the public road, may obtain a passage over neighbouring land, for adequate compensation, where it causes least harm (Article 64). If the plot became landlocked through a division, the passage is claimed first over the plots created by that division (Article 65).
Views (حق المطل)
windows, balconies or similar openings overlooking the neighbour's land may only be made at a distance of two metres, or one metre for oblique views, except onto a public road; the distance is measured from the outer face of the wall or the outer line of the balcony to the boundary (Article 68).
Building in front of a view
unless agreed otherwise, anyone may build up to the limit of their land regardless of the neighbour's windows (Article 67). There is therefore no general right to keep a view; heights and setbacks are governed by planning rules (see Development plan and zoning).
Run-off water
lower land receives water that flows naturally from higher land and may not block it with a barrier; the owner of the higher land may do nothing that aggravates that flow (Article 60). If the use of rainwater aggravates it, compensation is due (Article 61).
Roofs and balconies
anyone who builds must arrange them so that rainwater runs onto their own land and not onto the neighbour's (Article 62).
Abnormal nuisances
ordinary neighbourhood inconveniences cannot be stopped, but those exceeding the usual threshold can; an administrative permit does not prevent such a claim (Article 71). An owner must also not use their property in a way that seriously harms the neighbour (Article 21).
Emergencies. If you seriously fear that a neighbouring structure may collapse, or if excavations next door threaten your building, Article 78 gives the urgent applications judge jurisdiction to order the necessary measures or a halt to the works.
Titled land. A contractual easement only exists with regard to third parties once it is registered on the title (Article 66 of the dahir). A right of way granted orally by the previous owner does not protect the buyer: have it created by deed and registered, with a plan fixing its route. For farmland, see also Access and easements in rural areas.
Official report, plan, expert assessment: building solid evidence
Three types of evidence complement one another; none replaces the others.
The surveying engineer's plan
it locates the boundary from the official documents and quantifies the difference. It answers "where?" and "how much?".
The judicial officer's report (المفوض القضائي, often called a bailiff or huissier): it describes what the officer sees on a given date (building work, cracks, closed path, water flowing), without giving an opinion. Law No. 46-21, in force since September 2025, allows them to draw up such factual reports on a court order or at the direct request of the person concerned. Useful when the situation may change quickly.
The expert assessment
amicable, commissioned by you or by both neighbours together; or judicial, ordered by the court, which appoints the expert and sets the assignment. Both are explained in our expert assessment guide.
An amicable assessment carried out in the presence of both parties carries more weight, but can still be disputed: in a lawsuit, the judge may order their own assessment.
Legal update
Since November 2026, court-appointed experts have been governed by Law No. 01-24, which replaced Law No. 45-00. The expert is paid as set by the court and may not receive any sum directly from the parties. See Law 01-24: what changes.
Agreement, municipality, court: who does what
There are three routes, often in this order. What follows is general guidance, not legal advice.
An amicable agreement
with the plan in hand, many neighbours acting in good faith agree to move a fence back or fix a gutter. Put the agreement in writing, signed by both parties, with the plan attached. If it changes a boundary or creates an easement on titled land, a deed drawn up by a notary, an adoul or an authorised lawyer is required, followed by registration at the land registry.
The municipality and planning control
if the neighbour builds without a permit or beyond what is authorised, anyone may file a complaint with the planning inspectors (Article 66 of Law No. 12-90, as rewritten by Law No. 66-12). This procedure punishes the planning offence; it does not by itself settle your rights over the boundary. See Unauthorised construction.
The court
with a lawyer, who chooses the procedure, the competent court and the claims (restitution, demolition, compensation, urgent application). For titled land, a claim to the property only takes effect against third parties from its provisional entry (prénotation) on the title (Article 13 of the Code): your lawyer will judge whether to request it.
In short: the surveying engineer measures, reinstates markers and documents; the judicial officer records findings; the notary, adoul or lawyer draft deeds; the lawyer represents you; the court-appointed expert informs the court; the judge decides; the land registrar records rights; the municipality and planning inspectors oversee construction.
Our role
A surveying engineer does not say who is legally right and does not move a titled boundary: they record, measure and quantify. Our firm in Fez carries out these surveys; for legal strategy, see a lawyer.
What not to do
Moving or pulling out a marker, even "to put it back in the right place": the land registration dahir punishes the destruction, damage or moving of registration markers with the penalties of Article 606 of the Criminal Code, in addition to the cost of reinstatement (Article 105). Only an authorised professional reinstates a marker.
Demolishing the neighbour's wall or building yourself: even if it encroaches, demolition is for the court to order. Taking the law into your own hands may make you liable and weaken your case.
Building a "retaliation" wall on a disputed line or closing an existing path: you would create a second dispute.
Signing an agreement without a plan
"the neighbour moves back a little" cannot be carried out or registered.
Letting time pass on unregistered land, or after the closing notice of a neighbour's boundary survey: opposition deadlines and possession work against you.
Paying a court-appointed expert outside the channels set by the court: Law No. 01-24 prohibits it.
To have an encroachment measured or markers reinstated, describe your situation on the page Boundary marking and reinstatement or request a quote.
Frequently asked questions
My neighbour built 30 cm onto my land in good faith. Must they demolish?
Not necessarily. Under Article 238 of the Real Rights Code, if a good-faith encroachment is no wider than 50 cm, the court weighs both parties' interests: it may order removal at the builder's expense, or require you to transfer the occupied strip to them for fair compensation. Hence the importance of a plan that states the width precisely.
How do I know whether the wall between our houses is a party wall?
The law presumes that a wall separating two properties is a party wall unless proven otherwise (Article 28). Proof may come from deeds, the land plan or a survey showing that the wall lies entirely on one side of the boundary. A surveying engineer can locate the wall relative to the title boundary.
My neighbour is adding a floor and blocking my view and sunlight. Can I stop it?
The Code gives no general right to a view: anyone may build up to the limit of their land (Article 67). First check that the building complies with its permit and the development plan (height, setbacks); if not, the municipality and planning inspectors can be contacted. If the nuisance exceeds the usual neighbourhood threshold, Article 71 allows you to ask for it to be removed, even if the neighbour holds a permit. Talk to a lawyer.
My neighbour has closed the only path to my land. What can I do?
If your land has no sufficient access to the public road, Article 64 allows you to obtain a passage over neighbouring land, for adequate compensation, where it causes least harm. If the passage already exists as an easement, the neighbour may do nothing that reduces its use (Article 47). Have the closure recorded, then consult a lawyer; for titled land, check whether the easement is registered.
I found that a boundary marker has been moved. Should I put it back?
No. First have the situation recorded, then have the exact position located by a surveying engineer from the title plan. Moving registration markers is punished by reference to Article 606 of the Criminal Code (Article 105 of the land registration dahir); seek a lawyer's advice before filing any complaint.
Rainwater from my neighbour's roof falls onto my land. Is that allowed?
No: anyone who builds must arrange roofs and balconies so that rainwater runs onto their own land and not the neighbour's (Article 62). On the other hand, lower land must receive the natural flow of water from higher land (Article 60). Dated photos taken during rain and a plan of the levels help tell the two cases apart.
Official sources
- Dahir No. 1-11-178 of 22 November 2011 promulgating Law No. 39-08 on the Real Rights Code, Articles 3, 13, 21, 22, 28 to 38, 47, 60 to 68, 70, 71, 76, 78, 237, 238, 250, 251, 257 and 261 (Official Bulletin No. 7158 of 5 January 2023, official translation edition, in French)Official Bulletin, reproduced by FAOLEX (FAO)
- Real Rights Code (Law No. 39-08), Arabic text: party wall, easements, right of way, right of view, land chargesNational Agency for Land Registration, Cadastre and Mapping (ANCFCC)
- Dahir of 12 August 1913 on land registration, as amended (notably by Law No. 14-07), Articles 24, 25, 62, 63, 66, 67 and 105, in the collection of legal texts on the land registration system (in French)ANCFCC collection, reproduced by FAOLEX (FAO)
- Report of the Committee on Justice, Legislation and Human Rights on Bill No. 46-21 on the organisation of the judicial officers' profession (powers, including factual reports), in ArabicHouse of Councillors
- Surveying engineers' professions: land expertise (technical opinions in land disputes, factual reports), in FrenchNational Order of Surveying Engineers (ONIGT)
This guide provides general information, up to date as of the date shown. It does not replace the official texts or a professional review of your file. Ask us about your situation.