Key facts
- Share-sale gain, non-resident individual
- 20% flat on the net gain
- Share-sale gain, non-resident company
- IS at 20% / 35%
- Liquidation bonus
- Taxed like a dividend (treaty WHT applies)
- DGI clearance
- Required before the bank transfers proceeds
- Repatriation guarantee
- Declared capital + retained earnings + net gains
- Treaty protection
- Many treaties move share gains to your residence country
Every investment thesis ends with an exit, and in Morocco the exit is taxed and regulated at least as carefully as the entry. This chapter closes the guide's lifecycle: the routes out, the tax each one triggers, the clearance your bank requires, and how the repatriation guarantee applies to your proceeds.
The three exit routes
| Route | What you sell | Main tax on you | Best for |
|---|---|---|---|
| Share deal | Your shares or parts in the Moroccan company | 20% flat on the gain (individual) or IS at 20%/35% (company) | Clean break; buyer keeps the company |
| Asset deal | The business assets (fonds de commerce) | Gain taxed as above; buyer pays progressive registration duty | Buyer wants assets without the history |
| Liquidation | Wind the company down | Final IS, then liquidation bonus taxed like a dividend | No buyer; end of activity |
Selling your shares
The tax
A non-resident individual selling shares in a Moroccan company pays a flat 20% on the net gain (sale price minus subscribed capital and allowable costs). A non-resident company seller pays corporate tax on the gain at the standard scale: 20% below MAD 100 million of profit, 35% at or above (chapter 5).
Gains on listed shares follow different rules, including the exemption after two years of holding covered in chapter 9.
The treaty lever
Most of Morocco's treaties contain an "alienation of property" article modelled on the OECD pattern: gains from selling shares are taxable only in the seller's country of residence, unless the company derives more than half its value from Moroccan real estate. If your treaty follows the pattern, a share exit can escape Moroccan tax entirely (your home country still taxes the gain). Check the article before you sign - after the deed is registered it is too late to restructure.
Deal costs
Transfers of SARL parts attract proportional registration duty on the price; transfers of SA shares are not subject to it. Asset deals (fonds de commerce) carry progressive registration duty on the buyer side, which usually makes share deals cheaper for both parties. Your notary confirms the exact duties before signature.
The clearance mechanics
A sale by a non-resident is not complete when the price is paid - it is complete when the tax is cleared and the funds leave:
- Sign the transfer deed (directly or by notarised power of attorney)
- Declare the gain and pay the tax due - in practice the buyer's counsel often secures the tax formalities as a closing condition
- Obtain the DGI clearance (attestation de régularisation) proving taxes are settled
- Your bank transfers the proceeds abroad against that clearance and your original Office des Changes declaration
Skipping step 3 does not delay the tax; it delays your money.
Liquidating the company
When there is no buyer, a liquidation proceeds in three taxable steps:
- Final corporate tax return: the company's results up to the liquidation are taxed at the normal IS scale
- Sale of assets and payment of liabilities: each disposal follows its own rules (real-estate gains, VAT on equipment, etc.)
- Liquidation bonus to shareholders: taxed exactly like a dividend - for a foreign parent, withholding at the treaty rate (chapter 7)
A liquidation takes months, not weeks: plan the cash-flow timing with your accountant before announcing anything to staff or creditors.
The repatriation guarantee
The IGOC guarantee you secured on entry covers the exit:
| Component | Repatriable |
|---|---|
| Declared foreign-currency capital | Yes, in full |
| Retained earnings (after IS) | Yes |
| Net after-tax sale or liquidation proceeds | Yes |
| Undeclared amounts paid into the company | No |
The proof is documentary: the original declaration certificate, audited accounts showing retained earnings, and the DGI clearance. Keep the trail from day one - it is the difference between a two-week transfer and a two-month file.
A worked exit
You invested MAD 10 million of declared capital in a subsidiary years ago. It accumulated MAD 5 million of retained earnings after tax, and you sell 100% of the shares for MAD 25 million as a non-resident individual:
Sale price MAD 25,000,000
- Subscribed capital MAD 10,000,000
- Taxable gain MAD 15,000,000
- Tax at 20% MAD 3,000,000
Net proceeds MAD 22,000,000
The buyer pays MAD 25 million; you remit MAD 3 million to the DGI; your bank transfers MAD 22 million abroad against the clearance - provided a treaty does not move the gain out of Moroccan tax altogether, in which case the full 25 million is repatriated against documentation.
Plan the exit at the entry
Three habits make exits painless: declare every foreign-currency contribution to the Office des Changes (chapter 2); choose the holding structure with your treaty's dividend and alienation articles in mind (chapter 7); and keep clean audited accounts so retained earnings are provable (chapter 12).
And if your plan is not to leave but to stay - the next chapter covers investor residency and tax residence.
Your checklist
- Model the after-tax exit before you invest: the exit determines your real return.
- Check the 'alienation of property' article of your tax treaty before signing a sale: many treaties tax share gains only in your country of residence unless the company is real-estate rich.
- For a SARL, budget the proportional registration duty on the transfer of parts; SA share transfers are not subject to it.
- Obtain the DGI tax clearance (attestation de régularisation) before asking your bank to transfer the proceeds.
- Keep the Office des Changes declaration certificate from your initial investment: it is the basis of the repatriation guarantee.
- In a liquidation, plan the timing: final IS return, then distribution, then transfer.
Run the numbers
Frequently asked questions
Is there an exit tax in Morocco?
There is no separate exit tax. Selling your shares realises a capital gain: 20% flat for a non-resident individual, corporate tax at 20% or 35% for a non-resident company. Under many double tax treaties, gains on shares are taxable only in your country of residence unless the company derives most of its value from Moroccan real estate.
Can I repatriate the full sale price?
Yes, if your investment was declared to the Office des Changes: the guarantee covers the declared capital, retained earnings and the after-tax sale proceeds. Your bank will ask for the DGI tax clearance before executing the transfer.
What happens if I liquidate the company instead of selling it?
The liquidation produces a final corporate tax return on the company's last results, then a liquidation bonus distributed to shareholders. The bonus is taxed like a dividend: withholding at the treaty rate for a non-resident shareholder.
Do I have to be in Morocco to sign the sale?
No. The transfer deed can be signed through a notarised power of attorney, and filings handled by a Moroccan tax representative. The buyer's notary or counsel usually coordinates the clearance formalities.
Related reading
Official sources
This guide is general information, not tax, legal or investment advice. Rules change with each Finance Act: confirm your situation with the DGI, the relevant authority or a licensed adviser.