 The teaching center at the mosque also suffered . The once well stocked library at al @-@ Azhar was neglected , and manuscripts of Fatimid teachings that were held at al @-@ Azhar were destroyed . The Ayyubid dynasty promoted the teaching of Sunni theology in subsidized madrasas ( schools ) built throughout Cairo . Student funding was withdrawn , organized classes were no longer held at the mosque , and the professors that had prospered under the Fatimids were forced to find other means to earn their living . 
