الثاقب سنان باشا بعد قتال استشهد فيه الكثير من الأبطال وأمراء الأجناد وكانت الدائرة على الأعداء والبغاة وظفر هذا الوزير بمحمد الحفصي المذكور واعتقله إلى أن هلك في اعتقاله وانقرضت بانقراضه هاته الدولة، والله سبحانه وتعالى الفعال لما يريد لا راد لأحكامه وأفعاله فكان ابتداؤها سنة 603 ه وانقراضها سنة 981 ه وسبحان الباقي الذي لا يحول ولا يزول. والسبب في ذلك هو ما أشرن إليه فيما سلف، وهو أنه لما فسدت طباعهم واختل حالهم وامتلأ صاعهم وكانت دولتهم على حالة الهرم واستغاثوا بأعداء الدين فكان مآلهم سلب النعم وإحاطة النقم. فانظر واعتبر لحال هاته الدولة على ضعف ساحة أرضها، وقلة أنهارها وأشجارها كيف ابتداء أمرها واتساع مجال ملكها وأملها من أملها من أهل المشرق والمغرب ومدوا إليا يد البيعة ودانوا لها بالطاعة، واعتصموا بالانتساب إلى سلطانها، وأتته بيعة الأشراف من بيت الله تعالى وحرمه الآن ومهبط الوحي حيث كانت أقرب إلى خلال الخير وأثل ملوكها في الحاضرة المصانع الواسعة والأبنية النافعة كالزوايا في الطرق لأبناء السبيل والتكايا والمساجد والمدارس والمكاتب لقراءة القرآن العظيم ورتبوا الكتب العلمية في أماكن محفوظة على قانون خاص إعانة لأهل العلم وطلابه والمستشفيات، إلى غير ذلك مما بقي أثره ولم ينس خبره. وفي أيامهم نفق سوق العلم وظهر من الراسخين فيه من هذا القطر أعلام مصنفاتهم تشهد لهم بذلك. وكان من الحضارة بتونس ما اقتضاه طبع العمران والثروة وحال البلاد بما لا ينافي سذاجة الدين فتوالت الوفود على سكنى هاته الحاضرة من سائر الجهات على اختلاف الملل والنحل والأصناف يجذبهم مغنطيس العدل فزادوا في أسباب العمران من البناء والغراسة وغير ذلك. وانظر واعتبر كيف كانت عاقبة أمرها وانقلاب أحوالها بعد تلك القوة وعزة السلطان وعلو الكعب من انتقاض الجهات وكثرة الثوار واستطالة أيدي الأعراب في البلاد بالنهب والبغي والفساد حتى استعان آخر ملوكهم بالعدو الأجنبي وآل أمره كالمسجون في حجرة لا يملك إلا موضع قدميه ثم إلى سجنه وموته تحت أقفاله عقابا له وزجرا لأمثاله الناسجين على منواله وما قررناه في حق ملوك هاته الدولة وعلمائها هو ملخص ما أسلفناه.
thought, Sinan Basha, after fighting in which many heroes and commanders of troops were martyred, and the defeat fell on the enemies and the rebels. This vizier got hold of Muhammad al-Hafsi mentioned and imprisoned him until he perished in his prison, and with his extinction this state became extinct. God, Glorified and Most High, does what He wills; there is none to turn back His decrees and acts. Its beginning was in the year 603 AH and its extinction in the year 981 AH. Glory be to the Everlasting, who neither changes nor passes away. The reason for that is what we pointed to earlier: when their natures became corrupt, their condition disordered and their measure full, and their state was in decrepitude, and they sought help from the enemies of the religion, their outcome was the stripping of blessings and being encompassed by vengeance. So look and take warning from the state of this dynasty, despite the smallness of the extent of its land and the fewness of its rivers and trees: how its affair began, how wide the field of its kingdom was, and how those of the people of the East and the West who placed their hopes in it stretched out to it the hand of allegiance, submitted to it in obedience and held fast to affiliation with its sultan; and the oath of allegiance of the Sharifs came to it from the House of God Most High, His secure [?] Sanctuary and the place where Revelation descended, since it was nearest to good qualities. Its kings founded in the capital extensive works and useful buildings, such as zawiyas on the roads for wayfarers, hospices, mosques, madrasas and schools for reading the mighty Qurʾan; they arranged books of learning in protected places under a special rule, as an aid to the people of knowledge and its students; and hospitals, and other things whose traces remain and whose report is not forgotten. In their days the market of knowledge was brisk, and there appeared from this region eminent men firmly grounded in it, whose works bear witness to that. There was in Tunis such civilisation as the nature of settled life, wealth and the condition of the land required, without contradicting the simplicity of religion; so delegations came one after another from all quarters to settle in this capital, of different religions, sects and kinds, attracted by the magnet of justice, and they added to the means of civilisation in building, planting and other things. And look and take warning at how the end of its affair was, and the reversal of its conditions after that strength, might of authority and high standing: the breaking away of the regions, the many rebels, and the Bedouin stretching out their hands over the land with plunder, outrage and corruption, until the last of their kings sought help from the foreign enemy, and his affair came to be like one imprisoned in a room owning nothing but the place of his feet, and then to his imprisonment and death under his locks, as a punishment for him and a deterrent to his like who weave on his loom. What we have established concerning the kings of this state and its scholars is a summary of what we set out before.