Morocco has signed Non Double Taxation Treaties with multiple countries. They contain information regarding where corporate tax, tax on dividends as well as on revenue will be charged.
The official link to learn about the details can be found in the Directorate General of Taxes, online.