Sarim al-Din Ibrahim bin Mahammad bin Aidmar bin Duqmaq al-Ala’i (Egyptian Arabic: صارم الدين ابراهيم بن محمد بن ايدمر بن دقماق العلائي) , known as Ibn Duqmaq al-Qahiri al-Hanafi, was a medieval Egyptian historian and biographer from the Mamluk era. Many historians made a mistake when they indicated that Duqmaq was his paternal grandfather, and that the historian is Ibrahim bin Mahammad bin Duqmaq. Ibn Duqmaq wrote about 200 books on history, both authored and copied.