Civil law, civilian law, or Roman law is a legal system originating in Europe, intellectualized within the framework of late Roman law, and whose most prevalent feature is that its core principles are codified into a referable system which serves as the primary source of law. This can be contrasted with common law systems whose intellectual framework comes from judge-made decisional law which gives precedential authority to prior court decisions on the principle that it is unfair to treat similar facts differently on different occasions (doctrine of judicial precedent, or stare decisis).
Historically, a civil law is the group of legal ideas and systems ultimately derived from the Corpus Juris Civilis, but heavily overlaid by Napoleonic, Germanic, canonical, feudal, and local practices, as well as doctrinal strains such as natural law, codification, and legal positivism.
Conceptually, civil law proceeds from abstractions, formulates general principles, and distinguishes substantive rules from procedural rules. It holds case law to be secondary and subordinate to statutory law. When discussing civil law, one should keep in mind the conceptual difference between a statute and a codal article. The marked feature of civilian systems is that they use codes with brief text that tend to avoid factually specific scenarios. Code articles deal in generalities and thus stand at odds with statutory schemes which are often very long and very detailed.
The purpose of codification is to provide all citizens with manners and written collection of the laws which apply to them and which judges must follow. It is the most widespread system of law in the world, in force in various forms in about 150 countries, and draws heavily from Roman law, arguably the most intricate known legal system dating from before the modern era.