Payroll Outsourcing in Morocco: Obligations, Risks and Method

Sommaire

Payroll outsourcing in Morocco means entrusting a provider with calculating salaries and issuing payslips. In most cases, it also covers preparing social security and tax returns. However, the company remains the employer. It must therefore issue the payslip (Art. 370 of the Labour Code), withhold income tax (Art. 156 of the General Tax Code, CGI) and declare its employees to the CNSS (National Social Security Fund). Done well, outsourcing reduces errors and secures deadlines. By contrast, without a proper framework, it creates a false sense of security.

In brief. Outsourcing payroll delegates execution, not liability. The employer issues a payslip at each payment (Art. 370 Labour Code) and keeps a payroll ledger for at least two years (Art. 371 to 373). It withholds income tax on each payment (Art. 156 CGI), pays it within the following month (Art. 174-I) and files the annual salary return before 1 March (Art. 79). The CNSS return is monthly. Late payment of withheld income tax triggers a 20% penalty plus surcharges (Art. 208). Finally, the provider processes personal data: Law 09-08 requires a contract and security measures (Art. 23).

A question about your own situation? Message us on WhatsApp or book a consultation — reply within 24 hours.

What is payroll outsourcing?

Outsourcing payroll means entrusting all or part of the payroll cycle to an external firm. In practice, the company sends the variables each month: hours, absences, bonuses, hires and leavers. Then the provider calculates gross and net salaries, contributions and tax. Finally, it issues the payslips and prepares the returns.

This delegation does not change the employment contract. Indeed, the employee remains bound to the employer, who sets the tasks, pays the salary and is accountable for its obligations. The payroll provider is therefore neither an employer nor a temporary work agency. It acts as a technical operator on behalf of the company.

Moreover, the scope varies with needs. Thus, some companies only outsource the calculation and keep the payments. Others also delegate online filings, contract follow-up and final settlements. As a result, the first step is to write down precisely who does what.

Payroll outsourcing in Morocco: which tasks can you delegate?

The Moroccan payroll cycle rests on a set of legal obligations. The table below summarises those a provider can prepare, and their legal basis.

Task Legal rule Reference
Payslip Issued at each salary payment, with the particulars set by the labour authority Art. 370 Labour Code
Payroll ledger Kept in each establishment; may be replaced by a computer system; kept for at least 2 years Art. 371 to 373 Labour Code
Payment frequency At least twice a month (no more than 16 days apart) for workers; at least once a month for salaried staff Art. 363 Labour Code
Income tax withholding Made by the employer on each payment Art. 156 CGI
Payment of withheld income tax Within the following month, with a payment slip Art. 174-I CGI
Annual salary return Before 1 March, for the previous year’s salaries Art. 79 CGI
CNSS return Monthly Social security scheme (CNSS)
Minimum wage check 2026 minimum wage (SMIG): MAD 17.92 per hour, i.e. MAD 3,422.72 for 191 hours Decree 2.25.983

These tasks are therefore tightly regulated. For example, the Article 79 return shows, for each employee, identity, CNSS number, gross pay, allowances, taxable income and deductions. Similarly, the tax depends on the annual scale and deductions. For the calculation details, read our guide to income tax in Morocco in 2026.

On the social side, CNSS rates, ceilings and deadlines are detailed in our article on CNSS contributions in 2026. In practice, a serious provider updates these parameters at every regulatory change.

Who remains liable when payroll is outsourced?

The answer is clear: the employer. Indeed, Article 156 of the CGI requires income tax withholding by “the employer or payer domiciled or established in Morocco”. Similarly, Article 370 of the Labour Code places the payslip on “every employer”. The contract with a provider therefore does not transfer these obligations towards the authorities.

Moreover, penalties target the employer. First, Article 198 makes personally liable those who have not paid withheld amounts on time. Then, Article 208 raises the penalty to 20% for withholding taxes unpaid or paid late, notably under Article 156. On top of this come a 5% surcharge for the first month of delay, then 0.50% per additional month.

Annual returns are also penalised. Thus, Article 200 provides a 5% surcharge for filing less than thirty days late. Beyond that, it rises to 15%. It reaches 20% for failure to file or an incomplete return. Each surcharge cannot be less than MAD 500.

