Answer
After Moulay Ismail's death, his supporters became powerful and controlled the country. They were known as the makhzen, and they included the military, the bureaucracy, and the religious establishment. The makhzen was responsible for maintaining order and stability in Morocco, and it also played a role in foreign affairs.