End of the Abbasid caliphate of Cairo — the 'ceremony of transfer' tradition
When Selim the Grim seized Egypt, he brought with him to Istanbul the last caliph, al-Mutawakkil III 'Ala Allah, who had fallen prisoner at Marj Dabiq; the Abbasid caliphate of Cairo, which had continued without authority in the shadow of the Mamluk sultans since 1261, thus came to an end. By contrast, the famous tradition that the caliphate was transferred to the Grim in an official ceremony in Hagia Sophia appears for the first time at the end of the eighteenth century in d'Ohsson's work and is found in none of the sources of the Grim's period. The TDV İslâm Ansiklopedisi regards the tradition as fabricated, since there is no original source documenting the ceremony; but it also notes that no such ceremony of transfer was needed under the shari'a for the caliphate to be transferred.