Before 1789 France had no single body of law. The south followed written law derived from Rome, the north followed dozens of regional customs, and nobles, clergy and guilds each had courts and privileges of their own. Revolutionary assemblies swept away privilege and promised a uniform code but never finished one. Napoleon Bonaparte, as First Consul, appointed a commission of four jurists in 1800, took part in many of the debates himself, and promulgated the Civil Code of the French on March 21, 1804. He regarded it as a greater achievement than any of his battles.
The Code wrote the moderate gains of the French Revolution into clear, compact articles that an ordinary reader could follow. All male citizens were equal before the law. Hereditary nobility, feudal dues and legal privilege were not recognized. Property was absolute and protected, which confirmed the purchases of confiscated church and noble land and reassured the Middle Class (Bourgeoisie) and landowning peasants. Contracts were enforceable, careers were open to talent, and marriage and civil status were matters for the state, not the Church. Inheritances had to be divided among children instead of passing to the eldest son.
The Code was also deeply patriarchal. A wife owed obedience to her husband, could not sign contracts, go to court or manage property without his consent, and faced harsher rules on adultery and divorce than he did. Fathers received wide authority over children. Women thus lost ground they had gained in the 1790s, the opposite of what Olympe de Gouges had demanded. Related legislation banned workers' associations, and Napoleon separately restored slavery in the French colonies in 1802.
French armies carried the Code into Belgium, the Rhineland, Italy, Poland and beyond during the Napoleonic Wars, where it dissolved serfdom and guild restrictions. Many of these territories kept it after 1815. Through imitation and colonial rule it later shaped the civil law of Spain, Portugal, most of Latin America, Louisiana, Quebec, Egypt and parts of the Middle East, and it influenced the codes adopted by modernizing states such as Meiji Japan and the Ottoman Empire of the Tanzimat Reforms.
The Code is the best evidence for the claim that Napoleon consolidated the revolution's principle of equality while abandoning its promise of liberty. It also invites comparison with other efforts to rule through uniform written law, from the English Bill of Rights to the United States Constitution, and it remains a cornerstone of liberal legal order.