The Napoleonic Code (French: Code Napoléon, and officially Code civil des Français) is the French civil code established under Napoléon I in 1804. The code forbade privileges based on birth, allowed freedom of religion, and specified that government jobs should go to the most qualified.
It was drafted by a commission of four eminent jurists and entered into force on 21 March 1804. The Code, with its stress on clearly written and accessible law, was a major step in replacing the previous patchwork of feudal laws. Historian Robert Holtman regards it as one of the few documents that have influenced the whole world.
The Napoleonic Code was not the first legal code to be established in a European country with a civil legal system; it was preceded by the Codex Maximilianeus bavaricus civilis (Bavaria, 1756), the Allgemeines Landrecht (Prussia, 1794), and the West Galician Code (Galicia, then part of Austria, 1797). It was, however, the first modern legal code to be adopted with a pan-European scope, and it strongly influenced the law of many of the countries formed during and after the Napoleonic Wars. The Napoleonic Code was very influential on developing countries outside of Europe, especially in the Middle East, that were attempting to modernize their countries through legal reforms.