Zirid dynasty
Under the Zirid dynasty, Tobna had a Zenata governor named Fulful ibn Sa'id ibn Khazrun, who was appointed by al-Mansur ibn Buluggin in 992 and reconfirmed by his successor Badis ibn Mansur in 996. However, in 999, Fulful rebelled, and in retaliation, Badis pillaged the city. In 1017, a peace treaty between Badis's successor, al-Mu'izz, and Hammad ibn Buluggin, al-Mansur's brother and founder of the Hammadid dynasty, gave control of Tobna to the Hammadids, and Hammad's son al-Qa'id was made its governor. Under Hammadid rule, Tobna briefly enjoyed a renewed prosperity.