from the columbia electronic encyclopedia black codes in u s history series of statutes passed by the ex confederate states dealing with the status of the newly freed slaves they varied greatly from state to state as to their harshness and restrictiveness although the codes granted certain basic civil rights to blacks the right to marry to own personal property and to sue in court they also provided for the segregation of public facilities and placed severe restrictions on the freedman's status as a free laborer his right to own real estate and his right to testify in court although some northern states had black codes before the civil war this did not prevent many northerners from interpreting the codes as an attempt by the south to reenslave blacks the freedmen's bureau prevented enforcement of the codes which were later repealed by the radical republican state governments