 The minaret is believed to have been built in the area of an earlier , Fatimid @-@ era brick minaret that had itself been rebuilt several times . Contemporary accounts suggest that the Fatimid minaret had defects in its construction and needed to be rebuilt several times , including once under the direction of Sadr al @-@ Din al @-@ <unk> 'i al @-@ Dimashqi al @-@ Hanafi , the qadi al @-@ <unk> ( Chief Justice of the Highest Court ) during the rule of Sultan Baibars . Recorded to have been rebuilt again under Barquq in 1397 , the minaret began to lean at a dangerous angle and was rebuilt in 1414 by Taj al @-@ Din al @-@ <unk> , the <unk> and <unk> of Cairo , and again in 1432 . The Qaytbay minaret was built in its place as part of a reconstruction of the entrance to the mosque . 
