He built eight madaris that were built "on either side of the mosque where there were eight higher madaris for specialised studies and eight lower medreses, which prepared students for these.