Why your foreign invoice now concerns the Moroccan tax authority
A Moroccan accountant receives an invoice from a French hosting provider with no Moroccan VAT line. An American SaaS vendor suddenly asks for a tax identifier (IF). A European domain registrar adds 'VAT Morocco 20%' to its invoice. All three situations share the same cause: Morocco's 2024 Finance Law (Law no. 55-23, published in the Official Bulletin) introduced Article 115 bis into the General Tax Code, which subjects to VAT any dematerialized remote service provided by a foreign provider without an establishment in Morocco to non-VAT-registered clients whose registered office, establishment or tax domicile is in Morocco. The logic mirrors the approach adopted by the European Union since 2015: the country of consumption taxes, not the country of the provider. The most common objection — 'my invoice comes from a French provider, this has nothing to do with Morocco' — is precisely what the law is designed to correct. It is the foreign provider who owes the VAT, and it is the provider's responsibility to collect it from the Moroccan client and remit it to the DGI.
What the measure covers in practice
- Web hosting and VPS — provision and hosting of websites, virtual private servers, cloud infrastructure rented remotely by a provider with no office in Morocco.
- Domain names — registration, renewal and transfer of domain names invoiced by a foreign registrar to a client whose tax domicile is in Morocco.
- SaaS software — subscriptions to business applications, collaboration tools, control panels and development platforms delivered online.
- Digital content — video and audio streaming, media libraries, online training, databases and any content delivered in dematerialized form.
- Remote maintenance — technical interventions, updates and support included in a service contract executed without physical presence.
- Platform subscriptions — marketplaces, monitoring tools, data aggregators and any platform accessible by recurring subscription.
- Online advertising — ad space bought on third-party networks by a non-VAT-registered advertiser whose tax domicile is in Morocco: what counts is the client's situation, not the audience targeted.
Legal basis: 2024 Finance Law and December 2025 decree
Article 115 bis of the General Tax Code, introduced by the 2024 Finance Law and amended by the 2025 Finance Law (Law no. 60-24), defines the obligations of non-resident remote service providers that have not accredited a tax representative: register on the DGI electronic platform and obtain a tax identifier, declare each quarter the turnover realized in Morocco with non-VAT-registered clients (the 2024 version required monthly returns), remit the corresponding VAT at the same time without any right of deduction, and keep a register of services retained for ten years. The 2025 Finance Law also specified when a client is deemed to have its tax domicile in Morocco (Article 88-2° of the General Tax Code): a Moroccan billing address, a bank card issued by an institution established in Morocco, a Moroccan IP address or Morocco's international dialling code. Decree no. 2-25-862 of November 27, 2025, supplementing Decree no. 2-06-574 on VAT application, was published in Official Bulletin no. 7464 of December 11, 2025 (Arabic edition), then in the official translation edition no. 7466 of December 18, 2025. It sets out the procedures for registration, electronic filing, electronic payment and the register, and entered into force six months after publication, i.e. on June 11, 2026. The applicable rate is the standard Moroccan VAT rate: 20%. Article 115 bis provides no specific rate for these services.
Who owes the tax: foreign provider or Moroccan client
The measure targets foreign providers without a permanent establishment in Morocco who provide remote services to non-VAT-registered Moroccan clients — individuals and entities that are not themselves subject to VAT. If the Moroccan client is itself VAT-registered (a company, an accounting firm, an agency), Article 115 of the General Tax Code applies instead: absent a representative accredited by the provider, the Moroccan client declares and pays the tax due in its own VAT return (reverse charge), and the foreign provider does not need to register for that flow. In practice, a foreign hosting provider or SaaS publisher with a mixed Moroccan client base — VAT-registered professionals and non-registered individuals or micro-businesses — must distinguish these two flows in its invoicing. For the non-registered flow, it collects and remits. For the registered flow, it invoices exclusive of VAT and leaves the client to self-assess.
Registering on tax.gov.ma: the steps documented by the DGI
Access the DGI portal
Go to
www.tax.gov.ma, SIMPL Teleservices section. The 'Taxation on digital services' teleservice is the dedicated electronic platform provided for by Article 115 bis; the DGI publishes a practical guide alongside it.Create a foreign provider account
Enter in particular the company name, the website or app, the registered address, the tax identification number in the country of residence where applicable, the contact details of the company's representative(s) (contact), the service provided and the date of the first service supplied in Morocco. This contact is not a tax representative: the platform is precisely the route provided for when no tax representative has been accredited.
Obtain a Moroccan tax identifier (IF)
Upon completion of registration, the DGI assigns a tax identifier to the provider and sends it electronically. The provider must also make sure its client has its tax domicile in Morocco, based on the indicators of Article 88-2° of the General Tax Code.
Maintain a register of Moroccan transactions
The decree specifies the content of the register of services supplied in Morocco: client identity, the client's VAT status (registered or not), service provided, net amount and corresponding tax, date and method of payment. The General Tax Code requires it to be kept for ten years and made available electronically to the DGI on request.
Submit the quarterly declaration
Before the end of the first month following each calendar quarter (before January 31, April 30, July 31, October 31), submit via SIMPL the declaration of turnover realized in Morocco during the preceding quarter.
Remit VAT simultaneously
Payment is made online at the time of the declaration, using the payment methods accepted by the tax administration, into an account opened with the Treasury General of the Kingdom; it is accompanied in particular by the SWIFT reference, the period concerned, the amount and the payment currency. No input VAT deduction right is available: the VAT collected is remitted in full.
Update invoice templates
Once the IF is obtained, it is prudent to show on invoices issued to non-VAT-registered Moroccan clients the Moroccan IF, the net base, the 20% rate and the VAT amount collected: this is data the register must contain anyway.
What this means for Moroccan buyers of cloud services
If you are a Moroccan SME, agency or IT manager purchasing digital services from foreign providers, your situation depends on your VAT status. You are VAT-registered: your foreign provider should in principle invoice you exclusive of Moroccan VAT and you pay the tax in your own return, monthly or quarterly depending on your regime; since January 1, 2026, you attach a statement of your non-resident providers to it. You are not VAT-registered (individual, micro-business, association): your foreign provider must now add 20% Moroccan VAT to your invoice and remit it to the DGI. A foreign provider that has not registered invoices without Moroccan VAT: the obligation to register and remit the tax remains its own, but you have no way to check that it is met. Asking your provider for its Moroccan IF is a sound management practice.
Choosing a provider established in Morocco radically simplifies your tax situation. A Morocco-based provider — an ANRT-accredited registrar, a local hosting company — invoices under its own Moroccan VAT number, applies the current rate and issues a compliant invoice without you needing to track its foreign registration status. For your accounts: a single contractual relationship under Moroccan law, with no foreign VAT to self-assess or justify.
Troubleshooting: common situations and answers
Several recurring scenarios have emerged in exchanges between Moroccan companies and their foreign providers since June 11, 2026.
Frequent errors and questions
- 'My provider is asking for my IF number but I do not have one' — if you are non-VAT-registered (individual or entity without active VAT status), you have no VAT-registered status to claim. Your provider must invoice you with 20% Moroccan VAT and manage the remittance itself.
- 'My foreign invoice shows Morocco VAT 20% but no Moroccan IF' — ask your provider to supply its Moroccan IF. Article 115 bis requires the provider to register on the DGI platform and obtain a tax identifier; if you are VAT-registered, the provider should not be charging you Moroccan VAT in the first place.
- 'I am VAT-registered in Morocco and my foreign provider still adds 20%' — inform your provider of your Moroccan IF number and your VAT-registered status. It must invoice you exclusive of Moroccan VAT. You then declare and pay the tax due yourself in your VAT return, under Article 115 of the General Tax Code.
- 'My foreign provider says it is not aware of this obligation' — the measure entered into force on June 11, 2026; providers with non-VAT-registered Moroccan clients are required to register. The DGI makes a downloadable guide available on
www.tax.gov.maunder SIMPL / Taxation on digital services. - 'I am a French provider and my Moroccan client sent me their IF, but I do not know if it is valid' — ask your client for an official document (DGI certificate) confirming their registered VAT status and retain it in your client file.
Anticipating upcoming deadlines
The June 2026 measure marks the start of online formalities, not the end of the regulatory calendar. On the side of VAT-registered clients, the 2026 Finance Law (Law no. 50-25) has required since January 1, 2026 that a statement of non-resident taxpayers be attached to the VAT return (Article 112-II of the General Tax Code): the administration thus has information on both sides of these flows. For Moroccan businesses, the priority is to maintain an up-to-date list of foreign digital service providers, distinguish VAT-registered from non-registered clients, and document the VAT treatment applied to each contractual relationship. This documentation is what a tax audit will examine first. An annual review of active contracts, cross-referenced with the provider register and their DGI registration status, is a proportionate risk management measure.