Organization, Culture and Building Activities among the Seljuks
The madrasa architecture that emerged and developed in the period of the Great Seljuks found its true home, in a sense, in Anatolia and became widespread there. Indeed, the sultans and statesmen of the Anatolian Seljuks also had many madrasas built. In this period too, religious instruction was given in the madrasas, and medical instruction (practice) in the hospitals (şifahâne), while some of them were also used as observatories.
The Seljuk judicial organization, as in all medieval Turkish-Islamic states, was divided into two: religious (şer'î) and customary (örfî) jurisdiction:
The religious judicial system: In this judicial system, cases were heard by kadis. The kadi was competent in all matters relating to religion and the sharia. Accordingly, kadis heard matters of marriage and divorce and cases of maintenance, inheritance and debt; they assumed the guardianship of orphans and of women who had no male relatives; they performed the function of notary; they administered mosques and the facilities and foundations belonging to them; and they drew up deeds of endowment. The chief kadi, called "Kadı el-Kudât", was appointed by the Sultan. In places not under the direct control of the Sultan, it was possible for kadis to be appointed by the provincial governors.
The customary judicial system: In this highest secular court, the cases of those who disturbed public order and did not obey the laws were heard by the "Emîr-i dâd" (or Dâdbegi), who dealt especially with criminal matters. Among the Great Seljuks the Emîr-i dâd performed the function of minister of justice and presided over the Dîvân-ı Mezâlim, which also heard cases other than religious ones. Disputes within the Seljuk army, on the other hand, were heard by military courts headed by the "Kadıy-ı leşker".