Sharia courts were for a long time the primary institutions responsible for applying both the sharia and law emanating from the imperial power in the Ottoman Empire. They were typically composed of a single judge (kadi) in each district (kaza), whose decisions could be appealed to the Fetvahane, the office of the à Âeyhülislam. Their jurisdiction covered most civil and legal matters, although cases involving the personal status of non-Muslim subjects, such as marriage and inheritance, were generally handled by the religious courts of their respective communities.
Quoting Annette F. Timm and Joshua A. Sanborn,
Specialized commercial courts were established in the mid-19th century, during the Tanzimat, following the promulgation of the Ottoman Commercial Code in 1860 and subsequent procedural regulations in 1861. The establishment of commercial courts marked the beginning of a broader process of secularization through law, which continued with the creation of the Nizamiye Courts system. Their foundations were laid with the 1864 Provincial Regulations, and the system was formally established in 1879. The enactement of the secular legal codes and the formation of the new secular court system "overshadowed" the sharia jurisdiction, the scope of which was eventually reduced "more or less to matters concerning personal status and waqf."