Therefore, the service contract must organise the relationship. In particular, it sets the deadlines for sending variables and the controls. It also allocates tasks and sets the provider’s liability for its own errors. However, this clause applies between the parties, not towards the tax authority or the CNSS.

Want a quote for your project? Tell us about your activity: we will reply within 24 hours with the next steps and an estimate of our fees.

💬 Message us on WhatsAppBook a consultation

Outsource or keep in-house: how to choose?

In short, the choice depends on size, complexity and internal resources. A 20-employee SME does not have the same needs as a factory running shifts. The table compares both options on the criteria that matter.

Criterion In-house payroll Outsourced payroll
Technical expertise Depends on one or two trained employees Specialised team, shared regulatory monitoring
Continuity Fragile in case of absence or departure Ensured by the provider
Internal confidentiality Salaries are known to a company employee Data processed outside the company, under contract
Software To be bought and configured Provider’s tool
Responsiveness Immediate for adjustments Depends on contractual deadlines
Legal liability Employer Employer (unchanged)

In practice, outsourcing suits start-ups, subsidiaries of foreign groups and companies with many payroll variables. Conversely, a large company with a strong HR team can keep payroll in-house and have its processes audited. Finally, the cost depends on the number of payslips and the scope. For a tailored quote, contact Cabinet Dami & Associés.

Outsourced payroll, temporary work, staff secondment: what are the differences?

These three notions are often confused. Yet their legal effects are completely different. With outsourced payroll, the company remains the employer and buys a processing service. By contrast, a private recruitment agency may hire employees to place them temporarily with a user company, which sets their tasks (Art. 477-c Labour Code). In that case, the agency employs and pays them.

Staff made available by a foreign company raises another question. Indeed, Article 15-IV of the CGI covers fees paid to a non-resident for staff made available in Morocco. These fees therefore bear, in principle, a 10% withholding tax. On this point, read our guide to withholding tax on non-residents in Morocco.

Finally, an employee seconded by a foreign group raises income tax and social security questions. Our article on the expatriate employee in a free zone details these situations.

How do you protect employees’ personal data?

Indeed, payroll contains sensitive data: identity, CNSS number, salary, family situation, bank details. Law No. 09-08, enacted by Dahir No. 1-09-15 of 18 February 2009, governs its processing. It is supervised by the National Commission for the Control of Personal Data Protection (CNDP).

Article 23 of this law applies directly to outsourcing. First, the data controller, that is the employer, implements technical and organisational measures suited to the risks. Next, it chooses a processor that offers sufficient security guarantees. Finally, a contract binds the processor, which acts only on instructions and bears the same security obligations.

Moreover, Article 12 requires a prior declaration to the CNDP for most automated processing. The exact formalities for payroll processing must be assessed case by case: contact Cabinet Dami & Associés. In any case, require named user access, encrypted exchanges and a data return procedure at the end of the contract.

How do you switch successfully to outsourced payroll?

  1. Map the current set-up. List contracts, payroll items, bonuses, working hours and applicable agreements.
  2. Transfer the history. Send year-to-date totals, because income tax is calculated on an annual basis.
  3. Set the calendar. Fix the dates for sending variables, approving payslips and paying salaries.
  4. Organise controls. Plan a cross-check of the first month: gross, net, income tax, CNSS.
  5. Sign the contract. It defines scope, deadlines, confidentiality and data security (Law 09-08).
  6. Archive. The payroll ledger, or the system replacing it, must be kept for at least two years (Art. 373 Labour Code).

In practice, starting at the beginning of the year simplifies the transfer. However, switching mid-year remains possible if the year-to-date totals are reliable. The right time therefore depends on your internal calendar.

Outsourced payroll in the Tangier free zones

Our office is located in Tanger Free Zone, opened in 1999. We run payroll for industrial and service companies in Tanger Free Zone, Tanger Automotive City and Tanger Tech. What they share is simple: large workforces, shift teams and variable bonuses.

First, industrial acceleration zone (IAZ) status concerns corporate income tax. By contrast, it does not remove the employer’s obligations: payslip, income tax withholding, returns and CNSS. For a full overview, see our guide to payroll management in Morocco’s free zones.

