Wills and gifts in Morocco: passing on your property during your lifetime or after death (wasiya, hiba, tanzil)
Will (wasiya), the one-third rule, bequests to an heir, mandatory bequest for grandchildren, tanzil, gift (hiba), itissar and sadaqa: what the Family Code and Law 39-08 say.
Checked against the official texts on November 28, 2026
How can you help a child who looks after you, protect an orphaned grandson or support a mosque, without leaving disputes behind you? Moroccan law offers two main tools. A will (wasiya) takes effect on death. A gift (hiba) transfers the property straight away, during your lifetime.
Neither tool gives you complete freedom. The Family Code protects the heirs: you can only bequeath part of your estate, and not to just anyone without precautions. Law No. 39-08 on the Real Rights Code sets the rules for gifts and sadaqa of real estate (a house, a flat, a plot of land).
This article explains what you can do, within which limits and in what form. It does not redo the calculation of each heir's share: for that, read our guide on the rules for dividing an inheritance.
The will (wasiya) explained
Under article 277 of the Family Code, a will is the act by which a person creates, over one third of their property, a right that becomes due on their death. The person making the will is the testator (al-moussi). The person who receives is the legatee (al-moussa lahou). The property passed on is the bequest.
It is an act that depends only on the testator's will (article 284).
Who can make a will?
The testator must be of age (article 279). The same article accepts a will made by an insane person during a lucid interval, by a spendthrift and by a person of weak mind. To be valid, a will must not contain contradictory, ambiguous or unlawful clauses (article 278). It may include a condition, provided it benefits the testator, the legatee or other people, and is not contrary to the aims of the law (article 285).
Who can receive?
Anyone who can lawfully become the owner of the bequeathed property (article 281), whether they already exist or are yet to exist (article 282), for example an unborn child (article 304). You can also leave a bequest to charitable works, places of worship or scientific institutions (articles 308 and 309).
Article 283 excludes two people: someone who is an heir at the time of death (unless the other heirs agree, see below), and someone who intentionally killed the testator, unless the testator made a new will in their favour before dying.
The bequest may be an asset or a right of use, for a fixed period or permanently (article 294). It simply has to be something that can be owned (article 292).
The one-third rule: what you can bequeath
This is the most important rule. A will can only cover one third of the property (article 277). The other two thirds go to the heirs under the inheritance rules.
- Share that can be bequeathed1/3
- Share reserved for the heirs2/3
This third is not calculated on everything the deceased owned. Article 301 states that it is calculated on what remains of the estate after paying the rights that must be settled before the bequest. Debts come first: article 299 forbids carrying out a will on an estate whose liabilities exceed its assets, unless the fully capable creditor agrees or the debts are extinguished.
Imagine that Karim leaves, once his debts are paid, three plots of land of equal value. His will can give at most the equivalent of one plot to someone who is not his heir. If he provided for more, the excess depends on the heirs' agreement.
What if several bequests together exceed one third? Legatees of the same rank share the third in proportion to their bequests (article 302).
Bequeathing to an heir: the other heirs must agree
A mother wants to leave her flat to the daughter who cared for her; a husband wants to favour his wife. The answer of article 280 is clear: a will cannot be made in favour of an heir, unless the other heirs permit it. The same article adds that this does not prevent the act from being drawn up: you can write the will, but carrying it out will depend on the other heirs.
Article 303 states when this agreement binds the heirs. It does if they ratified the will after the death, or during the testator's last illness, or if the testator asked for their permission in advance and they gave it. The same rule applies to a bequest exceeding one third. Note that the agreement only binds heirs with full legal capacity. Agreement given by a minor heir does not bind them.
Ask the assistant« Can I leave my flat to my wife in my will if my children agree? »Sourced answerWriting a valid will: form and proof
A will can be expressed in words, in writing or, if the person can neither speak nor write, by an unambiguous sign (article 295). But to be valid, article 296 requires a specific form. There are three options:
- an act drawn up by two adouls (adoul deed);
- an act drawn up by any official authority empowered to draw up deeds;
- a will written entirely in the testator's own hand and signed by them.
A handwritten will must also contain a sentence authorising its execution (article 297), for example: I authorise the execution of this will after my death. Without this statement, it may be challenged.
In a serious emergency, when it is impossible to draw up a deed or to write, article 296 accepts an oral will made before the witnesses present, whose testimony is then given before the judge, who immediately informs the heirs.
Finally, the testator may send the judge a copy of their will, or of its revocation, so that a file is opened in their name (article 296). It is a good way to prevent a will from being lost or hidden.
- Check your capacitythe testator must be of age (article 279)
- Calculate the thirdafter paying debts and rights (articles 299 and 301)
- Choose the legateea non-heir, or obtain the heirs' agreement (articles 280 and 283)
- Choose the formadoul deed, official deed or signed handwritten will (article 296)
- Authorise executionmandatory sentence in a handwritten will (article 297)
- Appoint an executorthe person in charge of carrying out the will (article 298)
- File a copyoptional sending to the judge to open a file (article 296)
Revoking, refusing and carrying out a will
Changing your mind at any time
A will is never final while its author is alive. Under article 286, the testator may go back on the will and cancel it, even if they had promised not to. They may also, at any time, in good health or ill, add conditions, add another legatee or cancel only part of it.
Revocation may be express (I cancel my will), implied, or result from an act, such as selling the bequeathed property (article 287). If the same asset is bequeathed to two people one after the other, the second will cancels the first (article 306).
Article 314 lists the cases in which a will lapses: the legatee dies before the testator, the specific asset is lost before the death, the testator revokes the will, or the adult legatee refuses the bequest after the death.
The legatee may refuse
A named legatee with full capacity may refuse the bequest; if they die, this right passes to their heirs (article 289). The refusal only counts after the testator's death (article 290). One may also accept part and refuse the rest (article 291). On the other hand, a bequest to unnamed beneficiaries, for example to the poor, does not need to be accepted and cannot be refused by anyone (article 288).
Who carries out the will?
Article 298 entrusts execution to the person appointed by the testator. If none was appointed and those concerned cannot agree, the judge appoints someone for this task. Appointing a trusted executor yourself therefore avoids going to court.
Orphaned grandchildren: mandatory bequest and tanzil
The mandatory bequest (wasiya wajiba)
Imagine that Fatima loses her son Youssef, who leaves two children. Years later, Fatima dies. Her grandchildren risk receiving nothing, because their father died before her. The law has provided for this case.
Article 369 grants grandchildren of a son or daughter who died before their parent, or at the same time, a mandatory bequest within the limit of one third of the estate. This bequest is due by law, even if Fatima wrote nothing. It equals the share their father or mother would have received had they survived, without exceeding one third (article 370).
Article 372 specifies the beneficiaries: the son's children, the daughter's children and the son's son's children, however far down. A boy receives twice the share of a girl. Each parent excludes their own children, but not those of another, and each branch takes only its ascendant's share.
Article 371 sets three limits. There is no mandatory bequest if the grandchildren already inherit from their grandfather or grandmother. Nor is there one if the grandparent already bequeathed to them, or gave them free of charge during their lifetime, the equivalent of their share. If they received less, it must be topped up; if they received more, the excess depends on the heirs' agreement.
Document generatorClaim for the obligatory legacy of grandchildren (wasiya wajiba)8 MADTanzil: placing someone in the rank of an heir
Tanzil means bringing a person who is not an heir into the same rank as an heir (article 315). Article 316 gives examples of wording: such person will inherit with my child, make such person inherit from my property, or, for a grandparent, make my grandchild inherit with my children. Tanzil is made like a will and follows its rules (article 316); whatever the tanzil rules do not cover is governed by the rules on wills (article 320).
The calculation depends on the heirs present and the words used (articles 317 and 318). If several grandchildren, boys and girls, are placed in their father's rank, they share his portion, a boy receiving twice as much as a girl (article 319). The wording matters: get help when drafting.
Giving during your lifetime: gift (hiba) and sadaqa
Under article 273 of Law No. 39-08, a gift is the transfer, without consideration and during the donor's lifetime, of real estate or a real right in real estate to the donee. Unlike a will, ownership changes hands immediately.
Conditions of validity
The donor must have full capacity and own the property on the day of the gift (article 275 of Law No. 39-08). If the donee lacks capacity, their legal representative accepts; failing that, the judge appoints someone (article 276 of Law No. 39-08).
Article 277 of Law No. 39-08 declares void a promise to give, a gift of someone else's property and a gift of property not yet owned. A person whose assets are swallowed up by debts cannot make a gift either (article 278 of Law No. 39-08).
Form and taking possession
A gift is formed by the donor's offer and the donee's acceptance. It must be made by authentic deed, on pain of nullity (article 274 of Law No. 39-08). A simple paper signed between family members is therefore not enough.
Taking possession (hiyaza) matters a lot. The same article provides that registration in the land registers counts as actual possession and vacating of the property by the donor, if the property is registered or being registered. If it is not, filing an application for registration has the same effect. The costs of the deed, handover and transfer of ownership are borne by the donee, unless agreed otherwise (article 282 of Law No. 39-08).
Mind the timing: if the donor dies before the donee has accepted, the gift is void (article 279 of Law No. 39-08). The same applies if the donee dies before accepting; their heirs then cannot claim anything.
- Check the conditionscapable donor who owns the property, not swallowed up by debts
- Offer and acceptancethe donee or their representative accepts during the donor's lifetime
- Authentic deedmandatory on pain of nullity
- Land registrationcounts as possession for registered property
- Unregistered propertyfiling an application for registration
Gifts during a last illness
Many people think that a gift made in hospital shortly before death escapes the one-third rule. That is wrong. Article 280 of Law No. 39-08 applies the rules on wills to a gift made during the last illness. It is therefore treated as a bequest: the one-third limit applies, and the other heirs must agree if it benefits an heir. The only exception in this text: if the donor has no heir at all, the gift is valid for the whole property.
Taking back a gift made to a child (itissar)
Itissar is the donor's retraction. Article 283 of Law No. 39-08 allows it in two cases: a father or mother who gave to their child, minor or adult, and a donor who has become unable to support themselves or those they must maintain.
The law strictly frames this right. Under article 284 of Law No. 39-08, the donor may take back only if the retraction is formally attested, provided for in the deed of gift and accepted by the donee. It takes place in the donee's presence and with their consent, or by a judgment cancelling the gift (article 286 of Law No. 39-08).
Article 285 of Law No. 39-08 lists eight cases where retraction is impossible, including: a gift between spouses while the marriage lasts, the death of the donor or donee, serious illness of either (the right revives on recovery), a marriage of the donee concluded because of the gift, sale of the whole property, or works that significantly increased its value.
If the retraction succeeds, the gift is cancelled and the property returns to the donor (article 287 of Law No. 39-08), who reimburses the donee for the necessary expenses incurred on it.
Document generatorApplication for revocation of a real estate donation (itissar)16 MADSadaqa, a gift with no return
Sadaqa is the transfer of property without consideration, made to please God (article 290 of Law No. 39-08). It follows the rules on gifts, with two important differences set by article 291 of Law No. 39-08: a sadaqa can never be taken back, and the property can only return to its giver through inheritance.
Will or gift: which to choose?
The table below sums up the main differences.
| Will (wasiya) | Gift (hiba) |
|---|---|
| Takes effect on death (article 277) | Immediate transfer, during the donor's lifetime (article 273 of Law No. 39-08) |
| Limited to one third, unless the heirs agree (articles 277 and 303) | The one-third rule applies if made during the last illness (article 280 of Law No. 39-08) |
| Not to an heir without the others' agreement (article 280) | May benefit a child (article 283 of Law No. 39-08) |
| Adoul deed, official deed or signed handwritten will (article 296) | Authentic deed mandatory (article 274 of Law No. 39-08) |
| Revocable at any time (article 286) | Retraction limited to specific cases (article 285 of Law No. 39-08) |
| The legatee may refuse after the death (article 290) | The donee must accept before the donor's death (article 279 of Law No. 39-08) |
A will suits someone who wants to remain the owner and be able to change their mind. A gift suits someone who wants to help a person right away, for example a child who is getting married.
Ask the assistant« My father wants to give me his house during his lifetime: what must we do for it to be valid? »Sourced answerTemplates to prepare a will or a transfer
Key takeaways
- A will covers only one third of the property, calculated after paying debts and rights.
- Bequeathing to an heir, or beyond one third, requires the agreement of the other heirs with full capacity.
- A handwritten will must be written and signed by the testator and contain a sentence authorising its execution.
- Grandchildren of a son or daughter who died before their parent are entitled to a mandatory bequest, within the one-third limit.
- A gift of real estate requires an authentic deed and taking possession; made during the last illness, it follows the rules on wills.
- A parent may, in limited cases, take back a gift made to their child; a sadaqa, never.
For a real case, especially if there is a dispute between heirs, get help from an adoul, a notary or a lawyer. The texts are available on the official Adala portal.
Frequently asked questions
Can I leave all my property to an association?
Not without agreement. A will can only cover one third of the property (article 277 of the Family Code). Beyond that, the bequest is only carried out with the agreement of the heirs with full capacity (article 303). Only a gift made during the last illness by a person with no heir at all is valid for the whole property (article 280 of Law No. 39-08).
Is a handwritten will valid without adouls?
Yes, if it is written in the testator's own hand and signed by them (article 296 of the Family Code), and if it contains a statement authorising its execution (article 297). You can send a copy to the judge so that a file is opened.
Are my grandchildren whose father has died entitled to anything?
Yes, in principle. Grandchildren of a son or daughter who died before their parent are entitled to a mandatory bequest equal to their parent's share, without exceeding one third of the estate (articles 369 and 370 of the Family Code), unless they already inherit or have already received the equivalent (article 371).
Can I take back the house I gave to my son?
Only in the cases provided for. A father or mother may retract a gift made to their child (article 283 of Law No. 39-08), if the retraction was provided for in the deed and accepted (article 284 of Law No. 39-08), and if there is no obstacle, such as resale of the property or a marriage concluded because of the gift (article 285 of Law No. 39-08).
Is a gift made just before death valid?
If made during the last illness, it is treated as a will (article 280 of Law No. 39-08): it is limited to one third and, if it benefits an heir, it depends on the other heirs' agreement.
Who carries out the will if no one was appointed?
If the testator appointed no one and those concerned do not agree, the judge appoints the person in charge of execution (article 298 of the Family Code).
Official sources
- Family Code (Law No. 70-03), art. 277 to 299, 301 to 304, 306, 308, 309, 314 to 320 and 369 to 372
- Law No. 39-08 on the Real Rights Code, art. 273 to 280, 282 to 287, 290 and 291
General information, up to date as of the date shown. For a specific situation, ask the assistant or consult a professional.
