the fourth khurasanid ruler, ahmad ibn abd al-aziz (1107-1128), was considered by ibn khaldoun to be the most remarkable of his family. he built ramparts around tunis to defend it and secured guarantees of safe passage for travellers from the banu hilal.