Sharia was intended to regulate affairs of the Muslim community. Non-Muslims residing under Islamic rule had the legal status of dhimmi, which entailed a number of protections, restrictions, freedoms and legal inequalities, including payment of the jizya tax. Dhimmi communities had legal autonomy to adjudicate their internal affairs. Cases involving litigants from two different religious groups fell under jurisdiction of Sharia courts, where (unlike in secular courts) testimony of non-Muslim witnesses against a Muslim was inadmissible in criminal cases or at all. This legal framework was implemented with varying degree of rigor. In some periods or towns, all inhabitants apparently used the same court without regard for their religious affiliation. The Mughal emperor Aurangzeb imposed Islamic law on all his subjects, including provisions traditionally applicable only to Muslims, while some of his predecessors and successors are said to have abolished jizya. According to Ottoman records, non-Muslim women took their cases to a Sharia court when they expected a more favorable outcome on marital, divorce and property questions than in Christian and Jewish courts.