The religious complex was built in 1522 by Ayse Hafsa Sultan, wife of Sultan Selim I (reg. 1512-1520). It contains of a mosque, madrasa, hospice, elementary school, double bath and hospital.
Source:
Necipoglu Gülru. 2005. The Age of Sinan: Architectural Culture in the Ottoman Empire. London: Reaktion Books, 53-54.