His PSOE party is promising housing reforms, yet it's on course to lose the vote to a conservative coalition that includes the Partido Popular (PP) and the far-right party Vox.
The Guardian travels to Spain's Andalusian coast to find out what's driving the housing crisis, what solutions are on offer and why right-wing populists are gaining ground.