After the Civil War, when blacks fought along whites to secure freedom for all, southern states enacted Black Codes, laws that restricted the civil rights and liberties of blacks. Central to the enforcement of these laws were the stiff penalties for blacks possessing firearms.