Complex sentence: Abu Abd Allah al-Sheikh Muhammad ibn Yahya al-Mahdi was the first Wattasid Sultan, but controlled only the northern part of Morocco, the south being divided into several principalities.
Split into simpler sentences: Abu Abd Allah al-Sheikh Muhammad ibn Yahya al-Mahdi was the first Wattasid Sultan. He controlled only the northern part of Morocco, the south being divided into several principalities.