cases involved non-Muslims whereas in 1789 non-Muslims were a part of thirty percent of cases. Ottoman court records also reflect the use of Islamic courts by formerly non-Muslim women. As it was illegal for non-Muslims to own Muslims and for non-Muslim men to marry Muslim women in the Ottoman empire, conversion to Islam would have been an option for non-Muslim women to free themselves of a spouse or master they did not want to subject to. However, this would likely lead to them being shunned by their former community. Classical fiqh acknowledges and regulates slavery as a legitimate institution. It granted slaves certain rights and protections, improving their status relative to Greek and Roman law, and restricted the scenarios under which people could be enslaved. However, slaves could not inherit or enter into a contract, and were subject to their master's will in a number of ways. The labor and property of slaves were owned by the master, who was also entitled to sexual submission of his unmarried slaves. Formal legal disabilities for some groups coexisted with a legal culture that viewed Sharia as a reflection of universal principles of justice, which involved protection of the weak against injustices committed by the strong. This conception was reinforced by the historical practice of Sharia courts, where peasants "almost always" won cases against oppressive landowners, and non-Muslims often prevailed in disputes against Muslims, including such powerful figures as the governor of their province. In family matters the Sharia court was seen as a place where the rights of women could be asserted against their husband's transgressions. Modern legal reforms Under colonial rule Starting from the 17th century, European powers began to extend political influence over lands ruled by Muslim dynasties, and by the end of the 19th century, much of the Muslim world came under colonial domination. The first areas of Islamic law to be impacted were usually commercial and criminal laws, which impeded colonial administration and were soon replaced by European regulations. Islamic commercial laws were also replaced by European (mostly French) laws in Muslim states which retained formal independence, because these states increasingly came to rely on Western capital and could not afford to lose the business of foreign merchants who refused to submit to Islamic regulations. The first significant changes to the legal system of British India were initiated in the late 18th century by the governor of Bengal