The ruling coalition formed a new government on Tuesday that gives top posts to an Islamist party but also keeps close allies of King Mohammed VI in powerful positions. The Islamist Justice and Development Party won the most seats in parliamentary elections in November and took 12 of the 31 cabinet posts, including prime minister. But four posts were directly appointed by the palace, including the official in charge of religious affairs.