Complex sentence: It was then ruled by different wāli who were appointed from Marrakech, until in 1208 when Abu Yahya was appointed as its governor, who created a semi-independent principality, with only a formal submission to the Almohad emir.
Split into simpler sentences: It was then ruled by different wālis who were appointed from Marrakech, until 1208 when Abu Yahya was appointed as its governor. He created a semi-independent principality, with only a formal submission to the Almohad emir.