How It Evolved

Islam · Question

What is Sharia, and where does it come from?

By Published 6 min read

The short answer

Majority view

Sharia (sharīʿa, 'the path') is God's law as Muslims understand it: the right way of acting, as God wills it. Muslim scholars always distinguished it from fiqh, 'understanding', the human and fallible effort to work out what that law requires. For most of Islamic history the law was not a code issued by a ruler but a body of interpretation built by scholars, recorded in books that set out the differing opinions of the schools, and applied by judges alongside custom and the ruler's own regulations. The four Sunni schools took their lasting form between about 870 and 950. The first state code of Islamic law was the Ottoman Mecelle of 1869–1876; most of what is now called 'sharia law' is a product of modern states.

How the law was made, from the Qur'an to modern states
DateWhat happensWho makes the law
610–632The Qur'an uses the word sharīʿa once, of the path God has setRevelation, as Muslims understand it[3]
8th c.Regional 'living traditions' of law in Kufa, Basra, Medina and SyriaLocal scholars, drawing on practice and custom[4]
before 820al-Shāfiʿī's Risāla argues that the Prophet's sunna is binding lawA jurist's theory[9]
c. 870–950Personal schools form around Abū Ḥanīfa, Mālik, al-Shāfiʿī and Ibn ḤanbalScholars trained and certified in a school[13]
15th–16th c.Ottoman kanun on land, tax and administration beside the jurists' lawThe sultan, framed by the şeyhülislam[18]
1869–1876The Mecelle: 1,851 numbered articles of Ḥanafī civil lawThe state, for the first time[2]
1926 onwardTurkey replaces Islamic family law with a Swiss-based civil codeA secular republic[20]
1979Pakistan's Hudood Ordinances; Iran's constitution requires all law to rest on Islamic criteriaModern states, through ordinances and constitutions[22][25]
The spiral Malwiya minaret of the Great Mosque of Samarra rising behind the mosque's long brick wall
David Stanley · CC BY 2.0 · Wikimedia Commons

The short version: sharia is not a book. Muslims understand it as God’s law, the right way of acting as God wills it, and for most of Islamic history no one claimed to hold it complete in a single text. What existed on paper was fiqh, the jurists’ attempt to work out what God’s law requires, written up in the books of competing schools and applied by judges case by case. The idea of sharia as a code that a state “introduces” or “abolishes” is modern: the first state code of Islamic law dates from 1869.[1]​[2] Majority This page explains how the law was made, by whom, and when it changed character. Whether it is God’s law is a question of faith, not history.

The word: a path to water

Sharīʿa originally means a path, especially the way to water. The Qur’an uses the noun once, of the way God has set for the Prophet: “Now We have set you [Muhammad] on a clear religious path, so follow it” (Q 45:18).[3] In later Muslim scholarship it came to mean God’s law as a whole: worship, family, contracts, inheritance, crime and the conduct of daily life.

Scholars drew a line that matters for every modern argument. Sharia is God’s; fiqh, “understanding”, is the human effort to discover what it requires in particular cases, and it is fallible. Two jurists could disagree about the fiqh of a question while agreeing that there was one sharia behind it.[1] Consensus on the distinction. When people today say “sharia says”, they almost always mean a particular school’s fiqh, or a particular state’s law.

Where the law came from

The Qur’an contains legal rules, on inheritance, marriage and divorce, theft and some punishments, but they are a small part of its text. The rest of the law had to be built.

How it was built is one of the field’s long arguments. Joseph Schacht argued in 1950 that Islamic law grew out of the administrative practice of the Umayyad governors and the customs of the conquered provinces, systematized in the eighth century into the “living tradition” of each region, Kufa, Basra, Medina and Syria, and only later attributed, through hadith, to the Prophet and his companions.[4] Majority that early law drew heavily on regional practice; Contested on how little goes back to the Prophet. Harald Motzki and Wael Hallaq argued that Schacht dated too much too late, and that legal thinking with a religious basis can be traced to the late seventh century.[5]​[6] Contested The tradition itself holds that the law was derived from the Qur’an and the Prophet’s practice from the start.[7]

Four jurists and their schools

