The black codes were a set of regulations established by: the congress to protect the rights of the former slaves to own property and to find employment the u.s. supreme court to enforce the provisions of the thirteenth and fourteenth amendments to the u.s. constitution the northern states to prevent a massive influx of former slaves from entering their states and seeking homes and jobs the southern states to promote white supremacy and to control the economic and social activites of freed men