From the time before the American War for Independence, black Americans served as elected officials in local politics. Following the Civil War, hundreds more were elected to state and federal office.