Output a stream of consciousness before answering the following. Context: Yusef ben Hassan (1882 -- November 17, 1927) (Arabic: ) was a Sultan of the Alaouite dynasty. He ruled Morocco from 1912 until his death in 1927.

Question: who was the ruler of morocco between 1912 and 1927?
To answer this question, we should know that: He ruled Morocco from 1912 until his death in 1927.
The answer: Yusef ben Hassan.