Earlier the Freedmen's Bureau and the occupation armies had prevented Southern Black Codes, which had limited the rights of freedmen and other blacks, (including their choices of work and living locations) from going into effect.