Ask a Muslim which school of Islamic law they follow, and you may hear one of four names: Hanafi, Maliki, Shafi'i, or Hanbali. These are not rival sects but four disciplined methods of deriving practical guidance from the same Quran and the same Prophet ﷺ, each associated with a scholar whose life's work still shapes how hundreds of millions of Muslims pray, marry, trade, and worship today.
Why schools of law exist at all
The Quran and the example of the Prophet ﷺ (his sunnah) do not address every situation a believer might face in specific, itemized detail. Early generations of scholars, working from the same revealed sources, developed careful methods — examining the wording of the Quran, the authenticated hadith, the consensus of scholars, and reasoned analogy — to extend guidance to new questions. Because scholars working in different cities, with different available hadith and different reasoning emphases, sometimes reached different conclusions on secondary matters, several distinct schools of legal method, or madhabs, took shape in the first three centuries of Islam. Four of these coalesced into lasting traditions within Sunni Islam. This site's own about page describes its approach to such matters as madhab-neutral: differences between the schools are treated as legitimate, scholarly, and non-sectarian, not as competing claims to being "more correct" Islam.567
Abu Hanifah: reasoned flexibility in Kufa
Nu'man ibn Thabit, known as Abu Hanifah (c. 699-767 CE), taught in Kufa, in present-day Iraq, a city farther from Medina's concentration of hadith transmitters than Mecca or Medina itself. Partly for that reason, the school associated with him — the Hanafi school — became known for a comparatively greater use of structured independent reasoning (qiyas, analogy) and juristic discretion (ra'y) alongside the Quran and hadith, allowing it considerable flexibility in adapting to new circumstances and diverse local customs. Abu Hanifah did not write a comprehensive legal code himself; his teachings were compiled and systematized by his students. Today the Hanafi school is the most widely followed of the four, particularly across Turkey, the Balkans, and Central and South Asia.165
Malik ibn Anas: the living practice of Medina
Malik ibn Anas (c. 711-795 CE) spent nearly his entire life in Medina, the city where the Prophet ﷺ had lived, taught, and governed. Malik reasoned that the ongoing practice of Medina's community (amal) — the way its people had continued to pray, trade, and organize communal life generation after generation — served as a living witness to the Prophet's ﷺ actual example, alongside the hadith he carefully collected. His major work, Al-Muwatta ("The Well-Trodden Path"), is both an early hadith collection and a legal manual, among the earliest systematic works of Islamic law to survive. The Maliki school that grew from his teaching is now predominant across North and West Africa.265
Ash-Shafi'i: the architect of legal method
Muhammad ibn Idris ash-Shafi'i (767-820 CE) studied under Malik in Medina and also with Hanafi scholars, giving him direct exposure to both major approaches of his time. Rather than simply choosing between them, ash-Shafi'i stepped back and asked a more fundamental question: what makes a legal ruling valid in the first place, and in what order should sources be consulted? His answer, recorded in his work al-Risala, is considered the first systematic treatise on the principles of Islamic legal theory (usul al-fiqh). It established a clear hierarchy — the Quran, then authenticated hadith, then scholarly consensus (ijma), then carefully constrained analogy (qiyas) — that shaped how all four schools, not only his own, would come to justify their rulings. The Shafi'i school is widespread today in East Africa, Yemen, and much of Southeast Asia.365
Ahmad ibn Hanbal: fidelity to the text
Ahmad ibn Hanbal (780-855 CE), based in Baghdad, studied hadith intensively — reportedly traveling widely to collect and verify narrations — and became known for an approach that stayed as close as possible to the explicit wording of the Quran and authenticated hadith, using independent reasoning only with great caution. He compiled the Musnad Ahmad, one of the largest surviving collections of hadith, organized by narrator. Ibn Hanbal is also remembered for his personal courage: during the mihna, a period when the Abbasid caliphate tried to compel scholars to publicly affirm that the Quran was a created thing rather than the eternal word of God, he was imprisoned and beaten for refusing to affirm the doctrine, and his steadfastness earned him lasting respect even from scholars outside his own school. The Hanbali school that developed from his teaching predominates today in Saudi Arabia and Qatar.467
Lenses, not sects
It is worth stressing what these four schools are not: they are not four different religions, nor four competing claims about who counts as a "real" Muslim. All four imams accepted the same Quran, the same Prophet ﷺ, and the same core beliefs; their differences lie in method and in secondary matters of practice — how to perform a given part of prayer, the fine details of contracts or inheritance — not in the foundations of faith. Later generations of scholars across the schools generally treated one another with collegial respect, viewing legitimate disagreement on secondary matters as a strength of the tradition rather than a fault; the widely quoted principle in Islamic legal scholarship that "difference of opinion among scholars is a mercy" reflects that spirit.567 This mirrors how this site treats the larger Sunni and Shia division: describing differences fairly rather than ranking them.
How Muslims relate to a madhab today
Most Sunni Muslims today follow one of these four schools, often simply through the region or family they were raised in, consulting its accumulated rulings on everyday matters of worship and daily life through local scholars and imams trained in that tradition. Many Muslims are not strict about which school they follow, especially outside areas of specialist study, and it is common to consult across schools on particular questions. None of the four schools is treated by mainstream Sunni scholarship as more "correct" than the others; they are understood as four valid, time-tested lenses for applying the same revealed sources to a wide range of human circumstances.567
In short
Abu Hanifah, Malik, ash-Shafi'i, and Ahmad ibn Hanbal each built a rigorous, text-grounded method for answering questions the Quran and hadith do not spell out explicitly, and their four schools have carried Islamic law forward for over a thousand years side by side. Understanding them alongside the companions and the Rightly-Guided Caliphs rounds out the picture of how the early Muslim community's practice became the living, structured tradition Muslims draw on today.