After Saladin overthrew the Fatimid Caliphate around 1171 and established the Ayyubid dynasty, attempts were made by him to abolish the taxes on the pilgrims.[35] Saladin's removal of illegal taxes was praised by Ibn Jubayr. Saladin's measures, however, proved insufficient, especially in later times, partly because there were other taxes (like taxes on hajj caravans or camels) and also because the administrative decisions, taken in Damascus or Cairo, were not easy to be applied effectively in Hejaz due to long distance. Some of the later Mamluk sultans – like Baybers and Hassan – made active attempts to control the Meccan local rulers from taxing the pilgrim caravans by compensating the Meccan rulers with annual allocation of a fixed sum of money.[36] Al-Suyuti mentions that in the year 384 AH (around 994 CE), pilgrims who came from Iraq, Syria, and Yemen to perform hajj went back unsuccessful because they were not allowed to perform hajj without paying tax.