أهلها، ثم استمر الحال على ذلك إلى أن آل أمر القصر والأراضي التابعة له إلى ما رأيت في السؤال الوارد على الإمام المازري ثم استمر تزايد بناء الدور والعمران إلى أن صارت مدينة مسورة بسور وذلك أواسط المائة السابعة ثم آل الأمر إلى ما رأيت في حكايته الإمام البرزلي، وفي أوائل المائة التاسعة كان شيخ القصر أبا عبد الله محمد بن أبي زيد المترجم له في الطبقة السابعة عشر وكان به من التلامذة ما يزيد على المائة رحلوا إليه من الآفاق وكل من حل به يجد مسكنا يأوي إليه ومعلما يؤدبه ويعلمه القرآن والعلوم الدينية ويجد ما يلزم من أمر المعيشة وهي أمور تعين على طلب العلم ولا يخفى أن أكبر الأعوان وأهمها فراغ البال من أمر المعيشة وكانت الارزاق تأتي إليهم وإلى من به من المرابطين من أوقافه ومن جهات إفريقية كقفصة ونفزاوة وقابس والجزيرة والقيروان وغيرها ثم قام ابنه أحمد واستمر الحال على ذلك إلى أن استولى عليه الإسبان أواسط المائة العاشرة فهدم منه جانبا بعد ما قتل وأسر من لا يعد كثرة نقل ذلك الشيخ عظوم في أجوبته ثم أصلحه وأصلح المنار الذي به، وقيل هو الذي أسسه ثم أفتكه منه الترك وصار أمره إلى الانحلال والتقهقر تحت نظر حفدة الشيخ ابن أبي زيد إلى أوائل القرن الثالث عشر صيره الأمير حمودة باشا معقلا حربيا ونقل الطلبة الذين به لزاوية سيدي ذويب المتقدم الذكر وأجرى على عشرة منهم النفقة من أوقاف زاوية الشيخ أحمد بن أبي زيد المذكور وجعل لهم مؤدبا يعلم القرآن ومدرسا يقرىء مبادئ العلوم الدينية جرايتهما من الأوقاف المذكورة ونظرهم لقاضي المكان، ثم إن الباشا حسين بن محمود باي جعل به سنة 1246ه العساكر النظامية وشحنه بآلات الحرب، وفي أيام المشير أحمد باشا كان به من العساكر النظامية نحو ثلاثة آلاف واستمر الحال على ذلك إلى أن نصبت فرنسا حمايتها على الإيالة التونسية سنة 1298ه فأزالت ما به من الذخائر وآلات الحرب حيث صارت غير صالحة للدفاع وأغلقته واستولى عليه الخراب واعتبرته وأسوار المدينة الحكومة من الآثار العتيقة وصدر أمرها بالمحافظة عليها تحت نظر جمعية الأوقاف والإدارة الحربية. ولما قامت الحرب الكبرى المشار لها آخر التتمة وقع إسكان جماعة به من أسارى الألمان وتسخيرهم لإصلاح الخراب الذي به وأقاموا به أشهرا ثم نقلوا وسكن به طائفة من جالية دولة الروسيا عند استيلاء جمهورية السوفيات على بلاد القريم مع طائفة من عساكر الاحتلال ثم خرجوا وبقيت به العساكر إلى هذا الوقت، والحاصل أن القصر إلى هذا العهد آثاره تدل على أنه كان في العهد القديم آية دالة على عظمة العرب خالدة إلى الآن.
its people. Then the situation continued thus until the affair of the fortress (qasr) and the lands belonging to it came to what you have seen in the question put to Imam al-Mazari; then the building of houses and habitation kept increasing until it became a city enclosed by a wall, and that was in the middle of the seventh century; then the matter came to what you have seen in the account of it by Imam al-Burzuli. At the beginning of the ninth century the shaykh of the fortress was Abu ʿAbd Allah Muhammad ibn Abi Zayd, whose biography is given in the seventeenth generation, and there were in it more than a hundred students who had travelled to him from distant regions. Everyone who settled in it found a dwelling to shelter him and a teacher to instruct him and teach him the Qurʾan and the religious sciences, and found what was needed in the matter of livelihood. These are things that help in seeking knowledge, and it is no secret that the greatest and most important of helps is freedom of mind from the matter of livelihood. Provisions came to them, and to the murabitun in it, from its endowments and from the districts of Ifriqiya such as Qafsa, Nafzawa, Qabis, al-Jazira, al-Qayrawan and others. Then his son Ahmad took charge, and the situation continued thus until the Spaniards seized it in the middle of the tenth century and demolished part of it, after killing and capturing countless people (Shaykh ʿAzzum related that in his Ajwiba); then they repaired it and repaired the minaret in it, and it is said that it was they who founded it. Then the Turks wrested it from them, and its condition turned to dissolution and decline under the supervision of the grandsons of Shaykh Ibn Abi Zayd until the beginning of the thirteenth century, when the Amir Hammuda Pasha made it a military stronghold, moved the students who were in it to the zawiya of Sidi Dhuwayb mentioned earlier, assigned maintenance to ten of them from the endowments of the zawiya of the said Shaykh Ahmad ibn Abi Zayd, and appointed for them a muʾaddib who teaches the Qurʾan and a teacher who teaches the elements of the religious sciences, their stipends coming from the said endowments, and their supervision belonging to the qadi of the place. Then the Pasha Husayn ibn Mahmud Bey stationed the regular troops in it in the year 1246 AH and filled it with weapons of war; in the days of the Mushir Ahmad Pasha there were about three thousand regular troops in it. The situation continued thus until France established its protectorate over the Tunisian regency in the year 1298 AH; it removed the munitions and weapons of war that were in it, since it had become unfit for defence, and closed it, and ruin overtook it. The government counted it, together with the walls of the city, among the ancient monuments, and its order was issued to preserve them under the supervision of the Endowments Society (Jamʿiyyat al-Awqaf) and the military administration. When the Great War referred to at the end of the Tatimma broke out, a group of German prisoners were lodged in it and put to work repairing the ruin in it; they stayed in it for months, then were moved away. Then a group of the emigres of the Russian state lived in it, when the Soviet republic seized the land of the Crimea, together with a group of the troops of the occupation; then they left, and the troops have remained in it to this time. In sum, the remains of the fortress to this day show that in ancient times it was a sign of the greatness of the Arabs that has endured until now.