 Following their conquest of Jerusalem in 1187 , the Ayyubids under Saladin may have been the first to establish the position of Amir al @-@ Hajj to protect the annual Hajj caravans leaving Damascus for Mecca with the appointment of <unk> ibn Ayyub to the office . 
