Esperaunce

A damaged manuscript page with an ornate gold and blue illuminated panel, torn along one edge.

The Islamic Caliphates · Government and Law

Four schools and no supreme court

Metropolitan Museum of Art, New York, CC0.

The Archives/The Islamic Caliphates/Government and Law

The caliph al-Mamun set up an inquisition to make the scholars agree with him about a point of theology. Fifteen years later the state gave up, and the man who had refused was the most popular figure in Baghdad.

In most pre-modern states the law is what the ruler says it is. Islamic law developed the other way round. It was elaborated by private scholars working without appointment, salary or enforcement power, in study circles in the mosques of Kufa, Medina, Basra and later Baghdad and Cairo.

The state appointed judges and those judges applied the law, but the state did not make it, and after one serious attempt it stopped trying. The result is a legal system in which authority rests on scholarly consensus and the reputation of individual jurists, in which four mutually recognised Sunni schools have coexisted for a thousand years without any mechanism for resolving their differences, and in which there has never been anything resembling a supreme court.

That arrangement is unusual enough to be worth explaining in detail, and it accounts for a great deal about how Islamic societies have worked.

❦

On this page

What the jurists were working with

The raw material of the law was narrower than the questions being asked of it. The Qur’an contains a limited amount of directly legal material. Estimates of the number of verses with legal content vary between about eighty and five hundred depending on how broadly you count, out of more than six thousand.

Those verses cover inheritance shares in detail, marriage and divorce, some criminal penalties, dietary rules, and the obligations of prayer, fasting, alms and pilgrimage. They do not cover contract, most of commercial law, procedure, evidence, taxation, or the vast majority of the disputes a judge actually hears. The second source is the sunna, the practice of the Prophet, transmitted as hadith: reports of what he said, did or tacitly approved, each with a chain of transmitters.

The third and fourth, as the theory eventually settled, are consensus, ijma, and analogical reasoning, qiyas.

The early schools

Before the four named schools there were regional traditions, and their differences were geographical rather than doctrinal. The scholars of Medina had the practice of the city where the Prophet had lived, and they treated the settled custom of that community as itself evidence of the sunna. The scholars of Kufa, in Iraq, were in a new garrison city with a mixed population and no such living tradition, and they relied more heavily on reasoning from principles. Their opponents called them the people of opinion.

A massive square stone tower in three diminishing stages rising above a long courtyard wall.
The minaret of the Great Mosque of Kairouan, ninth century, one of the oldest standing anywhere. Its square stages follow late Roman lighthouse towers.Photograph by Monaam Ben Fredj, CC BY-SA 4.0, via Wikimedia Commons.

Syria and Egypt had their own traditions. So did the Shia, developing separately around the teaching of the imams. These were not yet organised schools. They were local scholarly cultures, and a young man travelled between them to study, which is how ideas moved.

Al-Shafii and the argument about method

The decisive intervention was made by one man and it reframed the whole subject. Muhammad ibn Idris al-Shafii, who died in 820, studied in Medina, worked in Iraq and Egypt, and wrote a treatise, the Risala, on the sources of law. His argument was that the only valid evidence of the sunna is a hadith with a sound chain going back to the Prophet himself. Not the practice of Medina, not the opinion of a companion, not the settled view of a regional school.

That subordinated local custom and independent reasoning to the hadith corpus, and it meant that the law became, in principle, a matter of finding and authenticating texts. The consequence was an enormous expansion of hadith scholarship in the ninth century, discussed in Everything was written down late, and the compilation of the great collections by al-Bukhari, Muslim and others. Joseph Schacht argued in 1950 that al-Shafii’s demand actually produced the hadith, in the sense that legal positions already held came to be supported by reports that had not previously existed. That thesis has been contested for seventy years and has never gone away.

The four schools

What emerged by the tenth century was a settled plurality, and the names attached to it are the founders’ names applied retrospectively. The Hanafi school, named for Abu Hanifa of Kufa, died 767, is the most willing to use independent reasoning and juristic preference. It became the school of the Abbasid state and later of the Ottomans, and is dominant today in Turkey, the Balkans, central and south Asia.

