In the late 15th century, Sultan Qaytbay built a palace or mansion adjacent to the madrasa. In the 19th century, the palace was merged with another adjacent mansion built in 1776 by Ahmad al-Razzaz. The building is now known as Bayt al-Razzaz, and today its façade is contiguous with the façade of the madrasa of Sha'ban.[1]