The History of Law: From Ancient Codes to Judicial Review

The history of law stretches back roughly four thousand years, from carved stone codes in ancient Babylon to the layered mix of constitutions, statutes, and court precedents that governs daily life today. Every major legal tradition now in use carries traces of earlier decisions, revolts, and compromises, and following that long thread explains why certain procedures exist, why some rights feel more durable than others, and where the weak points in current systems were built in from the beginning.

The First Written Codes

The Code of Hammurabi, produced during the reign of the Babylonian king Hammurabi around 1792–1750 BCE, is one of the earliest surviving attempts to write a comprehensive set of laws. Its 282 provisions covered commercial dealings, property disputes, family obligations, and criminal penalties. The Code is best known for proportional punishment, the principle called lex talionis: if a free person blinded another, the offender lost an eye; if someone broke another’s bone, the same bone was broken in return. Carving these rules into public stone pillars let subjects hold officials to a fixed standard instead of whatever a local leader decided on the spot.

The Mosaic Law, traditionally attributed to Moses and preserved in the Hebrew scriptures, added something Hammurabi’s code largely lacked: an ethical and moral framework woven directly into legal obligation. It treated violations of community ethics with the same seriousness as property theft, and it carried that structure through changes in leadership because it existed in written form. The move from oral tradition to written code planted a principle that still sits at the heart of modern systems: people are entitled to advance notice of what the law requires of them.

Roman Law and the Civil Law Tradition

The civil law tradition, which today governs most of continental Europe and Latin America, traces directly to the Roman Empire. Emperor Justinian I commissioned the Corpus Juris Civilis between 529 and 534 AD, organizing centuries of Roman legal writing into a single unified body. The compilation pulled together imperial edicts, scholarly interpretations, and a teaching manual for law students, and it worked as a reference system that could be applied consistently across a sprawling empire. Its core philosophy was that written legislation, not individual judges, should serve as the primary source of legal authority.

Roman law lay largely dormant through the medieval period and then resurged with the Napoleonic Code of 1804. Napoleon’s codification swept away the patchwork of feudal customs and regional rules that had governed France, where more than 400 different legal codes had coexisted. The replacement emphasized property rights, freedom of religion, equality before the law, and the abolition of feudalism. Its influence spread far beyond France. Belgium, the Netherlands, much of western Germany, Switzerland, and large parts of Italy adopted versions of the Code either voluntarily or under French control. Bolivia, Chile, Argentina, and several other Latin American nations modeled their own civil codes on it. Louisiana remains the only U.S. state governed by a civil law tradition rather than common law.

The Common Law Tradition

Common law took a very different path. Rather than compiling a master code, the English system grew out of individual court decisions. After the Norman Conquest of 1066, the new royal government established courts under the king’s authority and gradually replaced the patchwork of local tribunals. Judges traveled circuits across the country, resolved disputes one at a time, and returned to London to compare notes. Over generations, a practice emerged: when a judge faced facts similar to a previous case, the earlier ruling served as a guide. That practice hardened into the doctrine of stare decisis, the principle that courts should follow the reasoning of prior decisions in similar cases to keep the law predictable.

A pivotal moment came in 1215 with the Magna Carta. Negotiated between King John and rebellious barons, the charter declared that even the monarch was bound by the law of the land. Its most enduring clause promised that no free person would be seized, imprisoned, or stripped of property except by lawful judgment or by the established law, language that became the seed of what modern systems call due process.1UK Parliament. The Contents of Magna Carta The charter did not create democracy or guarantee rights in any modern sense. It introduced a radical constraint: power had limits, and those limits could be written down and enforced.

Equity and the Court of Chancery

Strict common law sometimes produced harsh or absurd results. A litigant might have a legitimate grievance but no available remedy under the rigid forms of action that common law courts required. By around 1400, the English Lord Chancellor had established a separate court, the Court of Chancery, to hear these cases. Chancery operated on principles of fairness and conscience rather than technical rules, and its body of decisions became known as equity. Equity could compel a party to do something, or stop doing something, in ways that common law courts could not, creating remedies like injunctions and trusts that remain essential tools in modern law. The two systems eventually merged in most jurisdictions, but the distinction between legal and equitable remedies still matters in courtrooms today.

