Updated

Moroccan King Mohammed VI has appointed a new coalition government, ending six months of deadlock that had stalled the economy.

The government named Wednesday consists of 39 ministers, state ministers and state secretaries, and includes nine women.

It is headed by Prime Minister Saâdeddine El Othmani, whose moderate Islamist Party of Justice and Development won the parliamentary election in October.

Key defense, security and religious affairs posts were given to people with no party affiliation but who are close to the king. Some members of the past PJD-led government stayed in the Cabinet, but changed roles.

El Othmani was named last month to end a protracted crisis that had left Morocco, a U.S. ally in North Africa, without a government.