The construction of the mosque began in 1513 under Ramazanoğlu Halil Bey and was completed under his son and successor, Piri Mehmet Paşa, in 1541.
It was damaged in the 1998 Adana–Ceyhan earthquake, and the restoration by the General Directorate of Foundations (Vakıflar Genel Müdürlüğü) was completed in 2004.
The western entrance is older than the main building and differs in style from the part constructed by Ramazanoğlu Halil Bey.
The northern section of the courtyard is covered with a wooden roof supported on pillars and thus can serve as an extension to the prayer hall and as an outdoor area for praying in summer.
At the east end of the courtyard, the entrance at the side of the main hall is decorated with black and white marble panels.
[2] The main prayer hall occupies the width of the rectangular plan and consists of two aisles of five bays separated by columns supporting semi-pointed arches.
The outer length of the Madrasah from east to west is 32.8 metres (108 ft).The rear walls of the east wing, the chimney, and the north part of the classroom are made of brick; the rest of the madrasah is made of white stone.
The second of the two rectangular windows on the hall's east and west walls is framed with geometrically patterned molding that forms the intersection of a thread line with a checker and six-armed stars with a flower with six leaves at the center.
As it is only 2 m (6.6 ft) away from the mosque's mausoleum, it is thought that the sarcophagi may belong to members of the Ramadanid family.