 The mosque was built in 1407 by and dedicated to Emir Jamal al-Din al-Ustadar, who served under the Burji Mamluk Sultan An-Nasir Faraj.The main purpose of the building is madrasa which taught all four Islamic schools of jurisprudence.It had been undergoing renovation which completed in 2001.