The Black Codes restricted the liberties of the newly-freed slaves and identified African-Americans as "second-class" citizens. Although the specifics varied from state to state, the Black Codes established that ex-slaves could not serve on juries, were not allowed to vote, were not allowed to own firearms, and even had to obey a curfew.