Between Morocco and Spain: a complex legal reality
A recurring case handled by lawyers on both sides of the Strait begins with a telephone call from a worried family. Consider this anonymised, composite example: a young man from Béni Mellal leaves Morocco with what appears to be a valid contract to work in the greenhouses of Almería. Three months later, his wages have not been paid, his employer no longer answers, and his accommodation is tied to the job he has just lost. He tells his parents that he has no remedy because he is only an immigrant.
Legally, that conclusion is wrong. Yet it is understandable. A Moroccan worker in Spain may simultaneously be affected by the Moroccan Labour Code, Spanish immigration and employment law, European law, the 2001 Morocco–Spain labour agreement and the bilateral social security convention. Each text answers a different question. Moroccan law governs, among other things, the lawful recruitment and departure process. Spanish law determines the wage, working time, dismissal procedure and residence status. Bilateral conventions coordinate recruitment and social security rights.
This legal complexity concerns a very large community. Depending on whether statistics count nationality, country of birth or residence permits, official Spanish data place the Moroccan population in Spain at close to or above 900,000 people in recent years. Moroccans remain one of the largest foreign communities in the country. At the same time, reports published in Morocco during 2023 and 2024 described intensified Moroccan-Spanish cooperation against irregular departures, even though migration routes and Canary Islands arrival figures fluctuate sharply from one year and route to another.
The central message is straightforward: regular migration offers the strongest protection, but irregular administrative status does not erase every employment right. An undocumented employee may still claim wages, paid leave and compensation resulting from an employment relationship. Conversely, having a visa does not protect a worker who misses a twenty-day dismissal deadline or cannot prove the hours actually worked.
Why legal status matters
A residence permit and a work authorisation are not mere administrative formalities. They determine whether a person may lawfully work, renew residence, reunite with family and, in certain circumstances, claim unemployment benefits. But employment status and immigration status must not be confused. Under Spanish law, an employer cannot use a worker's lack of papers as an excuse to obtain free labour.
Attention, however: immigration rules changed substantially when Royal Decree 1155/2024, the new Spanish Immigration Regulation, entered into force on 20 May 2025. Advice still circulating online about three years of residence for every form of arraigo, or references exclusively to Royal Decree 557/2011, may now be obsolete. Any application filed today must be checked against the rules and transitional provisions in force on the filing date.
The laws governing a Moroccan worker in Spain
Moroccan Labour Code protections before departure
Morocco's Labour Code was enacted by Dahir No. 1-03-194 of 11 September 2003 promulgating Law No. 65-99. Its provisions on the employment of Moroccan workers abroad appear in Articles 512 and following, including Articles 515 to 520. Read together, these rules organise administrative supervision of overseas recruitment, the approval of employment contracts and the role of authorised public employment services.
Practical effect of Articles 512 and following of Law No. 65-99: a Moroccan candidate should not leave on the strength of a WhatsApp message, an unsigned promise or a document prepared by an unlicensed intermediary. Overseas recruitment and the employment contract must pass through the legally competent channels and formalities.
The detailed distribution of powers has evolved with administrative reforms, but the protection objective remains clear: verify the employer, identify the job and prevent trafficking or fraudulent recruitment. The ANAPEC, the National Agency for the Promotion of Employment and Skills, is the principal Moroccan institution involved in organised international recruitment programmes. The OFPPT may provide vocational training, but it does not replace ANAPEC or the Spanish authorities in approving a job offer.
Morocco also adopted Law No. 02-03 on the entry and stay of foreigners, irregular emigration and immigration, promulgated by Dahir No. 1-03-196 of 11 November 2003. That law mainly governs foreigners in Morocco and migration offences; it does not create a Spanish residence right for Moroccan nationals. It nevertheless forms part of Morocco's policy against irregular migration and smuggling networks.
Spanish immigration and employment law
The basic Spanish immigration statute is Organic Law 4/2000 of 11 January 2000 on the rights and freedoms of foreigners in Spain and their social integration, repeatedly amended, notably by Organic Laws 8/2000, 14/2003 and 2/2009. Its implementing framework is now principally Royal Decree 1155/2024.
Several provisions must be distinguished. Article 10 of Organic Law 4/2000 addresses the right to work and access to Social Security under the conditions established by the legislation. Article 11 protects freedom of association and the right to strike. Article 14 concerns Social Security and social services, while Article 36 governs work authorisation and the consequences of employment without one.
Article 36.5 of Organic Law 4/2000, in substance: the absence of a residence and work authorisation does not invalidate the employment contract in relation to the foreign worker's rights, without prejudice to the employer's responsibilities. It does not, by itself, create entitlement to unemployment benefits.
Working conditions are then governed by the Workers' Statute, consolidated by Royal Legislative Decree 2/2015, the applicable collective agreement and the individual contract. Nationality does not allow an employer to pay below the lawful minimum, disregard working-time limits or withhold holiday pay.
The 2001 Morocco–Spain labour agreement
The bilateral labour agreement signed in Madrid on 25 July 2001 established cooperation for the selection and movement of workers. It provides a framework for communicating labour needs, selecting candidates, organising travel and monitoring working conditions and return commitments. It is especially relevant to collective recruitment at origin and seasonal campaigns.
In practice, this framework supports recruitment for agriculture in Huelva and other provinces, but it is not confined to strawberries. Campaigns may concern red fruits, olives, citrus crops, harvesting and other occupations authorised under Spain's annual collective recruitment rules, commonly known by the acronym GECCO.
The agreement does not mean that every seasonal worker has an automatic lifelong right to be recalled. The precise rights depend on the authorisation, the contract, the annual recruitment order, any collective agreement and whether the relationship is legally classified as fixed-discontinuous employment. That distinction becomes decisive when an employer fails to call a worker back.
The 1979 bilateral Social Security Convention
The Morocco–Spain Social Security Convention was signed on 8 November 1979 and entered into force on 1 October 1982. It coordinates the two systems instead of merging them. The Moroccan CNSS does not become the Spanish INSS, and neither institution transfers all contributions into a single personal account.
The convention rests on several principles: equality of treatment in covered matters, determination of the applicable legislation, aggregation or totalisation of insurance periods where required, and payment of qualifying benefits across borders. Each country calculates and pays the portion for which it is responsible under the convention and its domestic law.
Work visa and lawful departure from Morocco
Employment authorisation comes before the visa
For a standard employed-worker route, the Spanish employer normally initiates the residence and work authorisation procedure in Spain. Once approval is issued, the Moroccan worker applies for the corresponding national visa at the competent Spanish consular office or authorised visa service. A visa application cannot transform an invented job into a lawful one.
The file commonly includes a valid passport, the favourable authorisation, employment documents, a criminal-record certificate, a medical certificate where required, civil-status records and proof of payment of the applicable fee. Requirements vary according to the route and consular instructions. Moroccan public documents may require legalisation or an apostille, depending on the document and applicable convention, together with a sworn translation into Spanish.
A sworn translation in Morocco may cost approximately 300 to 600 dirhams per document, sometimes more for urgent or technical files. Legalisation, certificates, travel and insurance create additional costs. Consular processing is often measured in weeks, but there is no honest universal promise of four or eight weeks: missing records, appointment shortages and verification requests can extend the timetable.
The competent consulate is determined by residence and consular jurisdiction, not by whichever office appears faster. Practices and appointment availability in Casablanca, Rabat, Tangier, Nador or other jurisdictions may differ, but filing in the wrong jurisdiction can lead to rejection or redirection. Before paying anyone, candidates may consult an immigration lawyer in Rabat to verify the legal route and documents.
Seasonal recruitment and the Huelva route
A lawful Morocco–Spain seasonal employment contract usually passes through organised recruitment at origin. ANAPEC may announce the campaign, receive applications and participate in preselection. The Spanish side verifies the employer's labour needs and processes the relevant authorisations under the annual GECCO framework.
Seasonal authorisations commonly include return obligations and may be structured to facilitate repeat participation by workers who comply with the programme. Workers must receive clear information concerning the employer, province, occupation, duration, wage, working time, accommodation deductions, transport and return arrangements. The applicable agricultural collective agreement may provide rights beyond the bare wording of the contract.
Never pay a private intermediary for a supposed guaranteed ANAPEC place. Fraudsters often use authentic logos, copies of old contracts and fake appointment letters. An authentic offer should be verifiable with ANAPEC, while the Spanish authorisation must correspond to a real employer and file. There is no simple public SEPE register into which a worker can type any employer's name and conclusively validate a contract; verification may require ANAPEC, the Spanish immigration office or consular authorities.
Red flags include payment to a personal bank account, pressure to surrender the original passport, a tourist visa presented as a work visa, an employer using only a foreign mobile number, or a promise that papers will be arranged after arrival. In clear terms: a Schengen tourist visa does not authorise employment.
Fundamental employment rights in Spain
Equal treatment and protection from discrimination
Article 17 of the Workers' Statute prohibits discriminatory treatment in employment, including discrimination linked to racial or ethnic origin. Organic Law 4/2000 and Law 15/2022 on equal treatment reinforce that protection. A Moroccan worker may complain about discriminatory pay, harassment or exclusion through the Labour Inspectorate, trade unions and the social courts.
Proving discrimination can be difficult. Workers should preserve messages, schedules, payroll records and names of witnesses. Once credible indications of discrimination are established, Spanish procedural rules may shift the burden to the employer to provide an objective, proportionate explanation.
Minimum wage, working time and paid leave
Article 27 of the Workers' Statute governs Spain's interprofessional minimum wage, known as the SMI. The amount is revised by the Spanish Government, usually annually. In 2024 it was €1,134 gross per month in fourteen payments; in 2025 it rose to €1,184 in fourteen payments. Because the figure may change again, workers must verify the decree applicable to the year in which the wages were earned.
The annual amount matters more than a misleading monthly comparison. A contract may prorate the two extra payments across twelve payslips, and sectoral collective agreements may set a higher wage. Agricultural daily rates can also be expressed differently. The payslip must therefore be compared with the correct collective agreement, category, hours and annual SMI.
Article 34 of the Workers' Statute regulates working time, while Article 38 guarantees paid annual leave. As a general statutory floor, annual leave may not be less than thirty calendar days, although seasonal workers accrue it proportionally and may receive the corresponding amount in the settlement if leave cannot be taken before the lawful end of a short contract.
Conditions in some farms, packing facilities and informal settlements around Almería or Huelva remain harsh. The law on paper does not eliminate excessive hours, overcrowded accommodation or unsafe transport. Workers can report labour and occupational-safety breaches to the Inspección de Trabajo y Seguridad Social. Evidence matters: photographs, geolocation, shift messages, co-worker statements and copies of accommodation deductions may turn an allegation into a defensible case.
Registration with Spanish Social Security
The employer must register the worker with the Spanish Social Security system and report the employment relationship. The worker should obtain a Social Security number, check the registration and regularly download the informe de vida laboral, or employment-history report. A payslip is useful, but it does not guarantee that the employer declared the correct wage or number of days.
Contributions may open rights to healthcare, temporary incapacity, maternity or paternity benefits, occupational-accident protection, unemployment and retirement, subject to the conditions for each benefit. For contributory unemployment benefit, the general rule is at least 360 days of unemployment contributions during the preceding six years. The application is generally filed with SEPE within fifteen working days after the legal unemployment situation begins.
An undocumented worker can claim unpaid wages, but Article 36.5 of Organic Law 4/2000 expressly prevents the illegal employment relationship, by itself, from generating unemployment benefit entitlement. This is one reason why employment rights and immigration or benefit rights must be analysed separately.
Family reunification, health and education
Family reunification is principally governed by Articles 16 to 19 of Organic Law 4/2000 and the current Immigration Regulation. It may cover a spouse or registered partner, children and, under stricter conditions, ascendants. The sponsor usually needs qualifying residence, adequate housing, health coverage and stable resources.
Online summaries frequently describe the threshold as a percentage of the SMI. That is not always accurate. Spanish immigration rules traditionally calculate many family-reunification resources by reference to the IPREM, with reductions or flexibility possible in cases involving minors or humanitarian circumstances. The exact threshold must be checked for the family size and filing date.
Minor children have access to compulsory education regardless of their parents' status. Access to public healthcare is protected under Spanish health legislation, although registration and documentary procedures vary by autonomous community. Emergency care, pregnancy-related care and children's healthcare receive particular protection.
Family-law documents often cause delays because names and dates are transcribed differently between Arabic, French and Spanish records. A worker preparing reunification may seek advice from a family lawyer in Casablanca before legalising and translating an inconsistent marriage or birth certificate.
Regularising residence under the current Spanish rules
Social, socio-labour, family and other forms of arraigo
Spain's 2025 reform reorganised the arraigo categories. Under Royal Decree 1155/2024, the general continuous-presence requirement for several routes was reduced from three years to two years, subject to the particular category and transitional rules. The system now includes forms commonly described as social, socio-labour, socio-training, second-chance and family-based arraigo.
This correction is crucial. The old statement that social arraigo always requires three years and a one-year employment contract is no longer a safe description of current law. Social arraigo may depend on family links or an integration report and sufficient means; socio-labour arraigo focuses on qualifying employment arrangements. Applicants generally need the required period of presence, no disqualifying criminal record, and compliance with category-specific conditions.
Continuous presence is proved through dated evidence: municipal registration, medical records, money-transfer receipts, rental records, transport tickets, bank movements and official correspondence. Passport stamps must also be examined because excessive absences may break continuity.
Moroccan criminal-record certificates often need to cover the relevant period, then be apostilled or otherwise authenticated as applicable and translated by a sworn translator. The application goes to the Oficina de Extranjería or is filed electronically by an authorised representative. Administrative fees are normally paid using the relevant Modelo 790 form, but applicants should consult the current official fee table. Claims that every arraigo application carries a €200 to €400 government fee are generally misleading; professional fees and translation costs are separate.
Renewals and long-term residence
Renewal should normally be prepared during the sixty calendar days before expiry. Spanish law also permits certain late filings within the following ninety days, but an administrative penalty may be possible. Filing a valid renewal in time generally extends the validity of the previous authorisation until the decision. Do not wait until the last afternoon: electronic identification failures and missing Social Security records are common.
Article 32 of Organic Law 4/2000 governs long-term residence. As a general rule, it becomes available after five years of continuous legal residence and grants indefinite residence and work rights under conditions comparable to those enjoyed by Spaniards. The status is indefinite even though the physical TIE card must generally be renewed every five years.
Contrary to a widespread claim, ordinary national long-term residence is not universally conditioned on resources equal to 150% of the SMI. Requirements differ between national long-term residence and EU long-term residence. Criminal or public-order issues, absences and continuity must nevertheless be reviewed carefully.
What if the permit has expired?
An expired card does not automatically erase accrued wages or Social Security contributions. It may, however, create an irregular residence situation and jeopardise future applications. The worker should obtain the complete immigration file, verify whether a renewal was actually submitted, and assess renewal, appeal, arraigo or another authorisation.
Moroccan consulates can issue passports or emergency travel documents and provide orientation, but they cannot grant Spanish residence or order a Spanish employer to pay. That power belongs to Spanish administrative authorities and courts.
Dismissal, unpaid wages and legal remedies
The twenty-working-day deadline
Article 59.3 of the Workers' Statute gives a worker twenty working days to challenge a dismissal. Saturdays, Sundays and public holidays are generally excluded, but calculating the deadline may still be technical. The time limit is a limitation period that expires quickly.
Twenty working days means twenty working days—not one month, not twenty calendar days, and not twenty days after returning to Morocco. Missing this deadline is one of the most common reasons an otherwise strong dismissal case becomes impossible to pursue.
The worker normally files a prior conciliation claim before the competent regional mediation service, often generically called the SMAC, although its official name varies by autonomous community. Filing the conciliation request suspends the deadline under the applicable procedural rules. If no settlement is reached, the claim proceeds to the Juzgado de lo Social. Appeals may reach the regional High Court of Justice and, in qualifying cases, the Spanish Supreme Court.
A wage claim has a different period. Under Article 59.2 of the Workers' Statute, claims for sums owed are generally subject to a one-year limitation period. A worker dismissed with three unpaid months may therefore face two simultaneous clocks: twenty working days for dismissal and one year for salary arrears.
Defending an undocumented worker
Spanish case law has consistently rejected the idea that irregular status gives an employer a licence to exploit. Article 36.5 of Organic Law 4/2000 codifies the essential principle: lack of work authorisation does not invalidate the contract as regards the worker's rights. Spanish Supreme Court decisions have applied this protection to remuneration and consequences arising from the employment relationship, while distinguishing benefits that legislation reserves to a lawful Social Security situation.
An undocumented worker can report an employer, file a wage claim and seek judicial protection. The worker should nevertheless obtain confidential advice before acting because a labour complaint may intersect with immigration enforcement or a regularisation strategy. Trade unions such as CCOO and UGT, migrant associations and specialised lawyers operate advice offices in Madrid, Barcelona, Seville, Almería, Huelva and other cities.
Free legal aid may be available under Spanish Law 1/1996 on Legal Aid, subject to the nature of the procedure and financial eligibility. Foreign nationals are not excluded simply because they lack regular residence, particularly in proceedings linked to immigration, asylum or effective judicial protection. An application for legal aid should not be assumed to suspend every employment deadline, so urgent filing remains essential.
When a seasonal employer does not call the worker back
Non-renewal is not automatically unlawful. A genuinely fixed-term seasonal contract may end on the agreed date. By contrast, a worker classified as fijo discontinuo, or covered by a binding recall commitment under the collective recruitment programme, may challenge an unjustified failure to call them back. The dismissal period may start when the worker knows that the call should have occurred or learns that others were recalled.
The worker can complain to the Labour Inspectorate, begin conciliation and, where appropriate, sue in the social court. From Morocco, the case should also be reported to ANAPEC if recruitment occurred through an official programme. ANAPEC cannot replace the Spanish judge, but documented breaches can affect future cooperation with an employer.
Workers seeking a Moroccan analysis of recruitment documents may consult a labour lawyer in Casablanca or, for candidates from the Marrakech-Safi region, a labour lawyer in Marrakech. Bilateral treaty questions may justify advice from a public international law lawyer in Rabat.
How the Morocco–Spain Social Security Convention works
Totalisation does not mean transferring contributions
Suppose a worker has eight years of insured employment under the Moroccan CNSS and twelve years in Spain. Spanish domestic law generally requires at least fifteen contribution years for a contributory retirement pension, including two within the relevant fifteen-year reference period, subject to the applicable rules. The bilateral convention may allow the institutions to total non-overlapping Moroccan and Spanish periods to test eligibility.
Spain then calculates the pension under the convention, including a theoretical amount and a pro-rata amount reflecting the periods completed under Spanish legislation. Morocco performs its own calculation for Moroccan insurance periods. Each country pays its own share; the twenty years do not become twenty Spanish contribution years.
The same broad coordination logic may apply to covered invalidity and survivors' benefits, but every benefit has its own conditions. Family and sickness benefits require a more specific analysis of residence, insurance status and which country's legislation applies. One should never assume that every Moroccan allowance is exportable merely because retirement pensions are coordinated.
Starting a cross-border pension claim
A resident in Morocco can normally approach the CNSS international relations service, which liaises with the Spanish institution. A resident in Spain may apply through the Instituto Nacional de la Seguridad Social. The institutions use bilateral liaison forms and exchange certified insurance periods. Applicants do not usually need to travel repeatedly between the two countries merely to file parallel claims.
In practice, a cross-border retirement file may take twelve to eighteen months, and sometimes longer where names, dates of birth or contribution histories do not match. The worker should retain the Spanish Social Security number, NIE, contracts, payslips, employer certificates, bank details and the updated vida laboral.
This is a frequent problem among returnees: they wait until retirement, then discover that an employer declared fewer days than were worked twenty years earlier. Correcting a recent Social Security error is difficult; correcting an old one without records is much harder. Workers from the Souss region can obtain preventive advice from an immigration lawyer in Agadir, while the administrative pension request itself should begin with the CNSS or INSS.
Cooperation, border control and individual rights
Morocco and Spain have reinforced diplomatic, economic and security cooperation since the political rapprochement of 2022. This has supported discussions on legal labour mobility, seasonal recruitment and migration control. It may create additional lawful opportunities, including in occupations beyond traditional agriculture, but no political announcement replaces an individual work authorisation.
Security cooperation also has legal limits. Border control must respect the prohibition of inhuman treatment, access to protection where legally required and procedural guarantees. In N.D. and N.T. v. Spain, the Grand Chamber of the European Court of Human Rights delivered its judgment on 13 February 2020 concerning immediate returns at the Melilla border. The Court found no violation on the particular facts, placing weight on the applicants' conduct and the availability it identified of legal entry procedures. The judgment should not be reduced to a general authorisation for collective expulsions; individual circumstances, asylum obligations and the reality of accessible legal channels still matter.
For Moroccan candidates, the practical lesson is not political but legal: use identifiable recruitment routes, reject smugglers' promises and document every administrative step. Irregular sea or land crossings expose people to death, exploitation, detention and removal, without guaranteeing a later regularisation route.
A practical protection plan
Before leaving Morocco
- Verify the employer and authorisation: confirm an organised seasonal offer with ANAPEC and request copies of the Spanish approval and signed contract.
- Read the financial terms: identify gross wage, working hours, collective agreement, accommodation deductions, transport and return conditions.
- Keep control of the passport: give copies where required but do not leave the original with an unauthorised intermediary.
- Budget realistically: include certificates, sworn translations, apostilles or legalisation, visa fees and travel. Do not pay for a guaranteed recruitment slot.
- Create a secure archive: scan the passport, visa, contract, authorisation and civil-status documents, then store encrypted copies online and with a trusted relative.
During employment in Spain
Keep every contract, amendment, payslip, schedule and bank statement. Download the vida laboral and verify the employer's registration. Save proof of actual hours, especially where attendance is recorded informally. Preserve the TIE, renewal receipts, rental contract, municipal registration certificate and medical records.
If wages stop, send a written demand quickly and seek advice; do not wait until the end of the season. If dismissed, record the exact date and method of notification. Signing a settlement marked conforme may make a dispute harder. If pressured, a worker may write no conforme, date the document and retain a copy, although immediate legal advice remains preferable.
A private immigration lawyer in Spain may charge roughly €80 to €200 per hour depending on the city and complexity, with fixed-fee packages also common. Ask for a written engagement letter and tax-inclusive quote. Trade unions, NGOs and the legal-aid system may provide free or reduced-cost assistance.
Before returning to Morocco
Download a final vida laboral, collect employment certificates, confirm pending wages and keep access to the Spanish telephone number or electronic identity needed for online procedures. Notify SEPE before leaving if receiving unemployment benefit: Spanish unemployment cannot simply be collected indefinitely from Morocco. Export, suspension or lump-sum return schemes have strict conditions and must be authorised in advance.
Moroccan consulates in Spain can assist with passports, civil-status registration, emergency documents and orientation. The CCME provides information and policy resources, while the CNDH may be approached regarding serious human-rights concerns. The Institution of the Ombudsman of the Kingdom can examine alleged maladministration by Moroccan public bodies, but none of these institutions replaces the Spanish Labour Inspectorate or social court in a wage dispute.
Knowing the law is the first form of protection
The legal status of a Moroccan immigrant worker in Spain cannot be reduced to having or not having papers. A lawful visa and residence permit offer access to stable employment, renewal, family life and contributory benefits. Yet even an undocumented worker retains core rights to earned wages, safe conditions and judicial protection.
The most expensive legal mistake is often not the lawyer's fee. It is the missed twenty-working-day deadline, the false seasonal contract, the unverified Social Security record or the passport handed to a recruiter. Preventive advice in Morocco, before departure, can avoid years of proceedings abroad.
If a contract, visa refusal, family-reunification file or cross-border employment dispute requires individual analysis, consult a lawyer specialising in immigration law in Morocco. The documents and filing date matter: Spanish immigration law changed in 2025, wage figures are revised regularly, and no online article can replace examination of the actual file.

