That same current, identified by Casado as regressive politics of cultural rage, was now in line for a place in government after Sunday's result.
The vote was historically significant. Politics of cultural rage that had been treated as beyond the pale six years earlier was set to be rewarded with ministerial posts, in what was described as a dark night for European democracy.
Sanchez called the snap election in the hope that a campaign built on the country's acute housing crisis would play to the Socialist party's strengths. The government's proposed solutions on housing had been blocked in parliament.
The housing fight, combined with a cost of living crisis shaping politics across Europe, left the Socialists with a mountain to climb.
Sanchez had spent eight years holding together fragile coalitions. Despite an economic record notably better than that of most European peers, his luck ran out.
His departure is dismal news for the continent's beleaguered progressive forces, according to the assessment of the result.