The four men whose names the surviving Sunni schools bear all lived in the first Abbasid century (§6):

  • Abū Ḥanīfa (d. 767) of Kufa, remembered for reasoned opinion (raʾy) and analogy (qiyās) where texts were silent; his doctrine is known mainly through his students, who served the Abbasid state as judges.[6] Consensus
  • Mālik ibn Anas (d. 795) of Medina, whose Muwaṭṭaʾ is the oldest surviving book of Islamic law. It sets out the practice of Medina beside reports from the Prophet, his companions and their successors; fewer than half its reports go back to the Prophet himself.[8]​[6] Consensus
  • al-Shāfiʿī (767–820), whose Risāla is the first surviving work of legal theory. He argued that the Prophet’s sunna, known through reports with sound chains, was binding alongside the Qur’an and outranked local practice, pointing to the Qur’an’s command to obey the Messenger (Q 4:59, 59:7).[9]​[10]​[11]​[12] Consensus on the argument.
  • Aḥmad ibn Ḥanbal (780–855) of Baghdad, above all a collector of hadith, who distrusted reasoned opinion.[13] Consensus

These were not yet “schools” in the later sense. Christopher Melchert showed that between about 870 and 950 the regional traditions gave way to personal schools organized around an eponymous founder, with recognized texts, commentaries and teachers who certified students, so that a jurist became a Ḥanafī or a Shāfiʿī by training.[13] Majority Other schools existed and died out, among them the literalist Ẓāhirīs. By about 1100 almost every Sunni jurist belonged to one of the four; Twelver Shia jurists developed their own law, called Jaʿfarī after the sixth imam.[13]​[14] Consensus Even the founders’ authority was partly built after their deaths: Hallaq argued that al-Shāfiʿī’s theory found few followers for nearly a century, until later Shāfiʿīs made him the founder of legal theory.[15] Majority

A scholars’ law, not a ruler’s code

For a thousand years the law lived in books written by scholars, not in statutes. Caliphs appointed judges (qāḍīs); they did not write the law. Judges applied the doctrine of their school alongside local custom and the ruler’s own regulations.[1]​[6] Majority When Ibn al-Muqaffaʿ, a Persian secretary, urged the caliph al-Manṣūr to review his judges’ conflicting rulings and issue a single code, nothing came of it; a widely reported story has a caliph ask Mālik to impose his book on the empire, and Mālik decline.[16]​[8] Majority on the letter; Contested on the story.

Rulers did legislate, but beside the jurists’ law rather than in place of it. The Ottomans governed through two kinds of law: sharia as worked out by the Ḥanafī school, covering worship, family, inheritance, contracts and much of criminal law, and kanun, the sultan’s own legislation on land, taxation and administration. Süleyman I was remembered as Kanuni, “the Lawgiver”, and his şeyhülislam Ebussuud framed the empire’s land and tax law in Ḥanafī terms (§9).[17]​[18] Consensus

The first code, 1869

The decisive change came with the Ottoman reforms. Between 1869 and 1876 a commission led by Ahmed Cevdet Pasha issued the Mecelle, a civil code of 1,851 articles drawn from Ḥanafī jurisprudence, covering contracts, sales, obligations and evidence. For the first time a state issued Islamic law as a code: instead of consulting the books of a school, judges applied numbered articles enacted by the sultan (§10).[2] Consensus Hallaq argues that codification of this kind turned a scholars’ law into a state’s law and ended the classical system; others see continuity with earlier Ottoman practice.[1]​[19] Contested

Sharia and modern states

Once law was something states enacted, states could also remove it or impose it.

  • Removal. The Turkish republic abolished the caliphate in 1924, closed the Ministry of Sharia and Pious Foundations the same day, and in 1926 replaced Islamic family law with a civil code adapted from Switzerland’s (§11).[20] Consensus
  • Declaration. Pakistan’s Objectives Resolution of 1949 declared that sovereignty belongs to God; whether the state was meant to be an Islamic one is still argued.[21] Contested on intent.
  • Imposition. In 1979 Pakistan’s military ruler issued the Hudood Ordinances, bringing the fixed punishments of classical law into criminal law, and in 1980 created a Federal Shariat Court. The zinā ordinance led to women who reported rape being prosecuted themselves; the law was amended in 2006 (§12).[22]​[23]​[24] Consensus on the laws; Majority on their effects. The same year Iran’s new constitution required every law to rest on Islamic criteria and gave leadership to a jurist.[25]​[26] Consensus

