Morocco has elected a new parliament following Wednesday's election, which recorded voter turnout of about 38 per cent, the lowest in nearly two decades.

Nearly 16 million people were registered to vote, although only about four per cent were aged between 18 and 24.

The election came less than two months after a mass migration crisis, when tens of thousands of mainly young Moroccans entered the Spanish enclave of Ceuta.

Preliminary results released today show the centre-right Authenticity and Modernity Party, PAM, leading with 95 seats in the 395-member parliament.

The National Rally of Independents, RNI, which heads the outgoing coalition, won 66 seats, followed by the Istiqlal Party with 65. The Islamist opposition's Justice and Development Party secured 54 seats.

Morocco operates a multi-party parliamentary system in which governing power is shared through coalitions.