Complex sentence: Morocco remained ruled by the Sherifian sultanate, except for northern areas under Spanish control, until the 1912 Treaty of Fez made most of Morocco a French protectorate, leaving the Sherifian monarchy but establishing a French military presence and installing a French commissioner-general.
Split into simpler sentences: Morocco remained ruled by the Sherifian sultanate, except for northern areas under Spanish control, until 1912. The 1912 Treaty of Fez made most of Morocco a French protectorate, leaving the Sherifian monarchy but establishing a French military presence and installing a French commissioner-general.