Merchant Custom and Commercial Law

Running alongside the formal court systems, medieval merchants developed their own body of rules known as the lex mercatoria, or law merchant. This was not legislation handed down by a king or parliament. It grew from the customs traders followed at fairs and ports across Europe, enforced by merchant courts that valued speed and practicality over formality. Its principles, including good faith dealing and the expectation that contracts remained valid so long as underlying conditions held, were deliberately broad enough to adapt as trade routes shifted and new industries appeared.

National legal systems often moved too slowly for commerce. As banking, insurance, and shipping grew more complex during the industrial era, businesses increasingly relied on standardized contract forms and trade terms to work around the lag. In the twentieth century, that impulse produced the Uniform Commercial Code in the United States, which harmonized commercial law across all fifty states, along with a wave of internationally recognized standard contracts. The thread connecting a thirteenth-century fair court to a modern international arbitration clause is surprisingly direct.

Written Constitutions and Judicial Review

The Enlightenment introduced a transformative idea: government derives its legitimacy from the consent of the governed, not from divine right or military conquest. That idea found its most influential expression in the United States Constitution, drafted in 1787 and operational since 1789. The framers divided federal power among three branches, legislative, executive, and judicial, specifically to prevent any single person or institution from accumulating unchecked authority.2United States Senate. Constitution of the United States The Constitution also established itself as a higher law, meaning ordinary legislation that conflicts with it is invalid.

The Bill of Rights, ratified on December 15, 1791, added ten amendments spelling out specific protections for individuals. The First Amendment barred Congress from restricting speech, press, or religious exercise. The Sixth guaranteed criminal defendants the right to a speedy and public trial by an impartial jury.3National Archives. The Bill of Rights: A Transcription These were not aspirational statements. They drew enforceable lines around government power and planted an expectation that citizens could challenge the state when it crossed those lines.

Marbury v. Madison

The Constitution said nothing explicit about who decides whether a law violates it. That question was settled in 1803 in Marbury v. Madison. Chief Justice John Marshall wrote that “it is emphatically the province and duty of the Judicial Department to say what the law is,” and that any act of Congress repugnant to the Constitution is void.4Justia. Marbury v. Madison, 5 U.S. 137 (1803) Judicial review, the power of courts to strike down unconstitutional legislation, became a defining feature of the American system and was later adopted in various forms by constitutional democracies around the world. Without it, the idea of a supreme law would have no teeth.

Reconstruction and the Reach of the Bill of Rights

The Civil War exposed the most catastrophic failure of the original constitutional framework: it coexisted with slavery. The Reconstruction Amendments attempted to repair that failure. The Thirteenth Amendment, ratified in 1865, abolished slavery. The Fourteenth, ratified in 1868, declared that all persons born or naturalized in the United States are citizens and prohibited any state from depriving a person of life, liberty, or property without due process of law or denying anyone equal protection of the laws. The Fifteenth, ratified in 1870, barred denying the right to vote based on race.5Constitution Annotated. Civil War Amendments (Thirteenth, Fourteenth, and Fifteenth)

The Fourteenth Amendment reshaped the entire relationship between the federal government and the states. Before its passage, the Supreme Court had held in Barron v. City of Baltimore (1833) that the Bill of Rights limited only the federal government, not state governments.6Justia. Barron v. Mayor and City Council of Baltimore, 32 U.S. 243 (1833) A state could theoretically restrict speech or deny jury trials without violating the Constitution. The Fourteenth Amendment’s Due Process Clause opened the door to changing that.

Through a process called selective incorporation, the Supreme Court gradually applied most of the Bill of Rights to the states, one right at a time. The Court asked whether each right was essential to due process, and if so, states had to honor it just as the federal government did. This was not a single dramatic event but a decades-long project, and a handful of provisions, including the right to a grand jury indictment and the Seventh Amendment’s civil jury trial guarantee, remain unincorporated.7Legal Information Institute. Incorporation Doctrine Incorporation transformed the Bill of Rights from a check on Congress into a check on every level of government.

Tribal Sovereignty and the Marshall Trilogy