A brick courtyard surrounded by two storeys of arched rooms, reflected in a pool with a palm tree and a minaret behind.
The Mustansiriya in Baghdad, founded by the caliph al-Mustansir in 1233 to teach all four Sunni schools of law. It is one of the few Abbasid buildings in the city that survive.Photograph by Taisir Mahdi, CC BY-SA 4.0, via Wikimedia Commons.

The Maliki school, named for Malik ibn Anas of Medina, died 795, gives weight to the practice of Medina. It is dominant in North and West Africa and was the school of al-Andalus. The Shafii school, named for the jurist above, is dominant in Egypt, east Africa, and southeast Asia.

The Hanbali school, named for Ahmad ibn Hanbal, died 855, is the most restrictive about reasoning and the most insistent on text. It is the smallest, and it is the basis of the legal system of Saudi Arabia. The Shia developed their own, principally the Jafari school, named for the sixth imam Jafar al-Sadiq, which admits reason as a source in a way the Sunni schools generally do not and retains an active role for living jurists.

Why four and not one

The plurality was deliberate and it was theorised. By roughly the eleventh century a doctrine of mutual recognition had settled: each of the four schools is a valid interpretation, a Muslim should follow one, and a qualified jurist of one school does not declare the others wrong. A saying widely attributed to the Prophet, that difference of opinion within the community is a mercy, was used to license this.

The practical effect is that a single legal question can have four correct answers, and a litigant in a city with judges from more than one school might be able to choose. That flexibility was widely used, particularly in commercial matters, and there is an extensive literature on the practice of selecting the most convenient school for a given transaction, which the jurists themselves disapproved of and could not prevent.

The Mihna

The one serious attempt by a caliph to dictate doctrine failed, and the failure was decisive. In 833 the caliph al-Mamun instituted a test, the mihna, requiring judges and scholars to affirm that the Qur’an is created rather than eternal. The theological content of that question is dealt with in Is the Quran created. What matters here is the constitutional claim behind it.

A long arcade of horseshoe arches along one side of a bare paved courtyard, with two figures walking across it.
The courtyard of the Great Mosque of Kairouan in Tunisia, largely ninth century. Its plan became the model for mosques across North Africa and Spain.Photograph by damian entwistle, CC BY-SA 2.0, via Wikimedia Commons.

Al-Mamun was asserting that the caliph had authority to determine belief and to require scholars to conform. He wrote that God had made the imam responsible for the religion of the community. Most scholars submitted, some under duress and some with private reservations.

Ahmad ibn Hanbal did not. He was imprisoned, interrogated and flogged, and he refused to affirm the formula. He was released, kept under restriction, and became the most admired religious figure in Baghdad.

The mihna was continued by two further caliphs and abandoned around 848 or 851 by al-Mutawakkil, who reversed the doctrine as well.

What the mihna settled

The consequences went well beyond the theological question. The caliph had tried to define orthodoxy and had been defeated by the passive resistance of the scholarly class and the public sympathy it attracted. After that, no caliph attempted it again on the same scale. The ulama, the scholars, held religious authority; the ruler held political power; and the relationship between them was one of negotiation rather than command.

That division is one of the most consequential features of Sunni Islam. It means there is no church, no ordination, no hierarchy and no institution capable of pronouncing definitively on doctrine. It also means the ruler’s legitimacy depends on scholars he cannot appoint, which gave the ulama real leverage and made them, in most periods, a conservative force interested in the stability that protected their position.

What the law actually covered

A practical note, since the scope is frequently misdescribed. Fiqh, the elaborated law, is organised into worship and transactions. The first covers ritual purity, prayer, alms, fasting and pilgrimage. The second covers sale, lease, partnership, agency, deposit, loan, marriage, divorce, inheritance, endowment and criminal penalties.

