Spanish Prime Minister Pedro Sánchez called the recent snap election because he expected voters to reject the political right that had just thwarted his attempt to bring down housing costs.

Spanish Prime Minister Pedro Sánchez called the recent snap election because he expected voters to reject the political right that had just thwarted his attempt to bring down housing costs. But by then, Sánchez had been in power for eight years, and the housing crisis—like Spain’s other economic problems—only worsened. BARCELONA—Spain’s economy has been booming in recent years, with theInternational Monetary Fund, theEuropean Commission, andThe Economisttouting its outperformance of other European economies. Why, then, did the progressive coalition that has overseen that growth, led by the Spanish Socialist Workers’ Party (PSOE), lose to the conservative People’s Party (PP) and the hard-right Vox in a snap election?