The Sahabiye Madrasa was built in 1267-68 by Sahib Ali bin Hüseyin during the reign of Seljuk Sultan III. Gıyasettin Keyhusrev. It is understood that the person mentioned as the founder of the madrasah in the inscription was the famous Seljuk vizier Sahib Ata Fahreddin Ali. The geometric carvings on the sides and on the door are the best examples of Seljuk late period craftsmanship.