Since then, it has led the government following victory in two elections.
But on Wednesday, the PJD lost more than 100 seats, a performance that pushed it to the margin of politics in Morocco.
A party considered close to the palace is now expected to lead the next government.
But will that change anything?
Presenter: Bernard Smith
-Lahcen Haddad, political analyst and former Moroccan minister
-Jasper Hamann, columnist with Morocco World News
-Mohamed El Hachimi, political scientist