The Code Noir, or Black Code, was a set of laws enacted in 1685 by King Louis XIV of France to regulate the conduct of enslaved Africans in French colonies. It established legal frameworks for slavery, delineated the rights of enslaved individuals and their owners, and enforced harsh penalties for infractions. This code not only shaped the lives of enslaved people but also contributed significantly to the socio-economic structures in French colonies, influencing the events leading to significant uprisings like the Haitian Revolution.