A manuscript painting of a turbaned ruler seated on a throne with a spear-bearer beside him and two petitioners approaching.
A governor receiving petitioners, from the Maqamat of al-Hariri, 1237. Manuscripts like this are among the very few pictures of ordinary Abbasid life.Maqamat al-Hariri, Baghdad, 1237, Bibliotheque nationale de France, public domain, via Wikimedia Commons.

A great deal of the corpus is commercial, and the law of contract is worked out in very considerable detail, including devices for avoiding the prohibition of interest that were widely used and openly discussed. Alongside fiqh there was always a parallel jurisdiction. Rulers maintained their own courts, the mazalim, for complaints against officials, and market inspectors, the muhtasib, enforced weights, measures and public order.

Taxation beyond the canonical alms was a matter for the ruler, justified by necessity. Criminal justice in practice was largely administrative, because the evidentiary requirements of the fiqh for the fixed penalties are so demanding that they are rarely satisfiable. The gap between the law as written by the jurists and the law as administered is a large field of study in itself.

The closing of the gate

One long-running claim about Islamic law needs stating and then qualifying. The traditional account holds that by around the tenth century the gate of ijtihad, independent legal reasoning, was closed, and that subsequent jurists could only follow established doctrine. Joseph Schacht took that at face value and it entered the standard western account as the moment Islamic law ceased to develop.

A white ceramic bowl with a band of severe black Arabic lettering running round the inside of the rim.
A Samanid epigraphic bowl, tenth century, from eastern Iran. The inscription is a proverb, and the writing is the entire decoration.Metropolitan Museum of Art, New York, CC0.

Wael Hallaq argued in 1984 that the closing never happened: that jurists went on claiming and exercising ijtihad, that the schools continued to produce new doctrine, and that the phrase was a polemical device used by opponents rather than a description. The current position is somewhere between. Formal innovation became harder and was mostly conducted as commentary on existing texts, and substantive development continued through fatwas, responses to specific questions, which were then collected and shaped doctrine.

The fatwa literature is enormous and is the best evidence for what the law was actually doing in any given century.

What it produced

A closing assessment. Islamic law is one of the two great legal traditions of the pre-modern world alongside Roman law, and the comparison is instructive because the two are structurally opposite. Roman law was codified by imperial commission, issued under Justinian’s authority in the 530s, and transmitted as a state product.

A black and white manuscript page of dense Arabic text with notes written in the margins.
A copy of al-Bukhari’s collection of hadith, about 1400, with a licence to transmit written on it. Notes like these record who read the book with whom, the chain the isnad system depends on.Public domain, via Wikimedia Commons.

Islamic law was never codified until modern states did it in the nineteenth and twentieth centuries, and the act of codification changed its character, because a code is issued by a government and the whole tradition had been built on the proposition that the law does not belong to governments. The jurists’ independence was real. It was also never institutionally protected, which is why it depended on the scholars’ willingness to accept poverty and imprisonment, and why the memory of Ibn Hanbal in the mihna carried the weight it did for a thousand years afterwards.

Sources

Ancient

  • Al-Shafii, al-Risala; Malik ibn Anas, al-Muwatta
  • Al-Tabari and others on the mihna; the Musnad of Ahmad ibn Hanbal
  • Al-Mawardi, al-Ahkam al-Sultaniyya; the fatwa collections of the classical schools

Modern

  • Wael Hallaq, The Origins and Evolution of Islamic Law, 2005
  • Joseph Schacht, The Origins of Muhammadan Jurisprudence, 1950
  • Christopher Melchert, The Formation of the Sunni Schools of Law, 1997
  • Baber Johansen, on the relationship between fiqh and administrative practice
  • Knut Vikor, Between God and the Sultan: A History of Islamic Law, 2005

New civilisations are announced by email as they are written.

Passages may be quoted with my name and a link to the page, and copies may be handed out in a classroom, lecture or study group as long as the site’s name stays on them. Please ask first before republishing a whole essay or Archives page, translating one, or using the writing in anything that is sold. Use for training machine-learning systems is not permitted. The details are on Using this site.

Images are credited individually; rights remain with their holders.

© 2026 Esperaunce. All rights reserved.