Slave codes

The slave codes were laws relating to slavery and enslaved people, specifically regarding the Atlantic slave trade and chattel slavery in the Americas.
Most slave codes were concerned with the rights and duties of free people in regards to enslaved people. Slave codes left a great deal unsaid, with much of the actual practice of slavery being a matter of traditions rather than formal law.
The primary colonial powers all had slightly different slave codes. French colonies, after 1685, had the Code Noir specifically for this purpose. The Spanish had some laws regarding slavery in Las Siete Partidas, a far older law that was not designed for the slave societies of the Americas. English colonies largely had their own local slave codes, mostly based on the codes of either the colonies of Barbados or Virginia.
In addition to these national and state- or colony-level slave codes, there were city ordinances and other local restrictions regarding enslaved people.
Typical slave codes.
There are many similarities between the various slave codes. The most common elements are:
England's American colonies and the United States.
There was no central English slave code; each colony developed its own code. In the United States, after their independence, the individual states ratified new constitutions, but their laws were generally a continuation of the laws those regions maintained prior to that point and their slave codes remaining unchanged.
The first comprehensive English slave code was established in Barbados, an island in the Caribbean, in 1661. Many other slave codes of the time are based directly on this model. Modifications of the Barbadian slave codes were put in place in the Colony of Jamaica in 1664, and were then greatly modified in 1684. The Jamaican codes of 1684 were copied by the colony of South Carolina in 1691. The South Carolina slave code served as the model for many other colonies in North America. In 1755, colony of Georgia adopted the South Carolina slave code.
Virginia's slave codes were made in parallel to those in Barbados, with individual laws starting in 1667 and a comprehensive slave code passed in 1705. The slave codes of the other tobacco colonies (Delaware, Maryland, and North Carolina) were modeled on the Virginia code. While not based directly on the codes of Barbados, the Virginia codes were inspired by them. The shipping and trade that took place between the West Indies and the Chesapeake meant that planters were quickly informed of any legal and cultural changes that took place. According to historian Russell Menard, when Maryland put its slave code in place the influence of the Barbadian codes as a "cultural hearth" for the law is noted with members of the Maryland legislature having been former residents of Barbados.
The northern colonies developed their own slave codes at later dates, the strictest being in the colony of New York, which passed a comprehensive slave code in 1702 and expanded that code in 1712 and 1730.
The slave trade was abolished throughout the British Empire by the Slave Trade Act of 1807. In 1833, the Slavery Abolition Act ended slavery throughout the British Empire.
In the United States, there was a division between slave states in the South and free states in the North. At the start of the American Civil War, there were 34 states in the United States, 15 of which were slave states, all of which had slave codes. The 19 free states did not have slave codes, although they still had laws regarding slavery and enslaved people, covering such issues as how to handle slaves from slave states, whether they were runaways or with their owners.
Slavery was not banned nationwide in the United States until the Thirteenth Amendment was ratified on December 6, 1865. The Act Prohibiting Importation of Slaves on 1 January 1808, made it a felony to import slaves from abroad.
French slave codes.
The French colonies in North America were the only portion of the Americas to have an effective slave code applied from the center of the empire. King Louis XIV applied the Code Noir in 1685, and it was adopted by Saint-Domingue in 1687 and the French West Indies in 1687, French Guiana in 1704, Réunion in 1723, and Louisiana in 1724. It was never applied in Canada, which had very few slaves. The Code Noir was developed in part to combat the spread of Protestantism and thus focuses more on religious restrictions than other slave codes. The Code Noir was significantly updated in 1724.
The city of New Orleans in Louisiana developed slave codes under Spain, France, and the United States, due to Louisiana changing hands several times, resulting in a very complex set of slave codes. The needs of the locals were usually held in favor over any outside laws.
France abolished slavery after the French Revolution, first by freeing second-generation slaves in 1794. Although it was reinstated under Napoleon with the law of 20 May 1802.
Spanish slave codes.
In practice, the slave codes of the Spanish colonies were local laws, similar to those in other regions. There was an overarching legal code, Las Siete Partidas, which granted many specific rights to the slaves in these regions, but there is little record of it actually being used to benefit the slaves in the Americas. Las Siete Partidas was compiled in the thirteenth century, long before the colonization of the new world, and its treatment of slavery was based on the Roman tradition. Frank Tannenbaum, an influential sociologist who wrote on the treatment of slaves in the Americas, treated the laws in Las Siete Partidas as an accurate reflection of treatment, but later scholarship has moved away from this viewpoint, arguing that the official laws in Las Siete Partidas did not reflect practices in the colonies.
An attempt to unify the Spanish slave codes, the Codigo Negro, was cancelled without ever going into effect because it was unpopular with the slave-owners in the Americas.
The Laws of the Indies were an ongoing body of laws, modified throughout the history of the Spanish colonies, that incorporated many slave laws in the later versions.