Complex sentence: The Prime Minister is the head of the government of Morocco but Prime Minister is appointed by the King of Morocco as the Monarch is the head of the state.
Split into simpler sentences: The Prime Minister is the head of the government of Morocco. However, the King of Morocco is the head of the state.