If you run engineering or finance at a French company, Morocco keeps showing up on your nearshore shortlist, backed by a timezone overlap with Western Europe (GMT+1), French-English bilingual engineers, and salaries two to three times below Paris. The real question is not whether to go to Morocco, but how: stand up your own subsidiary and hire directly, or hand development to a local partner already in place. Both routes reach the same talent pool, yet they commit very different amounts of capital and very different timelines to your first release.
This guide compares the two options on what actually moves a budget: the fully loaded first-year cost, the delay before the first shipped feature, and the management load each one puts on your teams. The legal structures, the CFC tax regime, and Moroccan employment law are still detailed below, because they underpin the math; they inform the decision rather than replace it. To decide fast, our team can frame that choice with you through digital consulting, from sizing to the target structure.
Subsidiary or Partner: The Real First-Year Math
A captive center and a local partner do not compare on a developer's loaded salary. They compare on the fully loaded cost of year one, the part a payroll line never shows.
A subsidiary ties up capital before the first line of code. Setting up the entity runs on the order of MAD 15,000 to 40,000 (notary, registration, legal counsel), and a small operational team, first-quarter salaries and setup included, typically mobilizes MAD 100,000 to 250,000 over the year. On top sit social charges, about 18% of gross on the employer side, plus a line spreadsheets forget: local management. Recruiting, supervising, handling departures, and holding Moroccan HR compliance cannot be run at arm's length; it takes either a manager on the ground or a real fraction of your technical leadership's time.
Timing weighs as much as the amount. Between the decision and the first feature actually shipped to production, a captive center typically needs six to nine months: three to four weeks for the entity (detailed below), then recruiting, ramp-up, and process build-out. A partner already established ships against an existing scope in weeks, because it brings pre-vetted developers, infrastructure in place, and operational knowledge of the terrain. That is the difference between funding a capacity you are building and buying a capacity that already produces. We run this second model as custom development, against your backlog and your stack.
Choosing the Right Legal Structure
The legal form you pick determines your tax obligations, liability exposure, and administrative burden. Four structures dominate for foreign tech companies entering Morocco.
SARL (Société à Responsabilité Limitée) is the most common choice, equivalent to an LLC. Minimum capital is just MAD 1 (roughly $0.10), partners' liability is limited to their contributions, and management is flexible. Most startups and SMEs building a development team of 5-30 engineers choose this route.
SA (Société Anonyme) suits larger operations planning to scale past 50 employees or raise capital locally. Minimum capital is MAD 300,000 and a board of directors is required, which adds governance overhead.
Branch office (succursale) lets you operate in Morocco without creating a separate legal entity. The parent company retains full liability. Useful for testing the market before committing to a subsidiary.
Representative office (bureau de liaison) is limited to non-commercial activities, market research, liaison, coordination. You cannot invoice clients or hire employees through it.
Casablanca Finance City (CFC) Status, The Tax Advantage
CFC is Morocco's most powerful incentive for international companies. Originally designed for financial services, it has expanded to cover tech, consulting, and shared service centers. The benefits are significant.
Corporate tax is 0% for the first five years, then a flat 8.75% permanently, compared to the standard progressive rates of 10-31%. Income tax on expatriate employees is capped at 20% for the first five years. Foreign currency conversion is unrestricted: you can repatriate profits, pay international suppliers, and receive client payments in EUR, USD, or GBP without central bank authorization.
CFC companies also benefit from simplified administrative procedures and a dedicated relationship manager at the CFC Authority. To qualify, your company must demonstrate that at least 70% of revenue comes from clients outside Morocco. For an offshore development center serving European or American clients, meeting this threshold is straightforward.
Company Registration: Timeline and Process
Morocco has streamlined business creation through the CRI (Centre Régional d'Investissement), regional one-stop shops that consolidate registration steps. The process typically takes 3 to 5 business days.
Step 1: Reserve your company name via the CRI portal. This is done online and takes 24 hours.
Step 2: Draft and notarize the articles of association (statuts). A Moroccan notary handles this, budget MAD 3,000-8,000 depending on complexity.
Step 3: Register with the RNE (Registre National Électronique), which replaced the old paper-based Registre de Commerce. You receive your RC number (Registre de Commerce), tax identification number (IF), and professional tax number (TP) in a single step.
Step 4: Register employees with the CNSS (Caisse Nationale de Sécurité Sociale), Morocco's social security administration. This is mandatory before your first hire starts work.
Step 5: Open a corporate bank account. Major banks (Attijariwafa, BMCE, CIH) have dedicated desks for foreign investors. CFC-status companies can open multi-currency accounts.
Total setup costs, including notary fees, registration, and initial legal counsel, typically range from MAD 15,000 to MAD 40,000 ($1,500-$4,000).
Tax Framework for Tech Companies
Understanding Morocco's tax landscape prevents surprises. Here are the key taxes that apply to your development center.
Corporate tax (IS) follows progressive rates: 10% on profits up to MAD 300,000, 20% up to MAD 1,000,000, and 31% above that. CFC-status companies bypass this entirely with their 0%/8.75% schedule.
TVA (Value Added Tax) is 20% on most services. If your offshore center only serves foreign clients, exported services are zero-rated, meaning you charge 0% TVA but can still recover input TVA on local purchases (rent, equipment, software licenses).
Social charges total approximately 26% of gross salary, split between employer (~18%) and employee (~8%). This covers CNSS contributions (pension, health insurance, family allowances) and mandatory workplace insurance.
Withholding tax on payments to non-residents (dividends, royalties, management fees) ranges from 10% to 15%, though Morocco's extensive network of double taxation treaties, including with France, the UK, Canada, Germany, and the US, often reduces these rates.
Employment Law Essentials
Morocco's labor code (Code du Travail) governs all employment relationships. The rules are protective of employees, so understanding them before you hire is critical.
Contract types: CDI (Contrat à Durée Indéterminée) is the default permanent contract. CDD (Contrat à Durée Déterminée) is for fixed-term engagements, limited to 12 months renewable once, after which it automatically converts to a CDI.
Working hours: The legal maximum is 44 hours per week, typically structured as 8 hours Monday-Friday plus 4 hours on Saturday, though most tech companies negotiate 40-hour weeks.
Annual leave: Employees earn 1.5 days per month worked (18 days per year), increasing to 2 days after 5 years of service. Morocco also has approximately 15 paid public holidays per year.
Minimum wage (SMIG): MAD 3,111/month (approximately $310) as of 2026. In practice, junior developers in Morocco earn MAD 8,000-15,000/month and senior engineers MAD 20,000-40,000/month, well above the minimum.
Termination: Dismissal requires a valid cause (misconduct, economic grounds) and a formal process including written notice, a hearing, and documented justification. Severance pay is calculated based on years of service. Wrongful dismissal claims are common and tend to favor employees, so proper HR procedures matter.
Intellectual Property Protection
IP security is a top concern for companies building software abroad. Morocco's framework is more robust than many realize.
Morocco is a signatory to the Madrid Protocol (international trademark registration), the Paris Convention, and the Berne Convention (copyright). The national authority is OMPIC (Office Marocain de la Propriété Industrielle et Commerciale), which handles trademark, patent, and industrial design registrations.
For software, copyright protection is automatic under Moroccan law, no registration is required, though registration with OMPIC strengthens enforcement. Importantly, under the Moroccan labor code, IP created by employees in the course of their duties belongs to the employer by default, provided this is explicitly stated in the employment contract.
Best practice: include a comprehensive IP assignment clause in every employment contract, supplement it with an NDA, and register any critical trademarks or patents with OMPIC. The cost is minimal, trademark registration starts at MAD 1,000 (~$100).
The Employer of Record (EOR) Alternative
Not every company wants to create a legal entity from day one. If you need to hire developers in Morocco without the overhead of incorporation, an Employer of Record (EOR) lets you onboard engineers in days rather than weeks.
The EOR becomes the legal employer on paper, handling payroll, tax withholding, CNSS registration, and labor compliance. You manage the team directly on a day-to-day basis. This model works well for teams of 1-10 engineers during the validation phase, before committing to full incorporation.
Alternatively, partnering with a Moroccan digital agency gives you access to pre-vetted developers, existing infrastructure, and local operational knowledge without any entity setup. This is the fastest path from decision to working code.
Operational Setup: Office, Infrastructure, Connectivity
Morocco's tech hubs, Casablanca, Rabat, and Tangier, offer modern coworking spaces and Class A office buildings at a fraction of European rates. Expect to pay MAD 80-150/m² in Casablanca's business districts (Casa Anfa, CFC Tower, Technopark).
Internet infrastructure has improved dramatically: fiber connections of 100 Mbps-1 Gbps are standard in business areas. Maroc Telecom, Orange, and Inwi all offer dedicated business lines with SLA guarantees.
Casablanca's Technopark and Rabat Technopolis provide incubator-style spaces with plug-and-play office infrastructure, networking events, and administrative support specifically for tech companies. CFC-status companies can also access premium office space within the CFC district.
FAQ
How long does it take to set up a company in Morocco? Company registration through the CRI takes 3-5 business days. Factor in an additional 1-2 weeks for bank account opening and CNSS registration. Total time from decision to operational entity: approximately 3-4 weeks.
What is the minimum investment required? An SARL requires just MAD 1 in minimum capital. Realistic startup costs including registration, legal fees, initial office setup, and first-month salaries for a small team run MAD 100,000-250,000 ($10,000-$25,000).
Can I hire remote workers in Morocco without a local entity? Yes, through an Employer of Record (EOR) or by contracting with a local agency. However, directly engaging independent contractors carries misclassification risk under Moroccan labor law, the authorities may reclassify the relationship as employment.
Is CFC status available to any tech company? CFC status is available to companies providing services primarily to international clients (70%+ of revenue from outside Morocco). Tech companies, shared service centers, and consulting firms qualify. The application is reviewed by the CFC Authority and typically takes 4-6 weeks.
What are the biggest risks to watch for? Underestimating employment law rigidity (particularly around termination), failing to register with CNSS before employees start, and not including explicit IP assignment clauses in contracts. Working with experienced local counsel eliminates these risks.
Related Resources
Explore our solutions tailored to your needs:
Comparing providers? Check out our detailed comparison:
Related reading
When a Subsidiary Pays Back, and When It Does Not
A captive center earns back its setup premium when three conditions hold together: durable volume, on the order of fifteen engineers or more within eighteen months; a strategic product core you want to keep in-house for the long run; and leadership ready to absorb the local HR and management load. The CFC framework then sharpens the equation, since it brings corporate tax to 0% for five years, then 8.75%.
Below that threshold, or while the scope is still moving, the math tilts toward the partner or the EOR. You avoid the upfront capital, you ship in weeks rather than quarters, and you convert to a subsidiary later, once volume and stability are proven. Many French companies do both in sequence: they start with a partner, then internalize the core once the trajectory is confirmed.
Whether you lean toward a direct subsidiary, an EOR, or a partner, the expensive mistake is choosing the year-three structure for year-one needs. Contact ClaroDigi to frame this choice against your own scope: target volume, time to first release, and a legal structure fit for your current scale.
