The Reconstruction era (1865–1877) was the period after the Civil War when the federal government attempted to: