The party won eight seats in the parliamentary election in 1997. In the parliamentary election held on 27 September 2002, the party won 42 out of 325 seats, winning most of the districts where it fielded candidates. Its secretary-general since 2004 was Saadeddine Othmani, MP representing Mohammedia. In the parliamentary election held on 7 September 2007, the PJD won 43 out of 325 seats, behind the Istiqlal Party, which won 52. This was contrary to expectations that the PJD would win the most seats. However, the party had limited number of candidates in the election.