Nur al-Din commissioned the construction of a , which came to be known as
Cacabey Madrasa, in 1272–73, during the reign of Sultan
Kaykhusraw III (), as stated in its inscription. A detailed bilingual Arabic–Mongolian deed (Islamic charitable endowment), dated 10 May 1272, survives in several manuscript copies and outlines the endowment he assigned to the madrasa, including agricultural lands, mills, vineyards, baths, shops,
caravanserais, and houses across central Anatolia. These revenues were designated to support the madrasa's teaching activities, an associated lodge, elementary school, hospice, and charitable personnel, as well as two additional foundations on the
Kayseri–Kırşehir route and in the village of "Talimekini" near Kayseri. The deed also stipulates regulations governing the conduct and obligations of students, reflecting a structured educational environment. Later local tradition identified the building with astronomical study, but neither its inscription nor its endowment document mention scientific observation, and modern scholarship attributes such claims to later folklore. The complex fell into disuse in the Ottoman period, was partially converted to a mosque, and underwent modern restoration, after which it continued to function as a place of worship. Adjacent to the entrance stands Nur al-Din's own tomb, further linking his personal legacy to the institution he founded. ==Family==