Perez had been elected unopposed in each of Madrid’s five previous electoral cycles, held in 2009, 2013, 2017, 2021 and 2025.