A civil code is a systematic collection of laws designed to comprehensively deal with the core areas of private law such as for dealing with business and negligence lawsuits and practices. A jurisdiction that has a civil code generally also has a code of civil procedure. In some jurisdictions with a civil code, a number of the core areas of private law that would otherwise typically be codified in a civil code may instead be codified in a commercial code.
The concept of codification dates back to ancient Babylon. The earliest surviving civil code is the Code of Ur-Nammu, in . 2100–2050 BC. The most famous ancient civil code, however, is the Corpus Juris Civilis, a codification of Roman law produced between 529-534 AD by the Byzantine emperor Justinian I, which forms the basis of civil law legal systems.
Other civil codes used since ancient times include various texts used in religious laws, such as the Law of Manu in Hindu law, the Mishnah in Jewish Halakha law, the Canons of the Apostles in Christian Canon law, and the Qur'an and Sunnah in Islamic Sharia law to some extent.
The idea of codification re-emerged during the Age of Enlightenment, when it was believed that all spheres of life could be dealt with in a conclusive system based on human rationality, following from the experience of the early codifications of Roman Law during the Roman Empire.