Millions of workers across Spain walked off their jobs Wednesday in the country’s first nationwide general strike in 14 years, bringing widespread disruptions to transportation, factories, schools and businesses as anger over soaring housing costs reaches a boiling point.

The 24-hour strike, organized by Spain’s two largest labor unions, UGT and CCOO, comes just weeks before the November 29 national election, placing additional pressure on Prime Minister Pedro Sánchez and his Socialist government.

Union officials estimated that approximately four million workers participated, although business organizations disputed the scale of the walkout.

In Madrid and Barcelona, demonstrators blocked roads, closed businesses and confronted police. Authorities reported 40 arrests by midday following hundreds of strike-related incidents, including burning rubbish containers and blockades.

Unions accused police of excessive force after confrontations left approximately 20 protesters injured. They announced plans to pursue legal action over the police response.

The unrest is being driven by a housing crisis that has made independent living increasingly unaffordable for many Spanish citizens.

According to Spain’s central bank, the country faces a shortage of approximately 750,000 homes. Average rental costs have climbed dramatically, leaving younger workers struggling to afford housing even while employed full-time.

The strike caused major industrial disruptions. Labor unions reported participation reaching 90 percent in automotive manufacturing and port operations, with significant work stoppages at Volkswagen and SEAT facilities.

Public transportation was also affected, with Barcelona’s metro suspending service outside peak commuting hours and Madrid reporting substantially reduced passenger traffic.

The political consequences could be significant.

Sánchez faces mounting criticism over housing affordability, corruption investigations involving members of his inner circle and a deadly train disaster last month.

Opposition parties have accused labor unions of turning the strike into a political campaign event ahead of the election. Business leaders argue that shutting down workplaces damages the economy without addressing the underlying shortage of available homes.

With Spain approaching a critical election, Wednesday’s nationwide disruption has exposed growing frustration over the cost of living and intensified the political battle over who should lead the country.

Whether the demonstrations produce meaningful housing reforms or accelerate a change in government remains to be seen.