Having been ordered to do so by Al-Hakim bi-Amr Allah , the sixth ruler of the Fatimid caliphate , he quickly realized its impossibility .
When he was ordered by Al-Hakim bi-Amr Allah , the sixth ruler of the Fatimid caliphate , to carry out this operation , he realized he could not do it , and retired from engineering .