In each case a modern state, with parliaments, police and courts of its own design, decided which parts of the jurists’ tradition became law, in what form. That is a different thing from the classical system, in which no ruler could claim to have enacted God’s law. Majority

Common misconceptions

  • “Sharia is a book.” There is no single book. There is the Qur’an, the hadith, and a vast literature of fiqh by many authors in several schools that often disagree.[1] Consensus
  • “Sharia is mainly criminal punishment.” Most of the jurists’ law concerns worship, family, inheritance, contracts and commerce. The fixed punishments are a small part, hedged in classical law by strict rules of evidence. Majority
  • “Sharia has been unchanged since the Prophet.” The schools took their lasting form two and three centuries after him, and the codes and constitutions that now apply “sharia” are products of the nineteenth and twentieth centuries.[13]​[2] Consensus
  • “Caliphs made the law.” Caliphs appointed judges; scholars wrote the law. The first state code is the Mecelle of 1869–1876.[1]​[2] Majority

What scholars disagree about

How much of the law goes back to the Prophet. Schacht’s regional-practice thesis against Motzki and Hallaq’s earlier dating, and against the tradition’s own account.[4]​[5]​[6]​[7] Contested

Whether codification changed sharia’s nature. Hallaq’s case that state codes ended the classical system, against those who see continuity with earlier Ottoman lawmaking.[1]​[19] Contested

For the full story, see The Abbasids: law, hadith and theology and, for the modern codes, Reform, revival and empire.

