Ibn Mammati

[2] His grandfather, Abu'l-Malih, entered the service of the then ruling Fatimid Caliphate and rose to become head secretary during the vizierate of Badr al-Jamali in the late 11th century.

[1] His father, Muhadhdhab, served as secretary of the army department (diwān al-jaysh) under the last Fatimid caliphs, and continued in office under Saladin (r. 1169–1193), until his death in 1182.

[1] Due to the anti-Christian policies imposed by Saladin's uncle, Shirkuh, Muhadhdhab and his family converted to Islam, as did a number of other Fatimid-era officials at the time, in order to preserve their positions.

'book of rules for the diwāns'), a four-volume guide to Egypt, its settlements, agricultural and irrigation systems, industries, taxation, mint, weights and measures, and a wealth of other information valuable to modern historians.

Begun by Ibn Mammati, its stories circulated widely in Egypt, and were collected and rewritten by Abu'l-Fadl Abd al-Rahman al-Suyuti (1445–1505) and Abd al-Salam al-Malki (1564–1668), and proved so popular that in subsequent centuries, the memory of the historical Qaraqush was obliterated and his name became "a symbol of a lunatic tyrant".