Hafsid dynasty
They founded a Sharifian Emirate in near present-day Tiaret in west-central Algeria. After three generations, following the fall of this Emirate, some of their descendants lived in eastern Morocco near Oujda for some time, before moving to Kairouan in Tunisia. After some decades, they founded the town of M'saken at the time of the Hafsid dynasty which was based in Tunis.