It was built by the Sultan Al-Ashraf Abu Al-Nasr Qaitbay during the Mamluk period in 877 Hijri\ 1472.