Skip to content
Welcome, thoughtbot's Giant Robots listeners!Start here
Workers' Statute
AI-generated illustration
LegislationES

Workers' Statute

Spain's main employment law, which lists the economic, technical, organisational and production grounds for dismissal.

A Madrid appeals court ruled in a judgment dated 8 October 2026, made public in early November, that bringing in AI is not a fifth ground for dismissal under Spain's Workers' Statute.

Last refreshed: 6 November 2026 · Appears in 1 active topic

Key Question

Can a Spanish employer sack staff simply because AI now does the work?

Timeline for Workers' Statute

#22 4 Nov

Supplied the four dismissal causes the court applied

AI: Jobs, Power & Money: Madrid court: AI is no ground to dismiss
View full timeline →

Background

The Workers' Statute (Estatuto de los Trabajadores) is Spain's main employment law, setting the rules on contracts, working time and dismissal. The current text is Royal Legislative Decree 2/2015 of 23 October, in force since 13 November 2015 and administered by the Ministry of Labour and Social Economy.

Article 51 governs collective dismissals and Article 52.c individual dismissals on objective grounds. Both rest on the same four causes. A collective redundancy (an ERE) runs through a formal procedure that obliges the employer to justify the cuts, so the stated reason becomes a matter of record that workers can challenge.

Spanish courts now test automated decisions against the statute. In July 2026 the Audiencia Nacional sanctioned an employer for concealing how a scheduling algorithm worked.

Key Issues
AI dismissals

AI is no fifth dismissal ground

The statute's Article 51 lists four grounds for collective dismissal: economic, technical, organisational and production. In judgment 864/2026, dated 8 October 2026, the High Court of Justice of Madrid held that introducing AI adds no fifth. An employer that cites AI must prove its effect through one of the four, and the Court upheld a finding that one dismissal in a video-game studio's collective redundancy was unfair, because the company had not shown the AI tool took over that worker's tasks.

The ruling binds that case only; Spain's Tribunal Supremo alone can set national doctrine. It raises the bar of evidence without barring AI-linked layoffs, of which the Union confederation UGT counts 10 large collective dismissals affecting at least 6,711 people.

Common Questions
What is Spain's Workers' Statute?
Spain's main employment law, the Estatuto de los Trabajadores. The current text is Royal Legislative Decree 2/2015, in force since 13 November 2015.Source: BOE-A-2015-11430
What are the legal grounds for collective dismissal in Spain?
Article 51 of the Workers' Statute allows collective dismissal on economic, technical, organisational or production grounds.Source: BOE-A-2015-11430
Can a company in Spain fire workers because of AI?
Not on that basis alone. In judgment 864/2026 the High Court of Justice of Madrid held that AI is not a fifth ground for dismissal. The employer must prove AI's effect through the statute's four existing grounds.Source: TSJ Madrid, Sentencia 864/2026
Source Material

Written with AI from Lowdown's published reporting. Not individually reviewed by an editor. Updated 6 November 2026. Editorial standards.