a Jewish vizir, Aaron ben Batash, provoking a popular revolt. The sultan dies in the revolt when his throat is cut. The Portuguese king Afonso V finally manages to take Tangier, benefitting from the troubles in Fes. 1472: Abu Abd Allah al-Sheikh Muhammad ibn Yahya, one of the two Wattasid vizirs surviving the 1459 massacre, installs himself in Fes, where he founds the Wattasid dynasty. Government In many respects, the Marinids reproduced or continued the social and political structures that existed under the Almohads, ruling a primarily tribal state that relied on the loyalty of their own tribe and allies to maintain order and that imposed very little official civil administrative structures in the provinces beyond the capital. They also maintained the Berber traditions of democratic or consultative government, particularly through the existence of a council of Marinid tribal chiefs whom the sultan consulted when necessary, primarily on military matters. To maintain their control over the provinces beyond the capital of Fez, the Marinids mostly relied on appointing their family members to governorships or on securing local alliances through marriage. These local governors were in charge of both the administration and the military. After Abu Yusuf Ya'qub captured Marrakesh in 1269, for example, he appointed his ally Muhammad ibn 'Ali, to whom he was related by marriage, as his khalifa (deputy or governor) in Marrakesh, a position that would continue to exist for a long time. In some areas, like the mountainous Atlas and Rif regions, this resulted in indirect rule and a very limited presence of the central government. The Marinid sultan was the head of the state and wielded the title of amīr al-muslimīn ("Commander of the Muslims"). In later periods the Marinid sultans sometimes also granted themselves the title of amīr al-mu'minīn ("Commander of the Faithful"). The involvement of the sultan in state affairs varied depending on the personality of each; some, like Abu al-Hassan, were directly involved in the bureaucracy, while others less so. Under the sultan, the heir-apparent usually held a large amount of power and often served as the head of the army on behalf of the sultan. Aside from these dynastic positions, the vizier was the official with the most executive power and oversaw most of the day-to-day operations of government. Several families of viziers became particularly powerful during the Marinid period and competed with each other for influence, with the Wattasids being