Construction began in 739/1338–39, and total expenditure for the mosque reached over three hundred thousand dirhams.[3] Al-Maridani contributed a substantial amount to the mosque's construction, as he was seriously ill throughout it and hoped to make it as memorable as possible.[2]