Next, factories add their own constraints. For example, workers must be paid at least twice a month, unless they are salaried staff (Art. 363). In addition, an employee paid by the hour or by the day must be paid quickly at the end of the contract. The deadline is 24 hours in case of dismissal and 72 hours in case of resignation (Art. 365). Finally, each large recruitment drive multiplies the hires to declare. Our article on hiring at Tanger Automotive City details these issues. As a free zone accountant in Tangier, our team works on site.

Which mistakes should you avoid?

  • Believing the provider bears the risk. The employer remains liable for withheld income tax and returns (Art. 156, 198).
  • Sending variables too late. A wrong payslip must then be corrected, with income tax and CNSS adjustments.
  • Forgetting year-to-date totals. Without history, year-end income tax and the Article 79 return become wrong.
  • Overlooking the minimum wage. Each increase must be applied on the right date; see our article on the minimum wage in Morocco in 2026.
  • Signing without a data clause. Law 09-08 requires a contract with the processor and security measures (Art. 23).
  • Failing to archive. The payroll ledger or its equivalent must be kept for at least two years (Art. 373).

How does Cabinet Dami support payroll outsourcing?

We handle the full cycle: set-up, payslips, income tax, CNSS returns, annual salary return and final settlements. In addition, we advise on employment contracts and special regimes. Discover our payroll and HR management service. As a result, you keep the decisions, and we secure the execution.

Need advice on this topic? Cabinet Dami & Associés, chartered accountants with offices in Tangier and Casablanca, will reply within 24 hours.

💬 Message us on WhatsAppBook a consultation

FAQ — payroll outsourcing in Morocco

Does outsourcing transfer the employer’s liability?
No. The employer withholds income tax (Art. 156 CGI) and issues the payslip (Art. 370 Labour Code). It remains liable for unpaid amounts (Art. 198 CGI), whatever the contract signed with the provider.

When must withheld income tax on salaries be paid?
Within the month following the month of payment, with a payment slip (Art. 174-I CGI). The annual salary return is filed before 1 March (Art. 79).

Can the payroll ledger be kept electronically?
Yes. At the employer’s request, it can be replaced by a computer system deemed equivalent by the labour inspectorate (Art. 372). It must be kept for at least two years (Art. 373).

Is a specific contract needed for employee data?
Yes. Law 09-08 requires a contract between the employer and the processor, which acts only on instructions and meets the same security obligations (Art. 23).

Can a free zone company outsource its payroll?
Yes, and it is common. However, free zone status does not remove payroll obligations. The company withholds income tax, declares its employees to the CNSS and files its returns like any other business.

Conclusion

Payroll outsourcing in Morocco is an effective management choice, provided its limits are understood. The provider executes, but the employer remains liable towards the tax authority, the CNSS and its employees. Therefore, a precise contract, a clear calendar and data protection compliant with Law 09-08 are essential. For a company in Tangier, it is also a way to secure an often complex payroll.

Official sources: General Tax Code, 2026 edition (DGI), Art. 15, 79, 156, 174, 198, 200 and 208; Labour Code, Law No. 65-99 (text published by the ILO), Art. 363, 365, 370 to 373 and 477; Law No. 09-08 (CNDP), Art. 12 and 23; CNSS.

For bookkeeping and tax filings handled by specialists, talk to our accounting firm free zone Morocco team.

The information in this article is provided for guidance only and may change as laws and regulations evolve. For an analysis tailored to your situation, contact Cabinet Dami & Associés — Tanger Free Zone: +212 539-39-81-18.

Mohammed Dami, expert-comptable et commissaire aux comptes

Written by

Chartered accountant (DPLE) & statutory auditor

Founder and managing partner of Cabinet Dami & Associés (est. 1991) and a member of the Ordre des Experts-Comptables du Maroc. More than 37 years of accounting and audit assignments, with a branch inside Tanger Free Zone in Tangier.

Read the full profile →

Published on 6 November 2026 · Last updated on 18 November 2026

Logo Cabinet Dami & Associés – Expertise comptable zones franches – Maroc

Request a callback

Do you prefer to call us ?