Black codes were created as an alternative to slavery. They stated that if a black man owed a white man something, they would work their fields for them. Black codes were a way for whites to maintain their control over black people. Jim Crows Laws were laws based on segregation and the "separate but equal" concept. Examples are black and white children had to go to separate schools, use separate bathrooms, drink out of different water fountains.