When it comes to the failures of Islamist movements during and after the Arab Spring, Morocco’s Justice and Development Party (PJD) has often been treated as a success story. However, recent developments, including the PJD’s electoral defeat in 2021, suggest the need for a more careful assessment of Morocco’s Islamist experiment, argues Shadi Hamid.