The foundation as an urban institution
The mosque was one component of an extensive Ramazanoğlu foundation. Dated elements include the Halil Bey Mescidi of 1493, the harem residence of 1495, the selamlık of 1497–98, Gön Hanı of 1531 and the madrasa and imaret of 1540. These buildings supplied residential, educational, commercial and charitable functions around the principal religious monument. The complex developed across several decades, rather than emerging from one building campaign.
From Halil Bey to Piri Paşa
Construction began under Halil Bey and was completed by his son Piri Mehmed Paşa in 1541, during the transition from Ramazanoğlu regional power to Ottoman administration. TDV dates the beginning to 1508, whereas the provincial description gives 1513. The west portal’s stepped muqarnas profile and the courtyard’s alternating dark and pale masonry demonstrate the variety of styles within the monument.
Its position suggests a connection with members of the Ramazanoğlu family, but the individual burials and date cannot be established from the surviving evidence. This distinction helps explain why the complex is a group of funerary and religious buildings rather than a single tomb.