The Founding of the Husainid Dynasty in Tunis
In the vacuum of authority that arose upon the invasion of Tunis by Algerian forces, Husayn b. Ali, a sipahi agha of Turkish origin, seized the beylik and gained legitimacy by declaring his allegiance to the Ottoman sultan. The dynasty he founded ruled Tunis in 1705-1735 and 1756-1957; the order of a beylik passing from father to son replaced the rule of the ocak. Thus the first example was born in the Western ocaks of dynastic structures that were attached to the centre but in practice autonomous.