Hüseyin Ağa, chief white eunuch of Sultan Beyazid II, had this madrasah built 1448. It differs from the classical Ottoman Madrasah in terms of design. It is the first example of the octagonal design which is normally typical of Seljuk tombs or mausoleum. The entrance is through a large arched gateway on the northeast corner. Just beyond the entrance, there is a hall with rectangular niches on both sides. The octagonal inner courtyard is surrounded by a portico created by lancet arches built on four pillars on each side. Bursa school applied in the arches of this courtyard complements its unique beauty. The vaulted cloisters of this portico constitute the antechambers of the students’ cells. Each cell has a rectangular, marble framed window and a dome with an octagonal drum. On the southern side, there is a larger chamber with a higher dome than the rest of the chambers which is used both as a classroom and a masjid. The walls of the building are built of broken stone and brick. The intervals between the lines of three rows of bricks are masoned with broken stones.