text: Following the Revolutions of Tunis which saw Ibrahim Sharif overthrow Muradids' power, the latter became the first bey to combine this function with that of Pasha. Taken to Algiers following a defeat against the Dey of Algiers, and unable to put an end to the troubles which agitated the country, he was a victim, on 10 July 1705 of a coup of Al-Husayn I ibn Ali, who took the name of Hussein I.
  Hussein I reigned alone over Tunisia, establishing a real monarchy and became Possessor of the Kingdom of Tunis, disposing over all his subjects the right of high and low justice. His decrees and decisions had the force of law.
  As Bey of Tunis he sought to be perceived as a popular Muslim interested in local issues and prosperity. He appointed as qadi a Tunisian Maliki jurist, instead of an Hanafi preferred by the Ottomans. He also restricted the legal prerogatives of the janissary and the Dey. Under Hussein I, support was provided to agriculture, especially planting olive orchards. Public works were undertaken, e.g., mosques and madrassa (schools). His popularity was demonstrated in 1715 when the kapudan-pasha of the Ottoman fleet sailed to Tunis with a new governor to replace him; instead Hussein I summoned council, composed of local civil and military leaders, who backed him against the Ottoman Empire, which then acquiesced.
  Wars and crisis to take the throne (1735–1807)
  In 1735, Ali I gained access to the throne by dethroning his uncle Hussein I who was killed by his great-nephew Younès in 1740.