The Spanish Socialist Workers' Party of the Community of Madrid (Spanish: Partido Socialista Obrero Español de la Comunidad de Madrid, PSOE–M), from 2004 to 2015 the Socialist Party of Madrid (Spanish: Partido Socialista de Madrid, PSM–PSOE) and previously the Madrilenian Socialist Federation (Spanish: Federación Socialista Madrileña), is the branch of the Spanish Socialist Workers' Party (PSOE) in the Madrid region.
Following the party's bad results at the 2021 regional election, José Manuel Franco handed in his resignation as Secretary-General in May 2021.[4] The PSOE's federal executive committee ensuingly appointed a PSOE–M managing committee led by Isaura Leal.[5] Three pre-candidates tried to collect enough endorsements to run in the primary election to the post of Secretary–General: Eva Llarandi (PSOE's Secretary General in Paracuellos), Javier Ayala (Mayor of Fuenlabrada), and Juan Lobato (former Mayor of Soto del Real).[6]