أول من تولى النظر على هذا القصر الأمير أحمد أحد ملوك بني الأغلب حين امتلأ القصر بالمرابطين وأجرى عليهم ما يلزم من النفقة وقد بلغ عدد المرابطين به في مدة سعدون الخولاني شيخ القصر المترجم له في الطبقة السابعة زهاء أربعة آلاف مرابط بين عالم وزاهد وصالح، وكانت ملوك الشيعة تخشاه ولما ضاق القصر على سكانه أضيفت الأراضي التي حوله حتى القرطين للقصر فبنى المرابطون دورا حوله وغرسوا الأراضي التابعة له للانتفاع بها، وأول دور بنيت هي الدور المعروفة بالزريبة وكانت قليلة في زمن سحنون ولذا قال: إن إقامة الجمعة لا تجب على
The first who took charge of the supervision of this castle was the emir Ahmad, one of the kings of the Banu l-Aghlab, when the castle was filled with murabitun, and he provided them with the necessary maintenance. The number of murabitun in it in the time of Saʿdun al-Khawlani, the shaykh of the castle, whose biography is in the seventh generation, reached nearly four thousand murabitun, scholars, ascetics and righteous men, and the kings of the Shiʿa feared it. When the castle became too narrow for its inhabitants, the lands around it as far as al-Qartayn were added to the castle; the murabitun built houses around it and planted the lands belonging to it to benefit from them. The first houses built were the houses known as al-Zariba, and they were few in the time of Sahnun; for that reason he said: The holding of the Friday prayer is not obligatory upon