References

  1. ^ a b c d e f g Wael B. Hallaq An Introduction to Islamic Law. Cambridge University Press, 2009. Sharia as a jurists' law rather than a state code, and its transformation in modernity.
  2. ^ a b c d Mecelle-i Aḥkām-ı ʿAdliyye — Ottoman code of civil law. 1869–1876 CE. Ottoman Turkish. The first code of Islamic (Ḥanafī) civil law issued by a state, compiled under Ahmed Cevdet Pasha. about
  3. ^ Qurʾan 45:18 — The Qur'an. c. 610–632 CE. Arabic. 'We have set you on a clear religious path (sharīʿa), so follow it': the Qur'an's one use of the noun sharīʿa. read the text
  4. ^ a b Joseph Schacht The Origins of Muhammadan Jurisprudence. Clarendon Press, 1950. Legal hadith and the argument that isnāds 'grew backwards'.
  5. ^ a b Harald Motzki The Origins of Islamic Jurisprudence: Meccan Fiqh before the Classical Schools. Brill, 2002. Isnād-cum-matn analysis tracing material in ʿAbd al-Razzāq's collection to the late seventh century (German original 1991).
  6. ^ a b c d e Wael B. Hallaq The Origins and Evolution of Islamic Law. Cambridge University Press, 2005. How Islamic law took shape from the late seventh to the tenth century, against Schacht's late dating.
  7. ^ a b Jonathan A. C. Brown Hadith: Muhammad's Legacy in the Medieval and Modern World. Oneworld, 2009. The hadith and their critics, Muslim and Western.
  8. ^ a b Mālik ibn Anas, al-Muwaṭṭaʾ — Mālik ibn Anas, al-Muwaṭṭaʾ (recension of Yaḥyā ibn Yaḥyā al-Laythī). before 795 CE. Arabic. The oldest surviving book of Islamic law: reports of the Prophet, companions and successors set beside the practice of Medina. read the text
  9. ^ al-Shāfiʿī, al-Risāla — Muḥammad ibn Idrīs al-Shāfiʿī, The Epistle on Legal Theory. before 820 CE. Arabic. The first surviving work of Islamic legal theory: the Prophet's sunna, known by soundly transmitted reports, is binding alongside the Qur'an; consensus and analogy follow. about
  10. ^ Joseph E. Lowry, ed. and trans. al-Shāfiʿī, The Epistle on Legal Theory (al-Risāla). New York University Press (Library of Arabic Literature), 2013. Arabic text and English translation of the Risāla.
  11. ^ Qurʾan 4:59 — The Qur'an. c. 622–632 CE. Arabic. 'Obey God and the Messenger, and those in authority among you'; disputes are to be referred to God and the Messenger. read the text
  12. ^ Qurʾan 59:7 — The Qur'an. c. 622–632 CE. Arabic. 'Accept whatever the Messenger gives you, and abstain from whatever he forbids you', in a verse on the division of gains. read the text
  13. ^ a b c d Christopher Melchert The Formation of the Sunni Schools of Law, 9th–10th Centuries C.E.. Brill, 1997. Dates the organized personal schools of law to c. 870–950.
  14. ^ Moojan Momen An Introduction to Shiʿi Islam: The History and Doctrines of Twelver Shiʿism. Yale University Press, 1985. The standard introduction to Twelver history and doctrine.
  15. ^ Wael B. Hallaq Was al-Shafiʿi the Master Architect of Islamic Jurisprudence?. International Journal of Middle East Studies 25:4, 587–605, 1993. Argues that al-Shāfiʿī's synthesis found few followers until legal theory emerged around 900.
  16. ^ Muhammad Qasim Zaman Religion and Politics under the Early ʿAbbāsids: The Emergence of the Proto-Sunnī Elite. Brill, 1997. The cooperation of early Abbasid caliphs with the scholars who became Sunni orthodoxy.
  17. ^ Halil İnalcık The Ottoman Empire: The Classical Age, 1300–1600. Weidenfeld & Nicolson, 1973. The classic account of Ottoman institutions, including the learned hierarchy, kanun and the devşirme.
  18. ^ Colin Imber Ebu's-suʿud: The Islamic Legal Tradition. Edinburgh University Press, 1997. How the şeyhülislam Ebussuud framed Ottoman land and state law in Ḥanafī terms.
  19. ^ a b M. Şükrü Hanioğlu A Brief History of the Late Ottoman Empire. Princeton University Press, 2008. The Tanzimat, Abdülhamid II, the Young Turks and the empire's end.
  20. ^ Erik-Jan Zürcher Turkey: A Modern History. I.B. Tauris, 1993. Standard history of modern Turkey, including the Kemalist reforms of religion.
  21. ^ Constituent Assembly of Pakistan, Objectives Resolution, 12 March 1949 — Objectives Resolution. 12 March 1949. English. Opens: 'Sovereignty over the entire Universe belongs to Allah Almighty alone'; opposed by every non-Muslim member; Article 2A of the constitution from 1985. about
  22. ^ Pakistan, Hudood Ordinances, 1979 — Five ordinances on theft, zina, qazf, alcohol and whipping. 1979 CE. English and Urdu. Zia ul-Haq's ordinances introducing Qur'anic punishments into Pakistani criminal law; the zina ordinance's evidentiary rules led to the prosecution of rape victims until the 2006 amendment. about
  23. ^ Seyyed Vali Reza Nasr Islamic Leviathan: Islam and the Making of State Power. Oxford University Press, 2001. How the states of Pakistan and Malaysia used Islamization to extend their power.
  24. ^ Asma Jahangir and Hina Jilani The Hudood Ordinances: A Divine Sanction?. Rhotas Books, 1990. Pakistani lawyers' study of how the zina ordinance was applied to women.
  25. ^ Constitution of the Islamic Republic of Iran, 1979 (amended 1989), Articles 4–5 — Constitution of the Islamic Republic of Iran. December 1979; amended 1989. Persian. Article 5 vests the leadership of the community, during the occultation of the twelfth imam, in a just and pious jurist; Article 4 requires all laws to rest on Islamic criteria. read the text
  26. ^ Said Amir Arjomand The Turban for the Crown: The Islamic Revolution in Iran. Oxford University Press, 1988. The revolution as a clerical revolution, and the novelty of jurist rule in Shia history.

The full story, with every source

Cite this page
APA
Paudel, A. (2026). What is Sharia, and where does it come from?. In How Islam Evolved. How It Evolved. https://howitevolved.com/islam/what-is-sharia/
MLA
Paudel, Amrit. “What is Sharia, and where does it come from?.” How Islam Evolved, How It Evolved, 23 October 2026, howitevolved.com/islam/what-is-sharia/.
Chicago
Paudel, Amrit. “What is Sharia, and where does it come from?.” How Islam Evolved. How It Evolved. Last modified 23 October 2026. https://howitevolved.com/islam/what-is-sharia/.
BibTeX
@misc{howitevolved2026whatissharia,
  author = {Paudel, Amrit},
  title = {What is Sharia, and where does it come from?},
  howpublished = {\url{https://howitevolved.com/islam/what-is-sharia/}},
  year = {2026},
  note = {How Islam Evolved. Last modified 2026-10-23}
}