Federal Indian law is one of the most distinctive threads in American legal history. In the 1820s and 1830s, Chief Justice John Marshall authored three Supreme Court decisions, now known as the Marshall Trilogy, that defined the relationship between the federal government, the states, and Native American nations.

Johnson v. M’Intosh (1823) held that the discovery of land by European nations gave the discovering government the sole right to acquire territory from its Indigenous occupants. Native nations retained a right to occupy and use their lands but could sell only to the federal government, not to private buyers or states.8Library of Congress. Johnson v. McIntosh, 21 U.S. 543 (1823) Cherokee Nation v. Georgia (1831) classified tribes as “domestic dependent nations,” a category that fit neatly into neither state nor foreign-nation status. Worcester v. Georgia (1832) went further, ruling that state laws “can have no force” within tribal territory and that the federal government held exclusive authority over relations with Indian nations.9Library of Congress. Worcester v. The State of Georgia, 31 U.S. 515 (1832)

These decisions created a framework that still governs tribal law. Tribes exercise inherent sovereignty over their own territories, states generally cannot regulate within those boundaries, and the federal government holds a trust responsibility. The framework has been modified, challenged, and sometimes violated in the nearly two centuries since, but the Marshall Trilogy remains the doctrinal foundation.

The Administrative State

By the early twentieth century, governing a complex industrial society required more specialized expertise than Congress could bring to every regulatory problem. The solution was delegation: Congress set broad policy goals and authorized executive agencies to fill in the technical details. That arrangement raised an obvious constitutional question, because the Constitution vests all legislative powers in Congress. The Supreme Court addressed the tension through the nondelegation doctrine, which holds that Congress cannot hand off its core legislative power but can delegate authority to agencies as long as it provides an “intelligible principle” to guide their work.10Constitution Annotated. Historical Background on Nondelegation Doctrine In practice, courts have been extremely reluctant to strike down delegations, and executive agency power has expanded accordingly.

The growth of the administrative state created its own due-process problem. Hundreds of federal agencies were making rules and adjudicating disputes, each following its own procedures. Congress passed the Administrative Procedure Act in 1946 without a single dissenting vote. The APA standardized how agencies propose and adopt regulations, how they conduct hearings, and how affected parties can seek judicial review.11Office of the Law Revision Counsel. 5 USC 551 – Definitions It remains the foundational statute governing the relationship between federal agencies and the public, and every major regulatory controversy in modern American law runs through its framework.

International Law After 1945

For most of recorded history, international law dealt almost exclusively with relationships between sovereign states, not individuals. That changed after World War II. The Nuremberg Trials of 1945–1946 established that individuals, including heads of state, can be held personally accountable under international law for crimes against peace, war crimes, and crimes against humanity. The defense that a defendant was “just following orders” was explicitly rejected. In December 1946, the United Nations General Assembly unanimously affirmed the principles established at Nuremberg, giving them universal application beyond the specific crimes of the Nazi regime.

The institutional architecture followed quickly. The Charter of the United Nations, signed on June 26, 1945, codified core principles of international relations, including the sovereign equality of states and the prohibition of the use of force. It also established the International Court of Justice as the principal judicial organ for resolving disputes between nations.12United Nations. UN Charter Decades later, the Nuremberg model was revived with ad hoc tribunals for Yugoslavia and Rwanda, and then with the creation of the permanent International Criminal Court in The Hague. The idea that law can reach across borders and hold individuals accountable, not just states, is arguably the most consequential legal development of the twentieth century.

Customary and Religious Roots

None of these formal systems emerged from nothing. Before legislatures and courts existed, communities governed themselves through customary law: unwritten rules passed down through generations that resolved property disputes, regulated family relationships, and punished offenses against the group. When centralized governments appeared, they often absorbed local customs into their formal codes rather than replacing them entirely. Many property and inheritance rules in both civil law and common law countries still carry traces of those customary origins.

Religious institutions shaped legal development as well. Canon law, the internal legal system of the Catholic Church, regulated marriage, inheritance, and church governance for centuries. Its rules on which relatives could marry, for example, directly influenced secular marriage law long after the formal separation of church and state.13Vatican. Code of Canon Law – Book IV – Function of the Church The law is never purely a product of legislation or judicial reasoning. It carries the accumulated weight of the communities that shaped it.